OPEN-SOURCE SCRIPT
Updated

TEMA Cross Backtest

3 460
A simple strategy backtest using two Triple Exponential Moving Averages (TEMA) crossing up and down. The default is a 20 TEMA crossing above 60 TEMA generates a long signal. Short signals are turned off by default, but included in the code at the last 2 lines (remove the '//').

Parts of script borrowed from other public scripts.
Release Notes
Cleanup
Release Notes
Cleanup

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.