TradingView
HALDRO
4 Şub 2023 15:03

AIO Key Levels 

ETHUSD/BTCUSDTBitstamp

Açıklama

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.

Sürüm Notları

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.

Sürüm Notları

A little hotfix :)
Yorumlar
SimpleCryptoLife
Brilliant work.
Since you asked, I can't think of any real improvements. But you can save a few characters by using +=, for example in line 127.
And
for [z, label_z] in labels
for example to combine lines 131 and 132.
But in general very compact and clear - kudos!
nguan45
it can show the price in line , thx
SenBa009
Great one, Thanks. Is it worth highlighting daily open first 15 minutes high low? Happy new year.
HALDRO
@SenBa009, thanks, I don't think this makes sense
Basav2020
nice one sir
IMBLASTER
Sir, pls update for any alert function
mjmassens
Hello! This has EVERYTHING I've been searching for, except for the prior CLOSING prices. Any way to add that? It would be the ultimate OHLC indicator!
HALDRO
@mjmassens, Hi. hah) there is no point in displaying the current closing price if the candle is not yet closed.
The current open price is the close price of the previous candle.
That's why only the current open and previous prices are shown. This is the base to understand before you go to the market.
mjmassens
@HALDRO, That is true, however there are often gaps which displace the prior close from current open, even in futures. Either way I appreciate the response. Would still love to see it as an option that could be turned on/off.
Daha Fazla