else if (State == State.Configure) { AddDataSeries("NQ MAR25", Data.BarsPeriodType.Minute, 5, Data.MarketDataType.Last); // [1] AddDataSeries("NQ MAR25", Data.BarsPeriodType.Minute, 60, Data.MarketDataType.Last); // [2] AddDataSeries(BarsPeriodType.Day, 1); // [3]
Print("SMA10 of 60 min: " + SMA(BarsArray[2], 10)[0] + " SMA20 of 60min: " + SMA(BarsArray[2], 20)[0]);
This is correct
When I try to get the 10 and 20 SMA of the daily, I get the SAME value for both the 10Daily SMA and the 20 daily SMA, and on the daily chart, they are NOT the same!!! grrrr
Print("SMA10 of Daily: " + SMA(BarsArray[3], 10)[0] + " SMA20 of Daily: " + SMA(BarsArray[3], 20)[0]);
SMA10 of Daily: 21630.5 SMA20 of Daily: 21630.5
Comment