here are my steps.for calculating 20SMA in 10 minute time frame. 1. Last few days kite historical data for 10 minute interval at the current time 2. get last 20 OHLC VALUES 3. 20SMA = (close20 + close19 ...... + close3 +close2 + close1)/20 **close 1 will be the close price of the unformed candle at the current time. Is this steps correct. i am getting different values from kite chart IQ . should i drop the last candle or not ? . i am finding SMA values for deploying a cross over strategy.