Can add something 4 me?

 

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

Files:
 

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