first i suggest to use magic No.
then
1) for(;;) //loop to find your order
2) Orderselect() //select your order
3) OrderType() //find the type Buy || Sell
4) if (OrderProfit() <= X) find if it in profit in $$$ (or OrderOpenPrice() - OrderClosePrice() (for pips))
5) OrderSend(); //send opposite trade
That's what you should do
edit: Regardless I don't see what the benefit of this
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
Hi guys,
I learning do some simple EAs using EAbuilder website. Below is one of my sample. But the code is limited. Can anyone help to add on >>>
"if price against X pips from entry, then execute an opposite trade for same lot same SL same TP??"
Thanks for anyone who kindly reply this, Merry X;mas