ro66er:
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.
thanks for the help but I have no idea to continue
I have done alone, hippyyyy
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
Files:
hilobar_2.mq4
3 kb
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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);
}