Is it to the left or right?
-
Is there a way I can check if a specific candle ID is to the right or left of another candle ID. For my situation I want to only enter the next trade if the setup bar is to the right of the previous trades order bar. I have the values for both just not sure how I can check the position relative to one another left or right. Thanks
-
Do you mean immediately to the left and/or immediately to the right? I mean, will there be moreo tnat one bar separating those left/right distances?
-
There can be candles in between as well as immediately to the left or right. Another way to say it would be “trade 1s order bar ID is more than trade 2s setup bar ID”. But could be Infinite amount of bars in between.
-
hm maybe I can use time.
-
Yes, time is the simplest solution. You know how much time happened or will happen depending on the timeframe. Simple as that.