Averaging out of losing trades using "Pips away from open price" to close in profit
-

Hi guys, please i'm trying to make an EA that trades renko charts, i've been able to buy and sell and take profit when there is a reversal of the renko bars.
Now, i'm trying to average out of losing trades using "for each trade", "pips away from open price" and ädd to volume". I am confused as to how the averaging trades will close when in profit. Any help will be appreciated, Thanks. -
-
Since child trades comment has the %ticket% number of the parent trade. I'm trying to find a way to group the parent trade wjth child trades only and close all trades with ticket number of parent trade and child trade when in profit.
I also noticed the "for each trade" command opens multiple trades at once. Its quite confusing.
-
JTCarcil , hola , estuve probando tu EA , y me di cuenta que tenes dos problema importante uno ,me tome el tiempo de hacerle unas mejoras, espero que te sirva ... https://fxdreema.com/shared/v75hwZsod
-
Thanks, i will check it out. I'm really grateful