TradingView
RicardoSantos
14 mar 2020 18:51

Example - How to create multiple level grids 

Bitcoin / U.S. dollarBitstamp

Descrizione

Example on how to create custom grids with variable N lines/labels:

Note di rilascio

-cleanup a bit
-added method to erase artifacts.
-vertical lines do not behave correctly!!
Commenti
parisseine
Hi Ricardo
As usual, you are very innovative great thanks. I would like to keep the initial range as it will be removed later and later the accurate ones. Do you think there is a way to combine your fractal with the grid?
mb0054692652kh
thankyou so much . thats very use full
rvcasteuble
Merci de votre partage, Ricardo Santos. ce script va m'aider pour réussir mes trades. :)
aaahopper
Hi RicardoSantos,
Great script. Thank you.
I have used it on low timeframes and the plots look great.
Unfortunately, Sometimes it does not delete the previous lines.
I tried but did not succeed.
Is it possible to fix them?
Thank you
RicardoSantos
@aaahopper, right now i think there isnt a way around it, thats a side effect of creating the lines dynamically through the custom function, ill go through it again anyway and see if i can work around it but this may be definite for now
RicardoSantos
@aaahopper,
you can use this workaround but you wont be able to use other persistent lines..
add this before the if statement:

[code]
if remove_artifacts
for _j = 0 to 55
line.new(bar_index, open, bar_index, open)
label.new(bar_index, open, "", color=#ffffffff)
[/code]
ICEKI
This is cool! Appreciated your generous shared RicardoSantos =D
UnknownUnicorn5012578
great bro
Altro