- for the purpose of this thread, lets say whenever 2 MAs cross -
what happens with the DataSeries when Value.Set isnt called. will it be 0, will it be equal to the previous candle or just nothing or what? further: Value[1] will still refer to the previous bar or to the last time the value was set?
example
if(emaSeries[1]>smaSeries[1] && emaSeries[0]<smaSeries[0])
Value.Set(50);
assuming onbarupdate is called while the condition is false what will the value output be? and how does the timestamp [] work for this or later bars?
cant test this out myself right now, so i hope someone can enlighten me
thanks
Comment