PROTECTED SOURCE SCRIPT

GS_MM_HULL

Aggiornato
Key Features:
Strategy Configuration:

Allows you to set the trading direction: long, short, or both (strat_dir_input).
Defines the backtesting period through testPeriodStart and testPeriodStop.
Hull Moving Average Variations:

Includes three variations of the Hull Moving Average: HMA, THMA (Triangular HMA), and EHMA (Exponential HMA).
Offers the flexibility to select the desired variation through modeSwitch.
Dynamic Plot and Color Options:

Can color the Hull MA line based on trend direction (switchColor).
Offers a band visualization for the moving averages.
Optionally colors the candles based on the Hull MA trend (candleCol).
Entry Logic:

Automatically places long or short orders based on the relationship between the current Hull MA value and its past value.
Restricts trades to the specified backtesting period.
ADR (Average Daily Range) Calculation:

Calculates and displays the ADR% using a specified length (adrLength).
Adds a label showing the ADR%
Note di rilascio
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.
Chart patternsHull Moving Average (HMA)

Script protetto

Questo script è pubblicato con codice protetto, ma puoi comunque usarlo gratuitamente. Mettendolo tra i preferiti potrai applicarlo al grafico, senza però la possibilità di visualizzare o modificare il codice sorgente.

Vuoi usare questo script sui tuoi grafici?

Declinazione di responsabilità