PROTECTED SOURCE SCRIPT

HMA PLANz

73
1. High Liquidity Candle Detection:
The indicator looks for candles with high liquidity (identified by comparing the current candle's volume with the highest volume of the last 10 candles).

If a candle has high liquidity, it is highlighted in yellow.

2. Midpoint Calculation of the Candle:
The midpoint of the candle is calculated by averaging the High and Low prices of the candle:

Midpoint
=
High
+
Low
2
Midpoint=
2
High+Low


3. Draw a Line at the Midpoint of the High Liquidity Candle:
A horizontal line is drawn at the calculated midpoint value of the high liquidity candle and continues for the next five candles.

4. Change Line Color Based on Price vs. Midpoint:
If the current price is above the midpoint, the line is drawn in green.

If the current price is below the midpoint, the line is drawn in red.

5. Moving Averages (MA):
In addition to liquidity analysis, the indicator calculates and plots two moving averages on the chart.

Users can choose between EMA, SMA, WMA, or HMA for each moving average.

Users can also select the source for the moving averages (Close, High, Low).

The length for each moving average is customizable.

6. Display Moving Averages with Labels:
The moving average lines are plotted on the chart.

Labels are displayed above each moving average to show its type and source (e.g., "MA - HMA (Close)").

Summary of Key Features:
High Liquidity Candle Detection: Highlighted in yellow.

Draw a Horizontal Line at the Midpoint of the high liquidity candle: The line color changes based on price relation to the midpoint.

Moving Averages: Allows customization of types and lengths.

Labels: Shows details of the moving averages.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.