"Candle Low/High" parameters don't work
-
I'm trying to open a trade when the "Current Price" crosses above/below the previous Day "Candle High/Low" prices, but it doesn't open neither at High or Low.
Here is my project: https://fxdreema.com/shared/GABd84z7d
I've also created blocks that:
- Stop trading during the day once a profit is taken.
- Resume trading at a certain time.
It is basically a loop: the EA initiates trading at High/Low, until a profit is taken - once the profit is taken, it waits for the set time to resume trading.
-
Pausing and Resuming work fine, but the trade is not being initiated at the High/Low for some reason.
-
Substitute the 'crossing above/below' by 'is above/below' in all condition blocks.
-
@l-andorrà That won't work. "Above/Below" would discard the Highs and the Lows and would enter a trade at any current price.
-
Then the best option is storing the value of the high/low into a variable and use it in a condition block.
-
@l-andorrà Thanks, that actually worked. If anyone else is having the same issue, here is how you can store the Highs and Lows in a variable:
Use "Formula" block and multiply the High/Low parameters by 1 -> then store it in a Variable

Project Link: https://fxdreema.com/shared/Og0SFuf4c
-
Good for you!

-
@rafaels919 I have the same problem with trying to open a trade when the "Current Price" crosses above/below the previous Candle "High/Low" prices. In the backtest I noticed also that the following settings do not always give correct results.
Condition // Ask Price x> Candle (1) High
Condition // Candle (0) Close x> Candle (1) High
Price x> Indicator // Price x> Candle (1) HighCould you only fix the problem with the "Formula" block and save it as a variable? Have you also tested it with the "Modify Variables" block and saved it as a variable?
It is surprising that it does not work corretly in the normal way with using the "Condition" block.
-
@jjot fxDreema is good, but nor perfect, my friend!
I alway recommend to store that information into a variable. Then use it normally in a condition block.