OPEN-SOURCE SCRIPT

McClellan Oscillator Strategy

Updated
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
Oscillators

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer