How does candle id work on the once per bar filter?
-
I'm assuming the once per bar filter checks once right after a new candle has started forming. But I'm unsure what candle has what ID. Is the candle left of the active one candle ID 1? If so, how could a trade be executed on candle 0 if it's only checked after close in which case there's already a new candle?
-
@davjack Current forming candle is 0, you only have a close for a split second before it becomes 1, you are better off to set your conditions to activate on 0 open and all other conditions to look at candle 1. Conditions are checked at every tick which can be a few times a second, once per bar limits these to 1 at the start of the candle.
-
@jstap said in How does candle id work on the once per bar filter?:
@davjack Current forming candle is 0, you only have a close for a split second before it becomes 1, you are better off to set your conditions to activate on 0 open and all other conditions to look at candle 1. Conditions are checked at every tick which can be a few times a second, once per bar limits these to 1 at the start of the candle.
upvote 100 times
-
although technically once per bar doesnt mean, start of candle...it means first tick of that candle....theoretically.