darkenedforest / Publications
Forum
What's the best practice for handling repeated true if conditions due to multiple ticks during one period?
Suppose you want to do some action where if on the previous candle of some period indicator a == some value and indicator b<c then open a long position. Because Ontick() runs many times during the current period, when that if statement is true, it will trigger on each tick. So, it would open a long