EA problem
summary of EA:
1) always start with BUY order (with SL and TS)
2) if first order close with TP is ok becouse I won, else start with SELL order (with SL and TP)
3) if second order close with TP is ok becouse I won, else start with thirth BUY order (with SL and TP).
int total = OrdersTotal(); if (total < 1 && OrderProfit()>=0) { ticket=OrderSend(Symbol(),OP_BUY,0.01,Ask,3,Bid-SL1,0,"UNO",1111,0,Blue); return (0); }
if total is less than one then OrderProfit() is meaningless. It also meaningless since you never do a OrderSelect()
Also your loop must select the last closed order or the last 2 orders, and there can be no open orders.
Hi
I was wondering if you could possibely change this EA to trade more than one pair since when you attach to another pair it can not to trade.
Kaveh
summary of EA:
1) always start with BUY order (with SL and TS)
2) if first order close with TP is ok becouse I won, else start with SELL order (with SL and TP)
3) if second order close with TP is ok becouse I won, else start with thirth BUY order (with SL and TP).
Following there is a draft of EA, but i don't know how continue.
I hope for someone more experienced, thanks
//----
return(0);
}