Updated
Example - How to create multiple level grids

Example on how to create custom grids with variable N lines/labels:
Release Notes
-cleanup a bit-added method to erase artifacts.
-vertical lines do not behave correctly!!
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.
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.