Could someone help me with this EA?
What kind of help you need
qjol:
What kind of help you need
Some help to make it trading. It's using TrendLord indicator and there are no compiler errors so i dont know whats wrong now.
OrderSelect(currentOrderTicket, SELECT_BY_TICKET, MODE_TRADES); if (OrderCloseTime() != 0) { currentOrderTicket = -1; }
If OrderSelect succeeds the order is open and OrderCloseTime is always zero.
If OrderSelect failed the order is closed and OrderCloseTime is invalid.
for(int cnt=0; cnt < total; cnt++) { OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES); // Close all Buy or all Sell orders for current symbol if((OrderType() == orderType) && // check for opened position (OrderSymbol() == Symbol())) // check for symbolAlways test OrderSelect. You must count down when closing (multiple pairs, multiple orders, multiple EAs)
for(int cnt=OrdersTotal()-1; cnt >= 0; cnt--) if( OrderSelect(cnt, SELECT_BY_POS) && OrderSymbol() == Symbol() && OrderType() == orderType) {...
Hi. I'm from the forex-tsd forum and I am trying to make a scalping EA work, but i need some help.
I cant make it trading, could someone help me please? See Scalper_Code.txt.