Hi guys !
According to Funyoo's v1.02 coding ECN and STP brokers should work.
General rule for ECN orders is:
Make sure the sendorder function place positions WITHOUT SL or TP. Then in the next step add them with OrderModify() if they are non zero.
Funyoo realized this by the following coding (example extract):
... if(BrokerMode!=2 && BrokerMode!=3)OrderSend(Symbol(),OP_SELL,SellLots, Bid,Slippage*mt,sl,tp,"",Magic,0,CLR_NONE);
modification=OrderModify(ticket,OrderOpenPrice(),s l,tp,0,CLR_NONE); ...