Hey Guys.
I would like to create an EA with headged zone recovery function.
Entry for the EA is not a big problem but the headged zone recovery is a little bit tricky for me.
lets say EA open an short order:
Lot size : 0,01
SL: highest price from last 10 candles (because there is no fix pip size, every trade is different)
TP: 150% SL
When the order is placed EA should automaticly place a pending buy order:
Lot size: 0,02
SL: entry price last order
TP: 150% SL
So when the first short trade get stopped out, EA enter a long trade.
So basicly I need the entry value from the last trade.
Thanks for your help