Nano Course On Python For Trading
==========================
Module 3-B (Bonus)
In this Bonus Module, I will attempt to teach you how to write an algorithm to create a Stock Screener based on @markminervini 's Trend Template from his book Trade Like A Stock Market Wizard.
+
Some of the readers asked about how to create a stock screener. So, I thought before jumping to the cloud and deploying an algorithm on the cloud, I should address this. Whatever algorithm we develop in this module, we will deploy it on the cloud in Module number 4.
+
Pre-requisites:
• Read Module 2, so that you can download the historical data. A small assignment for you - write code to automate EOD data download and save it in the folder. We need to have the latest data for the screener. Hint: set end_date =
The rules are:
• The LTP of the stock > 150 SMA & 200 SMA
• The 150 SMA > 200 SMA
• The 200 SMA must be greater than 200 SMA 30 days ago.
• The 50 SMA > 150 SMA & 50 SMA > 200 SMA
• The LTP > 50 SMA
• The LTP must be greater than 30% of 52-Week Low
+
• The LTP is close to 25% of the 52-Week High
• The Relative Strength(RS) should be greater than 70
SMA = Simple Moving Average
LTP = Last Traded Price
Let's get started with its coding.
+