creating Pending order by using data from previous/ actual trade
-
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% SLWhen the order is placed EA should automaticly place a pending buy order:
Lot size: 0,02
SL: entry price last order
TP: 150% SLSo 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
-
@kookser Just create as many variable to store those values as you need so that the can be used later.