OPEN-SOURCE SCRIPT

Setup: Smooth Gaussian + Adaptive Supertrend (Manual Vol)

6 164
Overview
This strategy combines two powerful trend-based tools originally developed by Algo Alpha: the Smooth Gaussian Trend (simulated) and the Adaptive Supertrend. The objective is to capture sustained bullish movements in periods of controlled volatility by filtering for high-probability entries.

Entry Logic
Long Entry Conditions:

The closing price is above the Smooth Gaussian Trend line (with length = 75), and

The volatility setting from the Adaptive Supertrend is manually defined as either 2 or 3

Exit Condition:

The closing price falls below the Smooth Gaussian Trend line

This script uses a simulated version of the Gaussian Trend line via double-smoothed SMA, as the original Algo Alpha indicator is protected and cannot be accessed directly in code.

Features
Plots entry and exit signals directly on the chart

Manual toggle to enable or disable the volatility filter

Lightweight design to allow flexible backtesting even without access to proprietary indicators

Important Note
This strategy does not connect to the actual Adaptive Supertrend from Algo Alpha. Users must manually input the volatility level based on what they observe on the chart when the original indicator is also applied. The Smooth Gaussian Trend is approximated and may differ slightly from the original.

Suggested Use
Recommended timeframes: 1H, 4H, or Daily

Best used alongside the original indicators displayed on the chart

Consider incorporating additional structure, momentum, or volume filters to enhance performance

If you have suggestions or would like to contribute improvements, feel free to reach out or fork the script.

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.