How do I modify an EA to use on an ECN Broker?
Does anyone have an example?
Thanks
Does anyone have an example?
Thanks
BAT EA modification 54 replies
Demark_trend_alert_a nd_mail modification 3 replies
Bat System EA HELP Modification works like a charm! 2 replies
Modification to an useful indicator - Tesla Please help 4 replies
EA modification help requested 0 replies
#include <LibOrderReliable.mqh>
//---------------
if(CheckEntry(trendtimeframe) == 1 && CountBuys(MagicNumber) == 0 && CountSells(MagicNumber) == 0)
{
OrderSendReliable2Step(Symbol(),OP_BUY,LotsOptimized(),Ask,Slippage,Ask-((StopFactor*atr)*Point), Ask+((ProfitFactor*atr)*Point), "ECN Buy", MagicNumber,0,Blue);
}
if(CheckEntry(trendtimeframe) == -1 && CountSells(MagicNumber) == 0 && CountBuys(MagicNumber) == 0)
{
OrderSendReliable2Step(Symbol(),OP_SELL,LotsOptimized(),Bid,Slippage,Bid+((StopFactor*atr)*Point), Bid-((ProfitFactor*atr)*Point), "ECN Sell", MagicNumber,0,Red);
}
//--------------------