Skip This Ad >>
 
Register
Forgotten your password?
The Facebook Platform
Forex-TSD - Powered by vBulletin
Loading search...
Advanced search
  • Home
  • Forums
    Free sections Exclusive sections All sections
  • Register
    Create new account
  • More Recent
    Latest Threads Today's Posts
  • Rankings
    Most popular threads this month Most popular threads created this month Most linked threads this month Most active users Most reputed users
  • Calendar
  • Advertising
  • Others
    Blogs Toolbar
  • Help
    Contact Us FAQ
  • Premium Forum
  • Home
  • Forum
  • Training
  • Metatrader
  • Metatrader 4 mql 4 - Development course
  • Questions
  • Ask!

Thread: Ask!



  • LinkBack
    • LinkBack URL LinkBack URL
    • About LinkBacks About LinkBacks
    •  
    • Bookmark & Share
    • Digg this Thread!
    • Add Thread to del.icio.us
    • Bookmark in Technorati
    • Tweet this thread
  • Thread Tools
    • Show Printable Version
    • Email this Page…
    • Subscribe to this Thread…
  • Display
    • Switch to Hybrid Mode
    • Switch to Threaded Mode
Results 1 to 10 of 1722
Page 1 of 173 1231151101 ... Next LastLast
285 285 Attachment(s)

  1. 11-06-2005 10:24 PM #1
    codersguru's Avatar
    codersguru
    codersguru is offline Senior Member
    Points: 752,721, Level: 66
    Level completed: 96%, Points required for next Level: 979
    Overall activity: 0%
    Join Date
    Oct 2005
    Location
    World
    Posts
    1,074
    Points
    752,721
    Level
    66
    Achievements:
    Three FriendsRecommendation First ClassVeteran250 Experience Points

    Question Ask!

    Hi folks,

    I've got a lot of private messages asking me for helping with some pieces of code.

    Here you can post your questions related to MQL4, and I'll do my best to answer them.
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Hope it helps !
    Coders' Guru
    www.xpworx.com/custom.php

    Reply With Quote Reply With Quote

  2. 11-08-2005 10:35 AM #2
    newdigital
    newdigital is online now Administrator
    Join Date
    Sep 2005
    Posts
    29,219
    Achievements:
    Three FriendsRecommendation First Class
    Blog Entries
    1347

    Alerts (by sounds or any)

    I have two question.

    The first one. Sometimes it is necessary to test some trading srateg manually before creating the EA. It is ok for M1, M5 and M15. But for H1 and higher timeframe it is difficult. Which piece of the code should be included in one indicator (anyone) for alarm (sounds or whatever) to indicate about two lines of the one indicator crossing? For example the indicator is having two lines only which suppose to be crossed (with alarm).

    Second. We have two indicators. Which pieces of the code should be included into one or two indicators to indicate about two line crossing: one line is from the first indicator and an other line is from an other one (all those two lines are in the same window of course)?
    If it is EA or script should be created so keep this question untill we will study EA and script's creation.
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  3. 11-09-2005 03:42 AM #3
    codersguru's Avatar
    codersguru
    codersguru is offline Senior Member
    Points: 752,721, Level: 66
    Level completed: 96%, Points required for next Level: 979
    Overall activity: 0%
    Join Date
    Oct 2005
    Location
    World
    Posts
    1,074
    Points
    752,721
    Level
    66
    Achievements:
    Three FriendsRecommendation First ClassVeteran250 Experience Points

    Lightbulb Alerts on cross!

    Quote Originally Posted by newdigital
    I have two question.

    The first one. Sometimes it is necessary to test some trading srateg manually before creating the EA. It is ok for M1, M5 and M15. But for H1 and higher timeframe it is difficult. Which piece of the code should be included in one indicator (anyone) for alarm (sounds or whatever) to indicate about two lines of the one indicator crossing? For example the indicator is having two lines only which suppose to be crossed (with alarm).

    Second. We have two indicators. Which pieces of the code should be included into one or two indicators to indicate about two line crossing: one line is from the first indicator and an other line is from an other one (all those two lines are in the same window of course)?
    If it is EA or script should be created so keep this question untill we will study EA and script's creation.
    Second question needs some work (the idea key is working with GlobalVariables to make the both of the indicators knows each others!)
    I'll work in it later.

    This is the code of the first question. It needs some test (it's 6:40 AM here )

    PHP Code:
    //+------------------------------------------------------------------+
    //|                                                        Demo1.mq4 |
    //|                                                    Coders' Guru. |
    //|                                         http://www.forex-tsd.com |
    //+------------------------------------------------------------------+
    #property copyright "Coders Guru"
    #property link      "http://www.forex-tsd.com"

    #property indicator_chart_window
    #property indicator_buffers 2
    #property indicator_color1 Red
    #property indicator_color2 Blue
    //---- buffers
    double ExtMapBuffer1[];
    double ExtMapBuffer2[];
    //+------------------------------------------------------------------+
    //| Custom indicator initialization function                         |
    //+------------------------------------------------------------------+
    int init()
      {
    //---- indicators
       
    SetIndexStyle(0,DRAW_LINE);
       
    SetIndexBuffer(0,ExtMapBuffer1);
       
    SetIndexStyle(1,DRAW_LINE);
       
    SetIndexBuffer(1,ExtMapBuffer2);
    //----
       
    return(0);
      }
    //+------------------------------------------------------------------+
    //| Custor indicator deinitialization function                       |
    //+------------------------------------------------------------------+
    int deinit()
      {
    //---- 
       
    //----
       
    return(0);
      }

    bool Crossed (double line1 , double line2 )
    {

    static 
    string last_direction = "";
    string current_dirction = "";

    if(
    line1>line2)current_dirction = "up";
    if(
    line1<=line2)current_dirction = "down";



    if(
    current_dirction != last_direction) 
    {
          
    Alert("CRROSED: Line1 is (" + current_dirction + ") Line2 now");
          
    last_direction = current_dirction;
          return (
    true);
    }
    else
    {
          return (
    false);

    }
     
    } 
    int start()
      {
       
    int    counted_bars=IndicatorCounted();
     
    //---- check for possible errors
       
    if (counted_bars<0) return(-1);
    //---- last counted bar will be recounted
       
    if (counted_bars>0) counted_bars--;
       
       
    int pos=Bars-counted_bars;
       
         
     
       while(
    pos>=0)
         {
             
    ExtMapBuffer1[pos]= iMA(NULL,0,5,0,MODE_EMA,PRICE_CLOSE,pos);

             
    ExtMapBuffer2[pos]= iMA(NULL,0,20,0,MODE_EMA,PRICE_CLOSE,pos);

             
             
    pos--;
         }
         
         
         
         Print(
    Crossed (ExtMapBuffer1[0],ExtMapBuffer2[0]));


    //----
       
    return(0);
      }
    //+------------------------------------------------------------------+ 
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Hope it helps !
    Coders' Guru
    www.xpworx.com/custom.php

    Reply With Quote Reply With Quote

  4. 11-09-2005 06:33 AM #4
    rscatterday
    rscatterday is offline Junior Member
    Points: 4,316, Level: 6
    Level completed: 80%, Points required for next Level: 184
    Overall activity: 0%
    Join Date
    Nov 2005
    Posts
    1
    Points
    4,316
    Level
    6
    Achievements:
    Veteran250 Experience Points

    Smile question

    Dear codersguru,


    I have a couple of systems that I need help translating from Tradestation into Meta and then one basic trading system. I am working on from scratch. What is your hourly rate to help with this service?


    Some of the systems are be posted and 2 of the systems I purchased and signed a confidentiality agreement so I can post it and would have to have you work on those in private for a fee. What are your fees?


    Many thanks,

    Rick
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  5. 11-09-2005 04:02 PM #5
    codersguru's Avatar
    codersguru
    codersguru is offline Senior Member
    Points: 752,721, Level: 66
    Level completed: 96%, Points required for next Level: 979
    Overall activity: 0%
    Join Date
    Oct 2005
    Location
    World
    Posts
    1,074
    Points
    752,721
    Level
    66
    Achievements:
    Three FriendsRecommendation First ClassVeteran250 Experience Points

    Arrow CrossedAlerts

    Quote Originally Posted by newdigital
    I have two question.

    The first one. Sometimes it is necessary to test some trading srateg manually before creating the EA. It is ok for M1, M5 and M15. But for H1 and higher timeframe it is difficult. Which piece of the code should be included in one indicator (anyone) for alarm (sounds or whatever) to indicate about two lines of the one indicator crossing? For example the indicator is having two lines only which suppose to be crossed (with alarm).

    Second...
    Hi newdigital,

    Did you test the code? is it what do you want?
    Attached Files
    • File Type: zip CrossedAlerts.zip (832 Bytes, 4189 views)
    Last edited by codersguru; 11-09-2005 at 05:28 PM.
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Hope it helps !
    Coders' Guru
    www.xpworx.com/custom.php

    Reply With Quote Reply With Quote

  6. 11-09-2005 04:22 PM #6
    newdigital
    newdigital is online now Administrator
    Join Date
    Sep 2005
    Posts
    29,219
    Achievements:
    Three FriendsRecommendation First Class
    Blog Entries
    1347
    Not yet. I did not test yet.
    Tomorrow I will insert this code to some indicator (anyone with two lines crossing).
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  7. 11-10-2005 08:31 AM #7
    ferman
    ferman is offline Junior Member
    Points: 4,365, Level: 6
    Level completed: 85%, Points required for next Level: 135
    Overall activity: 0%
    Join Date
    Nov 2005
    Posts
    5
    Points
    4,365
    Level
    6
    Achievements:
    Veteran500 Experience Points

    Lightbulb Backtesting lesson

    Hi,

    can you explain, how to work with the backtesting ?
    what is needed to do for preparing our EA for backtesting ?
    how is backtesting works (every tick, open price ...) ?


    thanks.
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  8. 11-10-2005 09:56 AM #8
    newdigital
    newdigital is online now Administrator
    Join Date
    Sep 2005
    Posts
    29,219
    Achievements:
    Three FriendsRecommendation First Class
    Blog Entries
    1347
    Quote Originally Posted by codersguru
    Hi newdigital,

    Did you test the code? is it what do you want?
    I tested it. It is great
    We may use it as a sample.

    Or if we need just a sound we may use the code attached.
    Attached Files
    • File Type: mq4 CrossedAlerts1.mq4 (2.4 KB, 547 views)
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  9. 11-10-2005 11:13 AM #9
    newdigital
    newdigital is online now Administrator
    Join Date
    Sep 2005
    Posts
    29,219
    Achievements:
    Three FriendsRecommendation First Class
    Blog Entries
    1347
    Or if we need just a sound (optional) and text written on the chart (optional as well) we may use this code (attached).
    Attached Files
    • File Type: mq4 CrossedAlerts2.mq4 (2.7 KB, 745 views)
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Reply With Quote Reply With Quote

  10. 11-10-2005 02:02 PM #10
    codersguru's Avatar
    codersguru
    codersguru is offline Senior Member
    Points: 752,721, Level: 66
    Level completed: 96%, Points required for next Level: 979
    Overall activity: 0%
    Join Date
    Oct 2005
    Location
    World
    Posts
    1,074
    Points
    752,721
    Level
    66
    Achievements:
    Three FriendsRecommendation First ClassVeteran250 Experience Points

    Thumbs up Perfect!

    Quote Originally Posted by newdigital
    Or if we need just a sound (optional) and text written on the chart (optional as well) we may use this code (attached).
    newdigital,

    you rock!

    Thanks
    • Share
      • Share this post on
      • Digg
      • Del.icio.us
      • Technorati
      • Twitter
    Hope it helps !
    Coders' Guru
    www.xpworx.com/custom.php

    Reply With Quote Reply With Quote

Page 1 of 173 1231151101 ... Next LastLast
285 285 Attachment(s)

Quick Navigation Questions Top
  • Site Areas
  • Settings
  • Private Messages
  • Subscriptions
  • Who's Online
  • Search Forums
  • Forums Home
  • Forums
  • Announcements
    1. Announcements Blog
  • Exclusive Forum
    1. Elite Section
  • Forex Press
    1. Analytics
    2. Articles
    3. Success Stories
  • Discussion Areas
    1. General Discussion
    2. Metatrader 4
      1. Metatrader 3
    3. Metatrader 5
    4. Post and compare Trades
    5. Setup Questions
    6. Suggestions for Trading Systems
    7. Documentation
    8. Strategy Trader
  • Non Related Discussions
  • Downloads
    1. Indicators - Metatrader 4
      1. Indicators - Metatrader 3
      2. Indicators - Metatrader 5
    2. Manual trading systems
    3. Expert Advisors - Metatrader 4
      1. TSD Expert Advisors
      2. Expert Advisors - Metatrader 5
      3. Expert Advisors - Metatrader 3
    4. Tools and utilities
    5. Tools and utilities - Strategy Trader
  • Trading systems
    1. CatFx50
    2. Brain Systems
    3. Ema Cross
    4. Harmonic trading
    5. The "XO"-Method
    6. Phoenix
    7. Dolly
    8. Digital Filters
    9. Martingale/Average Cost and Hedging
  • Automated Trading
    1. News/Signal Trading
    2. FX Signals Marketplaces
  • Commercial systems
    1. Commercial Trading Systems and indicators
    2. Raw Commercial Ideas
    3. Evaluate Commercial Ideas
  • Brokers
    1. Metatrader brokers
  • Programming
    1. MetaTrader Programming
    2. TradeStation Programming
  • Training
    1. Metatrader
      1. Metatrader 4 mql 4 - Development course
        1. Questions
        2. Lessons
    2. TradeStation

» Popular Tags

analysis best broker best ea BrainTrading broker camarilla chart charts code custom EA day trading ea coding ea ma ea zig zag elliot EQUITY eurusd exit strategies expert adviser

» Rankings

Hottest Threads

1  Eurusd/gbpusd
2  CatFx50
3  10points 3.mq4
4  FxOpen
5  Multi Timeframe Indicators

view more
 

Most Popular Threads

1  Multi Timeframe In...
2  CatFx50
3  Something interesting pl...
4  The Murrey Math Trading System
5  Show Us Your Best

view more

» FEATURED BROKERS



« Previous Thread | Next Thread »

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

  • Butterfly.mq4,
  • forex,
  • histogram,
  • JMASlope,
  • ToR 1.20,
  • ZUP_v1.mq4,
  • come configurare "tor 1.20",
  • MailAlertOnOrderClose,
  • butterfly.mq4,
  • codesguru,
  • Tester: exchange rate cannot be calculated

View Tag Cloud

Bookmarks

Bookmarks
  • Submit to Digg Digg
  • Submit to del.icio.us del.icio.us
  • Submit to Technorati Technorati
  • Submit to Furl Furl
  • Submit to StumbleUpon StumbleUpon
  • Submit to Reddit Reddit
  • Submit to Facebook Facebook
  • Submit to Blink List Blink List
  • Submit to Google Google
  • Submit to Yahoo My Web Yahoo My Web
  • Submit to Twitter Twitter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  • BB code is On
  • Smilies are On
  • [IMG] code is On
  • [VIDEO] code is On
  • HTML code is Off
  • Trackbacks are On
  • Pingbacks are On
  • Refbacks are On

Forum Rules

Forums
  • Free sections
  • Exclusive sections
  • All sections
Calendar Social Networking
Premium Forum
  • Elite Membership
  • Advanced Membership
All times are GMT. The time now is 08:01 AM.
Terms and Conditions
PRIVACY POLICY
Powered by vBulletin® Version 4.1.11
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.
Digital Point modules: Sphinx-based search

Subscribe today and get...

Elite Membership
  • Elite Trading Systems
  • Propietary Indicators
  • Private Performance Reports
  • Elite EAs Source Code
  • 24/5 Trading Support!
Advanced Membership
  • Elite benefits, plus:
  • - MT4 & MT5 cutting-edge indicators.
  • - Advanced propieatry indicators and its source codes.
  • - Free conversion of MT4 indicatiors to MT5.
View our best offer!