I access the values as follows
smaVal1=SMA(BarsArray[1],14);
smaVal2=SMA(BarsArray[2],14);
smaVal3=SMA(BarsArray[3],14);
My question is how can I control :
Calculate on bar close = True or False ?
the first 2 SMAs I want to get the updated SMA value at every Tick, while the third SMA I want the value only at the close of the bar for BarsArray[3].
Is this possible?
Comment