AFL has no intra-bar 'memory'. Ie, it recalculates every bar from the begining of the series every tick. This isn't an issue with daily or bar-close indicators, but it sure is an issue in R/T as new intra-bar ticks can move your indicator all over the place
How is this handled in NinjaScript. ?
For example,
ie
1) if x = true then do something
2) x = close> sma(9)
Tick1
- x is false the 1st tick into the bar and statement 1 does not branch out.
- Statement 2 is executed and sets it to be true.
Tick 2
- Will x remain set for the next tick/pass ?
Comment