Print("BetaSMASeries[0]= "+BetaSMASeries[0]);
Print("BetaSMASeries[1]= "+BetaSMASeries[1]);
Print("BetaSMASeries[2]]= "+BetaSMASeries[2]);
beta = SMA(BetaSMASeries,1);
So here's the problem I'm having. The Print statements all show valid values for the BetaSMASeries. However, when I try to calculate the SMA(BetaSMASeries), it gives me the NaN, even if it's just the 1 period SMA which I assume would just be equal to BetaSMASeries[1] (or maybe BetaSMASeries[0]) which the Print statements have shown me to be populated. Any quick suggestions what might be going on here or is it too complicated without seeing the rest of the code?
Comment