Positionning the pending orders
-
Hello all!
I absolutely cannot manage to do something that may seem simple.
My EA acts on different TFs. I apply this EA on an H1 chart.
In M5 he finds me a signal. I simply want that at the end of the 1H candle he opens for me 1 pending BUY order at the top of the candle that has just closed and 1 pending SELL order at the lowest of the previous candle.
The problem is that as soon as the M5 signal appears, it immediately opens the 2 pending orders for me, whereas I would like it to wait for the candle in H1 to end to place the 2 orders there.a solution please?
-
once per bar (h1) <- edit, added
5m signal condition (specifically select m5 in that block on LO and RO)
set flag to true
one per bar (h1)
check flag for true
enter tradeas to setting that flag false again, thats up to you.
-
Thanks a lot. I will try
-
@tipsywisdom I think I made something wrong. look

All conditions are under M5 TF.
Once per bar always under H1 TF
Flags on true
.... -
@bagheria said in Positionning the pending orders:
@tipsywisdom I think I made something wrong. look

All conditions are under M5 TF.
Once per bar always under H1 TF
Flags on true
....its multiple conditions, thats going to add some variety as well as the time filter being in that spot..do that at the top or just before entering the trade.
if you want to post a project link I can try to help. but ive tried to help someone sort through using signals at specific times before and I couldnt get it to work but that was a slightly different idea.
-
@tipsywisdom Hi! Sorry for my late answer. Please find attached the project. Thanks a lot for your help!
-
@bagheria You need to separate your current trees this way:

That way both 'once per bar' blocks will works as designed.