EA Modifiion
Results 1 to 3 of 3

Thread: EA Modifiion

  1. #1
    How do I modify an EA to use on an ECN Broker?
    Does anybody have an example?

    Thanks

  2. #2
    Hey rc....you could send the orders without a profittarget and stoploss.... Then modify the orders after set ....

    Or you can utilize orderreliable2step.... You will need the include liborderreliable....

    Both methods work perfectly.... Below is code from an ecn ea of mine for example...h

    Inserted Code #include lt;LibOrderReliable.mqhgt; //--

    //--
    Inserted Code //--------------- if(CheckEntry(trendtimeframe) == 1 CountBuys(MagicNumber) == 0 CountSells(MagicNumber) == 0) OrderSendReliable2Step(Symbol(),OP_BUY,LotsOptimiz ed(),Ask,Slippage,Ask-((StopFactor*atr)*Stage), Ask ((ProfitFactor*atr)*Stage), ECN Buy, MagicNumber,0,Blue); if(CheckEntry(trendtimeframe) == -1 CountSells(MagicNumber) == 0 CountBuys(MagicNumber) == 0) OrderSendReliable2Step(Symbol(),OP_SELL,LotsOptimi zed(),Bid,Slippage,Bid ((StopFactor*atr)*Stage), Bid-((ProfitFactor*atr)*Stage), ECN Quotation, MagicNumber,0,Red); //--------------------

  3. #3
    Its easy. Send all orders with NO TP/SL. On another line add the TP/SL with OrderModify();

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.