This is a simple script that plots horizontal grid on your chart using .x000 .x200 .x500 .x800 levels. Mike mentioned these levels in one of his videos.

Fences is only a semi-automatic indicator. You have to input the central point AND number of decimals yourself.
• Decimals are set to 3 but JPY pairs need it to be 1.
• Anchor point is the nearest level ending with three zeroes.
Release Notes:
A few visuals changed to look better on my charts.
In addition, N1 N2 and N3 are now floats. So if you prefer 25 pip boxes as opposed to 200, 500, 800 levels, it is possible to set up now.

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?