OPEN-SOURCE SCRIPT

Daily Liquidity Peaks and Troughs [ST]

By ArionSoteTrader
Daily Liquidity Peaks and Troughs

Description in English:

This indicator identifies peaks and troughs of highest liquidity on a daily timeframe by analyzing volume data. It helps traders visualize key points of high buying or selling pressure, which could indicate potential reversal or continuation areas.

Detailed Explanation:

Configuration:

Lookback Length: This input defines the period over which the highest high and lowest low are calculated. The default value is 14. This means the script will look at the past 14 bars to determine if the current high or low is a pivot point.

Volume Threshold Multiplier: This input defines the multiplier for the average volume. For example, a multiplier of 1.5 means the volume needs to be 1.5 times the average volume to be considered a significant peak or trough.

Peak Color: This input sets the color for liquidity peaks. The default color is red.
Trough Color: This input sets the color for liquidity troughs. The default color is green.
Volume Calculation:

Average Volume: The script calculates the simple moving average (SMA) of the volume over the lookback period. This helps to identify periods of significantly higher volume.

Volume Threshold: The threshold is determined by multiplying the average volume by the volume threshold multiplier. Only volumes exceeding this threshold are considered significant.

Identifying Peaks and Troughs:

Liquidity Peak: A peak is identified when the current high is the highest high over the lookback period and the current volume exceeds the volume threshold. This indicates a potential area of strong selling pressure.

Liquidity Trough: A trough is identified when the current low is the lowest low over the lookback period and the current volume exceeds the volume threshold. This indicates a potential area of strong buying pressure.

These peaks and troughs are marked on the chart with labels and shapes for easy visualization.
Plotting Peaks and Troughs:

Labels: The script uses labels to mark peaks and troughs on the chart. Peaks are marked with a red label and troughs with a green label.

Shapes: The script plots triangles above peaks and below troughs to highlight these areas visually.
Indicator Benefits:

Liquidity Identification: Helps traders identify key areas of high liquidity, indicating strong buying or selling pressure.

Visual Cues: Provides clear visual signals for potential reversal or continuation points, aiding in making informed trading decisions.

Customizable Parameters: Allows traders to adjust the lookback length and volume threshold to suit different trading strategies and market conditions.

Justification of Component Combination:

Peaks and Troughs Identification: Combining pivot points with volume analysis provides a robust method to identify significant liquidity areas. This helps in detecting potential market reversals or continuations.

Volume Analysis: Utilizing average volume and volume threshold ensures that only significant volume spikes are considered, enhancing the accuracy of identified peaks and troughs.

How Components Work Together:

The script first calculates the average volume over the specified lookback period.

It then checks each bar to see if it qualifies as a liquidity peak or trough based on the highest high, lowest low, and volume threshold.

When a peak or trough is identified, it is marked on the chart with a label and a shape, providing clear visual cues for traders.

Título: Picos e Fundos de Liquidez Diários

Descrição em Português:

Este indicador identifica picos e fundos de maior liquidez no gráfico diário, analisando os dados de volume. Ele ajuda os traders a visualizar pontos-chave de alta pressão de compra ou venda, o que pode indicar áreas potenciais de reversão ou continuação.

Explicação Detalhada:

Configuração:

Comprimento de Retrocesso: Este input define o período sobre o qual a máxima e mínima são calculadas. O valor padrão é 14. Isso significa que o script analisará os últimos 14 candles para determinar se a máxima ou mínima atual é um ponto de pivô.

Multiplicador de Limite de Volume: Este input define o multiplicador para o volume médio. Por exemplo, um multiplicador de 1.5 significa que o volume precisa ser 1.5 vezes o volume médio para ser considerado um pico ou fundo significativo.

Cor do Pico: Este input define a cor para os picos de liquidez. A cor padrão é vermelha.
Cor do Fundo: Este input define a cor para os fundos de liquidez. A cor padrão é verde.
Cálculo do Volume:

Volume Médio: O script calcula a média móvel simples (SMA) do volume ao longo do período de retrocesso. Isso ajuda a identificar períodos de volume significativamente mais alto.

Limite de Volume: O limite é determinado multiplicando o volume médio pelo multiplicador de limite de volume. Apenas volumes que excedem esse limite são considerados significativos.

Identificação de Picos e Fundos:

Pico de Liquidez: Um pico é identificado quando a máxima atual é a máxima mais alta no período de retrocesso e o volume atual excede o limite de volume. Isso indica uma potencial área de forte pressão de venda.

Fundo de Liquidez: Um fundo é identificado quando a mínima atual é a mínima mais baixa no período de retrocesso e o volume atual excede o limite de volume. Isso indica uma potencial área de forte pressão de compra.

Esses picos e fundos são marcados no gráfico com etiquetas e formas para fácil visualização.
Plotagem de Picos e Fundos:

Etiquetas: O script usa etiquetas para marcar picos e fundos no gráfico. Os picos são marcados com uma etiqueta vermelha e os fundos com uma etiqueta verde.

Formas: O script plota triângulos acima dos picos e abaixo dos fundos para destacar essas áreas visualmente.
Benefícios do Indicador:

Identificação de Liquidez: Ajuda os traders a identificar áreas-chave de alta liquidez, indicando forte pressão de compra ou venda.

Cues Visuais: Fornece sinais visuais claros para pontos potenciais de reversão ou continuação, auxiliando na tomada de decisões informadas.

Parâmetros Personalizáveis: Permite que os traders ajustem o comprimento de retrocesso e o limite de volume para se adequar a diferentes estratégias de negociação e condições de mercado.

Justificação da Combinação de Componentes:

Identificação de Picos e Fundos: A combinação de pontos de pivô com análise de volume fornece um método robusto para identificar áreas significativas de liquidez. Isso ajuda na detecção de potenciais reversões ou continuações de mercado.

Análise de Volume: Utilizar o volume médio e o limite de volume garante que apenas picos de volume significativos sejam considerados, aumentando a precisão dos picos e fundos identificados.

Como os Componentes Funcionam Juntos:

O script primeiro calcula o volume médio ao longo do período especificado de retrocesso.
Em seguida, verifica cada barra para ver se ela se qualifica como um pico ou fundo de liquidez com base
forecastingFractalVolatility
ArionSoteTrader

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer