I have a strange issue and I cant find the reason why it doesnt plot from added dataseries1.
In Initialize I add Minute, 30 (because I run the indicator on a 5 min chart but need the 30 min)
then in onbarupdate I want to work with SMA(BarsInProgress[1],50) .....
Whatever I have in onbarupate eg
if BIP!=1 return
oe if Currentbars{1]<1 return
or if (BIP==1){SMA(BIP1,50) ...}
it plots me always the value of the SMA50 of the 5 min chart but not the SMA50 of the 30 min as dataseries1.
What am I missing please?
Thank you!
Tony
Comment