OPEN-SOURCE SCRIPT
已更新

HMA w(LRLR)

11 239
Description: This script combines a customizable Hull Moving Average (HMA) with a Low Resistance Liquidity Run (LRLR) detection system, ideal for identifying trend direction and potential breakout points in a single overlay.

Features:

Hull Moving Average (HMA):

Select separate calculation sources (open, high, low, close) for short and long periods.
Choose from SMA, EMA, and VWMA for length type on both short and long periods, offering flexible moving average calculations to suit different trading strategies.
Color-coded HMA line that visually changes based on crossover direction, providing an intuitive view of market trends.
Customizable options for line thickness, color transparency, and band fill between HMA short and long lines.
Low Resistance Liquidity Run (LRLR):

Detects breakout signals based on price and volume conditions, identifying potential liquidity run levels.
User-defined length and breakout multiplier control breakout sensitivity and adjust standard deviation-based thresholds.
Color-coded visual markers for bullish and bearish LRLR signals, customizable for user preference.
Alerts for both bullish and bearish LRLR events, keeping users informed of potential trading opportunities.
This script allows traders to visually track the HMA trend direction while also spotting low-resistance liquidity opportunities, all on one chart overlay.

Disclaimer: This tool is intended for educational purposes only and should not be used solely to make trading decisions. Adjust parameters as needed, and consider additional analysis for comprehensive decision-making.
發行說明
-Fixed bands to same color of trend (bullish/Bearish)
-Fixed hma calculations ( added to source options)
- Line style now a key feature for bands
發行說明
Native TradingView HMA Integration
  • Fixed the Hull Moving Average calculation to properly match TradingView’s native ta.hma() behavior.
  • Previous versions used a hybrid smoothing formula which caused:
  • HMA mismatch vs TradingView
  • crossover drift
  • inconsistent trend alignment
  • inaccurate slope behavior
  • The "HMA" setting now uses the official TradingView HMA calculation directly.


Improved Trend Coloring Logic

Corrected MA trend-color synchronization.

Previous behavior could produce:

opposing MA colors
  • inverted long-period trend states


Updated logic now ensures:

  • bullish trend = both MAs aligned bullish
  • bearish trend = both MAs aligned bearish
  • fill color synchronized with trend direction


Multi-Timeframe Support

Added optional alternate timeframe sourcing:

  • chart timeframe
  • custom timeframe selection


This allows:

  • HTF trend overlays
  • lower timeframe execution alignment
  • top-down trend workflows


This update improves:

  1. visual synchronization
  2. trend accuracy
  3. TradingView consistency
  4. customization flexibility
  5. backtesting integrity
  6. publishing quality


while preserving the original lightweight overlay design of HMA + LRLR.

免責聲明

這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。