therealhaolu

Power X Strategy Back-test

therealhaolu Updated   
This script back-test the Power X Strategy developed by Markus Heitkoetter and Rockwell Trading. For more detail about the strategy, please refer to "The PowerX Strategy: How to Trade Stocks and Options in Only 15 Minutes a Day" written by Markus Heitkoetter. Note that this script is not publish, develop or maintain by Rockwell Trading, and may have different results. Rockwell Trading has a powerful software called Power X Optimizer, which scan, back-test and optimize the best stock for the strategy.
The Power X Strategy uses RSI , Slow Stochastic and MACD indicators under the hood. When RSI and slow Stochastic are both greater than 50 and MACD crosses up the signal line, it marks as up-trend. If RSI and slow stochastic are both less than 50 and MACD crosses down the signal line, it marks as down-trend. Other are mark as no trend.
This back-test makes a long entry with an up-trend momentum and short entry with down-trend momentum. Trade is exited when profit target or stop lose is reach. Profit target and stop lose is calculated based on 7 days Average Daily Range (ADR).
If the either of the momentum is lost, trade is exited the next day. It also skips the entire month of March 2020, since the market crash and is not in a normal market condition for the strategy.
Release Notes:
This script back-test the Power X Strategy developed by Markus Heitkoetter and Rockwell Trading. For more detail about the strategy, please refer to "The PowerX Strategy: How to Trade Stocks and Options in Only 15 Minutes a Day" written by Markus Heitkoetter. Note that this script is not publish, develop or maintain by Rockwell Trading, and may have different results. Rockwell Trading has a powerful software called Power X Optimizer, which scan, back-test and optimize the best stock for the strategy.
The Power X Strategy uses RSI , Slow Stochastic and MACD indicators under the hood. When RSI and slow Stochastic are both greater than 50 and MACD crosses up the signal line, it marks as up-trend. If RSI and slow stochastic are both less than 50 and MACD crosses down the signal line, it marks as down-trend. Other are mark as no trend.
This back-test makes a long entry with an up-trend momentum and short entry with down-trend momentum. Trade is exited when profit target or stop lose is reach. Profit target and stop lose is calculated based on 7 days Average Daily Range (ADR).
If the either of the momentum is lost, trade is exited the next day. It also skips the entire month of March 2020, since the market crash and is not in a normal market condition for the strategy.

V2
- Removed the option for only testing long or short. Since it was not working at the first place
- Added an input check box as an option skip the month of March due to the Covid-19 crash. Default is to skip it.
- Added an input option to adjust the amount of the account to risk. The default is 100%.
Release Notes:
- Udpate the covid-19 crash period. Skipping Feb 20 2020 to Mar 26 2020.
Release Notes:
- Add option to not enter a trade if the stock gapped more than certain %. Enable by a checkbox.
- The default of maximum gap is 2%
Release Notes:
- Adjust average daily range to be the average range of past 7 interval period which allows for testing the strategy on different interval.
Release Notes:
- update default start date
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?