AdeTheCoda

Local Highs & Lows ATC-LHAL [ATC]

What does this indicator do?

This indicator plots the highest and lowest historical price for each candle for a specified time interval, so you can see for each candle which price was the historical ("local") maximum or minimum in the defined time interval. It helps you not to lose sight of previous highs and lows, even when working with short time frames.
In the example chart you can see the highest price for each candle, that have occurred during a defined time interval (adjustable in the indicator settings), here as an example during 1 day.

So, for example, during trading in a 5m chart, you can always see the highest and lowest price, that occurred e.g. some time ago.


Where is the benefit?

For trading, it can be a strategic advantage to know the last decisive high or low in a defined period of time.
If the time frame is very short, e.g. 5m as in the example chart shown, then the overall overview is often missing: It is often of interest to know at what price the last high was within the last day, for example. This indicator can therefore be configured by specifying a time interval so that this local high is always displayed. In the example chart, this high is shown as a plotted green line.
The same is true with the historical low point in a defined interval: This is shown in red in the example chart. As an example, one day was specified for the lookback period for both the local high and the local low.


How is the data for each candle calculated?

The indicator's script plots the highest or lowest price for each candle that occurred in the specified time period. The loopback periods can be defined separately for the high price and low price.


How is the indicator configured?

Inside of the settings of the indicator you can set the High Lookback Interval and the Low Lookback Interval easily, for example 1 day, or 30 minutes, just as you like.
This interval will be the lookback period, and the highest or lowest price that occurred during this interval will be plotted.


Why is this script special?

Unlike most other scripts, the time interval can be specified in seconds, minutes, hours or days and not by a number of candles. It is therefore independent of the time interval. It is no longer necessary to adjust the number of candles accordingly, when you switch the time frame.

Have fun!



Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?