RicardoSantos

Example - How to create multiple level grids

Example on how to create custom grids with variable N lines/labels:
版本注释: -cleanup a bit
-added method to erase artifacts.
-vertical lines do not behave correctly!!
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,因此交易者可以理解和验证它。为作者加油! 您可以免费使用它,但是在发布中重复使用此代码受网站规则的约束。您可以收藏它以在图表上使用。

想在图表上使用此脚本?

评论

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?
回复
Merci de votre partage, Ricardo Santos. ce script va m'aider pour réussir mes trades. :)
回复
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
@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
@aaahopper,
you can use this workaround but you wont be able to use other persistent lines..
add this before the if statement:


if remove_artifacts
for _j = 0 to 55
line.new(bar_index, open, bar_index, open)
label.new(bar_index, open, "", color=#ffffffff)
回复
This is cool! Appreciated your generous shared RicardoSantos =D
回复
great bro
回复