PROTECTED SOURCE SCRIPT

GS_MM_Swing_V11

This script combines a Hull Moving Average (HMA) strategy with additional features such as Average Daily Range Percentage (ADR%) calculation, gap detection, and visualization. It is converted into a strategy for backtesting on TradingView.

Features Highlight:
Hull Moving Average Variants:

Hma (Hull Moving Average)
Thma (Triple Hull Moving Average)
Ehma (Exponential Hull Moving Average)
Customizable Inputs:

Strategy direction (long, short, or all).
ADR% length and calculation.
Hull line thickness, color, and transparency.
Backtest Period Control:

Users can specify custom start and stop dates for backtesting.
Signal Logic:

Buy when HMA[0] > HMA[2] and sell when HMA[0] < HMA[2].
Ensures that trades only occur during the backtesting period.
ADR% Display:

Calculates and displays ADR% as a label above the current bar.
Gap Detection:

Highlights gap-up candles based on a user-defined gap percentage using a yellow background.
Average True Range (ATR)Exponential Moving Average (EMA)Trend Analysis

Script protegido

Este script se publica con código cerrado, pero puede utilizarlo libremente. Márquelo como favorito y podrá usarlo en un gráfico. El código fuente no se puede ver ni modificar.

¿Quiere utilizar este script en un gráfico?

Exención de responsabilidad