Hi guys.....
This EA hedge trade with no SL, TPs are the same for all trades,
and the hedges are geting bigger depending on the current number
of trades(lots) opened.
EA opens 2 trades (hedge) at current price......
Both trades are without SL, and TP is 100 pips....
When one trade hits TP, EA execute new hedge(buy&sell) at curent price,
but this time the lots must change in a way that the new trade
(depending of the current opened positions) must have a same lot count
to cover the opened losing trades.......
...the total number of lots currently opened must
be the same for the both sides!!!
Lets say EA executes first hedge(sell 0.1 lot & buy 0.1lot)
Buy hits the TP, EA execute new set(sell 0.1 lot & buy 0.2lot)
Buy again hits the TP, EA execute new set(sell 0.1 lot & buy 0.3lot).....
The EA posted here works ok but my logic about counting the trades,
and executing them to satisfy the rule of lots is not working ok
Thanks for the help
This EA hedge trade with no SL, TPs are the same for all trades,
and the hedges are geting bigger depending on the current number
of trades(lots) opened.
EA opens 2 trades (hedge) at current price......
Both trades are without SL, and TP is 100 pips....
When one trade hits TP, EA execute new hedge(buy&sell) at curent price,
but this time the lots must change in a way that the new trade
(depending of the current opened positions) must have a same lot count
to cover the opened losing trades.......
...the total number of lots currently opened must
be the same for the both sides!!!
Lets say EA executes first hedge(sell 0.1 lot & buy 0.1lot)
Buy hits the TP, EA execute new set(sell 0.1 lot & buy 0.2lot)
Buy again hits the TP, EA execute new set(sell 0.1 lot & buy 0.3lot).....
The EA posted here works ok but my logic about counting the trades,
and executing them to satisfy the rule of lots is not working ok
Thanks for the help
Attached File(s)
NOSL HEDGE.mq4
6 KB
|
312 downloads
forexflash