TP/SL by Highest+Lowest candles Period average
-
Hello, I'm trying to do this function, but, looks that there are something wrong; there are any way to do this in an optimal way?
Basically, the formula is to get TP (based on H/L pips average from last 3 candles. How get them? subtracting [ (C1 H - C1 L) + (C2 H - C2 L) + (C3 H - C3 L) / 3 ] *10000 (5 digit)

I let to you the project, because there are some inconsistencies and I consider that the logic is right to me, but actually on Backtest work wrong . Thanks:)
-
-
@uriel-0 You could do it this way: https://fxdreema.com/shared/ugWWCHz6 You could also add if statements to reduce the blocks more, I haven't tested but should work
-
@jstap Sorry, I updated https://fxdreema.com/shared/TYNmO0vQd
I'll check your suggestion
-
@jstap Thank you!!
-
@uriel-0 This will likely do all in 1 block:
-
@jstap Oh, really thank you!
-
@jstap This MQL code, could be used on MT5, right?
-
@uriel-0 Yes most works on both.
-
@jstap Thank you again
-
-
@uriel-0 bro u are over complicating ur strategy. what is the basic concept of entry and exit and wat time frame and i can show an easier way to get same result?
-
@youngtreptrader hi, just get the take profit, getting it with the pips average from the last 3 candles. I know that is not the best idea... I know
-
@uriel-0 explain your strategy. theres better ways to take profit. imma be honest wat ur doing seems like a stupid way to take profit. maybe screenshot some charts of wat and entry and exit would be
-
@youngtreptrader I know that it is, please, if you won't help, skip this. Thanks:)
-
what time frame are u using?
-
@uriel-0 I am unsure why this doesn't work for mt5.

