Trades opening on inferior time frames
-
Hello I'm having an issue when back testing. Although I set the trades to execute on the closing value of H1 based on a cross over, sometimes they execute if the cross over happens during that hour, not at the end. Is there something I can do?
-
Can you please share your project?
-
This is an example https://fxdreema.com/shared/AThgzC40e
I've had this issue with al sorts of indicators. I've taken out the Stochastic, it also behaves the same. On this TF the indicator MACD does not touch the Signal line.

Thank you for having a look! -
The indicator values will oscilate whitin the hour candle. It could cross and "uncross" during that hour.
If you want to check the cross once the candle is closed, you can add the Time Filter block "Once per bar" and change the condition block to check Candle ID 1 (previous candle) instead of 0 (current Candle).
-
@rafaelgrecco added the new configuration. Now it opens one trade but it never closes it.
https://fxdreema.com/shared/BkoLYwHGd -
@ovidiuzav You need to separate the 'close trades' block to a separate block tree. Do not connect it to the launcher like now.
-
@ovidiuzav as l'andorrà said, you need to separate the "close trades"blocks. You can do it like this:

Notice that the orange exit of "No Trade" works when there is NO trade, so it is looking to buy. The yellow exit of the same blocks works when THERE IS a trade, so it is looking for the closing strategy.
-
@rafaelgrecco Exactly.