OPEN-SOURCE SCRIPT

TEMA Cross Backtest

Updated
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
Moving Averages

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