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!



開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?