TradingView
Julien_Eche
10 maj 2022 18:25

Percent Levels From Previous Close 

SPDR S&P 500 ETF TRUSTArca

Opis

This indicator plots on the chart +/- 1% / 2% / 3% ranges based on the previous day's close levels.

Disclaimer :
Success in trading is all about following your trading strategy and indicators should fit into your own strategy, and not be traded purely on.
This script is for informational and educational purposes only. Use of the script does not constitute professional and / or financial advice. You are solely responsible for evaluating the outcome of the script and the risks associated with using the script. In exchange for the use of the script, you agree not to hold monpotejulien TradingView user responsible for any possible claims for damages arising out of any decisions you make based on the use of the script.

Informacje o Wersji

- Style of the line - available styles are solid, dotted, and dashed

Informacje o Wersji

- Color of the % line - new available colors

Informacje o Wersji

Script structure has been reorganized.

Informacje o Wersji

Script structure has been reorganized.

Informacje o Wersji

Some bug fixes!

Informacje o Wersji

Some bug fixes!

Informacje o Wersji

New Version

Informacje o Wersji

shorttitle change

Informacje o Wersji

update
-Line Styling Option

Informacje o Wersji

Option added to calculate the levels from the open.

Informacje o Wersji

The text has been modified, changing the parameter interface and adding opacity.
Additionally, an option has been included to set any percentage between lines, not just 1%.
Furthermore, all the if() conditions in the code have been replaced with switch() statements.
Komentarze
himanshu31
hello. thank you so much for making this indicator... can you plz add option to calculate from todays open price... ??? it will be vwry greatfull
ezrakoper
Thank You. Will be nice if there will be a label + 2-3 bars in the future (so not override something else) above each percentage line. Also would be nice if the user can set the percentage level between lines so instead of lets say +1 +2 +3.... it will show +2.5 +5 +7.7.... Let the user decide

Also will be nice if there will an option to allow this plot to be done up to N days back. So i can see for example the same percentage from close from two days, from 3 days, etc. The lines should end before new day starts. Maybe around 80% of the time before the bars end for this day

Love your code thanks. I was planning to write exactly something like this.
Julien_Eche
@ezrakoper, Thank you :)
Julien_Eche
There it is, it's done.
thezentrader99
Hey can you add an option to calculate the levels from the open? Thanks!
RanjanStocks
Hey, thanks for the indicator. Can you please add alert condition for percent change like crossing 1% 2% etc
zarzarin
This is great! How could I change it for the last price ? I think the close price it uses for WIN1! is not the last traded price here (the end auction price).
Julien_Eche
@zarzarin, Sorry I don't understand your request. The 0% line refers to the last close price.
iriscalegare
@monpotejulien, I have the same doubt. The closed price in the future chart WIN1! is not the same that is indicated in your 0% line.
Julien_Eche
@iriscalegare, on my side it is working. Right now I see -2.29% and on the chart with the indicator it is correct...
Więcej