HALDRO

AIO Key Levels

HALDRO Updated   
All In One Key Levels - Displays key levels for any type of chart.
Over 30 levels at your complete disposal.
Filled with a host of features that allow you to customise the appearance and display of the indicator to suit your individual trading style.
The result is a clear and concise indicator that helps traders easily identify key levels.


  • - The indicator is easy to use and does not need a detailed description.
  • - With customisable input parameters such as display style, line style, font style, offset, threshold and index.
  • - The colours for the key levels can also be customised.
  • - The script uses a 'switch' function and selected input parameters to set display, line and font styles.
  • - The key levels are constructed using the data received and the selected styles and colours.
  • - A unique cycle helps to improve the readability of the levels without "polluting" the graph with multiple labels
  • - In addition, I have left hints in the indicator to help you understand it better.

For Pine coders.
Why did I create it when there are many counterparts?
Simply because counterparts have very large and complex code and modest functionality and flex.
Here I have managed to fit it into 100 lines still readable.
You can learn how to call lots of lines and marks with just one function.
I also created a unique loop that connects labels if they are too close together for better visibility on a plot.
I have left detailed comments for each action.
I would be glad if someone could tell me how to make it more easier.
Release Notes:
Improved the loop to merge labels at close price levels.
Added the ability to change the position of the labels. By default they are centered.
Release Notes:
A little hotfix :)
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?