1 week Yahoo chart 21 period SMA accuracy Reddit

I am using yahoo QQQ chart set at 5 minutes with 21 period moving average. I have been making decent gains so i decided to write code. After downloading 5 minutes data i thought generating 21 period SMA would be piece of cake. To my surprise it was no…