This strategy BUYS when HMA is below EMA (default setting is 200) and HMA turning to green and RSI 13 is below 70

Adds to existing position when current price is below BUY price and RSI crossing above 30 or 40

Exits the long position when HMA crosses down EMA

when you select Take Profit setting , partial profits are taken when current price > BUY price and RSI 13 crossing down 80

Bar color changes to purple when RSI13 is above 80 (if only in Long position exists)

Tested for SPY QQQ AAPL on hourly and 30 mins chart

Warning : For educational purposes only
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.


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?