1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Welcome back! Thank you for being a part of this Traders Community. Let's discuss and share :)
    Selamat datang kembali! Trimakasih telah menjadi bagian dari Komunitas Trader ini. Mari berdiskusi dan berbagi :)
    Dismiss Notice

Suggestion my new ea create

Discussion in 'Expert Advisor atau Robot Forex' started by pouya, 28 Jul 2020.

  1. noomgto

    noomgto New Member

    Equity
    Credit
    Ref Point
    Thank you so much
     
  2. JK1368

    JK1368 Member Credit Hunter

    Equity
    Credit
    Ref Point
    // Global Variables Declaration
    string Currency1="AUDUSD";
    string Currency2="EURUSD";

    int OnInit()
    {
    if( StringFind(Symbol(),Currency1,0)>=0 ) // if(Symbol()=="AUDUSD")
    ..
    }
    if( StringFind(Symbol(),Currency2,0)>=0 ) // if(Symbol()=="EURUSD")
    {

    }

    these codes should take care of any prefix and suffix the broker may use.
     
  3. pouya

    pouya Member Credit Hunter

    Equity
    Credit
    Ref Point
    tank you .
    im check it
     
  4. pouya

    pouya Member Credit Hunter

    Equity
    Credit
    Ref Point
    im finish 2 days ago .im put in my live account now .
     
  5. pouya

    pouya Member Credit Hunter

    Equity
    Credit
    Ref Point
    Unfortunately, I did not understand what you meant
     
  6. pouya

    pouya Member Credit Hunter

    Equity
    Credit
    Ref Point
    whats your broker?
     
  7. Tijani Sheidu

    Tijani Sheidu Member Credit Hunter

    Equity
    Credit
    Ref Point
    OK. Thanks
     
  8. pouya

    pouya Member Credit Hunter

    Equity
    Credit
    Ref Point
    i know this error but work in real and backtest . i dont know whats your mt4 happen.
     

Share This Page