Python Newbie: Need help to code a simple SMA Trading Strategy.

Nelsonjp86
Dear Python Experts. I am new to learning python. I do understand the variables but am not yet foolproof. Need help in coding the below strategy:
1. For BankNifty Weekly Put option of 50Rs. value (200 to 300 strikes away), I want to buy the put when the price goes above 20 SMA. and exit the trade when price goes below 20 SMA. No selling. Only buying and exit strategy.
2. This is specifically for Intraday only. The order should go in on the basis of 1 minute candle chart at or after 9.35am.
3. Can someone please guide me through how to go about coding this strategy? I have gone through api docs, however, not sure about 1) Candlechart implementation, 2. Exit Order code (Not short sell), 3. How to get live data for Intraday based on 1 min chart for banknifty weekly options.

I would really appreciate any kind of advise, help or support with regards to the above. Thanks very much in advance!
Regards,
Nelson.
Sign In or Register to comment.