INVITE-ONLY SCRIPT
Updated

Profitable SuperTrend

30185
Introduction
I was faced with the fact that many authors contradicted each other about the indicator settings. Each trader offers his(her) own settings, without having an evidence base. Therefore, I decided to make an algorithmic optimizer.

What is this tool?
This tool is a performance optimizer that uses a decision tree-based algorithm under the hood to find the most profitable settings for the SuperTrend indicator. It analyzes a bunch of different ATR Periods (between 3 to 45) and ATR Multipliers (between 1 to 8 with a decimal step of 0.1) and backtests each combination across the entire history of an instrument. If the more profitable parameters were found, the indicator will switch its values to the found ones immediately.

Instead of manually selecting parameters, just relax - the algorithm will do it for you.

Alerts
It has an alert that notifies when the more profitable settings were found.

NOTE: It does not change what has already been plotted before.
NOTE 2: The implementation of the SuperTrend indicator I used can be found here
Release Notes
  • Made optimization fixes
Release Notes
  • Added date range for optimizer
  • Added option to use Early Switch Algorithm
  • Added optimization fixes
Release Notes
  • Changed alert name
Release Notes
  • Security update
Release Notes
  • Security update
Release Notes
  • Security update
Release Notes
  • Security update
Release Notes
  • Security update
Release Notes
  • Security update
Release Notes
  • Security update
Release Notes
  • Security update
  • Optimization update
  • Added commission customization
Release Notes
  • Update
Release Notes
  • Update
Release Notes
  • Update
Release Notes
  • Update
Release Notes
  • Minor update
Release Notes
  • Update
Release Notes
  • Fixed bug with the SuperTrend calculation on doji candles

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.