About SMA Crossover System for Zerodha Kite API in Python

BUY/SELL Condition:
Intraday Simple moving average strategy:
SMA20, SMA5

Conditions:-

  • buy when sma5 > sma20
  • sell when sma5 < sma 20

Calculated the SMA for both live data and historic data in real time for the past 100 days

TIME Condition:
Interval is given as 5 and the program runs in a continuous while loop where the condition satisfies
every five minutes.

Results

The SMA is a very good strategy for Intraday however picking the stock is whole different scenario.