Not able to execute an EMA + SMA crossover. Need help!

Hi, I have been trying to create a strategy with nifty F&O for golden crossover and death cross with EMA & SMA = 10 along with the condition of ADX more than 25 to initiate trade. Some how the strategy doesn't show any error but just stops automatically. I don't have any python experience and I think I might be making some mistake. It would really help is someone could point out where is it that I am going wrong. Thank you in advance!

Hi Binoy,



Since you are new to Python you can check out the Python for Trading: Basic free course on Quantra.



Also, it looks like you are trying to implement technical indicator strategies for which we have a dedicated course that would take you through the step by step Python implementation of multiple technical indicator strategies. You can also learn how to live trade these strategies with the help of the strategy templates provided in the course.



Specifically for the ADX indicator you can go through this detailed blog to understand how to implement an ADX-based strategy in Python



Additionally, this blog is a step-by-step guide to help you learn how to use moving average crossover strategy to trade in Nifty Options.



Hope you find this helpful!



Thanks

Rushda

Can you share your code? I will have a look at it. You can directly ping me. If you are interested then we can discuss this