Hours Filter and Once per bar
-
Hello guys,
Is the placement correct?

I tried to run the EA in realtime but no trade was initiated even though the condition was met.
Thanks advance!
-
@engrled Can you please share the link to the project? That would help more than this image.
-
-
it has some logical issues:
first you check market properties it would be better if you use the low of x candle instead of giving a range which is x of x
second you cant expect a cross to happen if you let the block run just once a bar
you would say is below not crosses below but that isnt the exact crossing price can be way further away.this would be quick fix ignoring the low of the candle thing:

-
I placed the "Once per bar" in the top because my issue is:
-When a previous trade just got closed, in the same candle a new trade gets opened. I need to activate again the condition only on the next future candle. The placing of "Once per bar" creates didn't fix my issue.
Any advise would be greatly appreciated.
Thanks!
-
@engrled Then you need to add a loop specifying that no closed trade happened in this candle. Yo can do it via 'for each trade' block connected below the time filter.
-
@l-andorrà Thanks for the reply! I managed to resolve the issue involving some variables and comparing a certain value from the previous candle.
-
@engrled I'm glad you got it. Congrats!
-
@engrled Pls help me out am facing the same issue..how did you do it..?