OPEN-SOURCE SCRIPT
Updated

McClellan Oscillator Strategy

2 865
Buy and sell programs when 5 day EMA goes above and below zero, respectively.

Useful for LEVERAGED ETF trading such as SPXL, TECL, FNGU, etc. Not so much for general portfolio holdings.
Release Notes
Changing the strategy to use exponential moving average crossovers.
Release Notes
...
Release Notes
Add option to de-lever exposure when volatility is high.
Release Notes
Change volatility to use close
Release Notes
Increased profit and loss a lot ....
Release Notes
Improve PnL by changing RANA moving averages.
Release Notes
Improve PnL more
Release Notes
Add roll yield to help filter sell signals

Sell everything in the middle of October before US presidential elections.
Release Notes
Add IWM > SMA(20) buy signal

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.