This script is a grid bot simulator for ranging/choppy markets. Prices are divided into grids, or trade zones, that will trigger signals each time a new zone is entered. During ranging markets, each transaction is followed by a “take profit.” As the market starts to trend, transactions are stacked (compare to DCA), until the market consolidates. No signals are triggered above the Upper Limit or Below the Lower Limit.
Settings overview:
Upper Limit/Lower Limit : Highest and Lowest values for entire grid.
Number of Grids: Number of trade zones.
Show Grids: Show or hide all gridlines.
Show Only Current Grids: Only display the grids just above and just below the current trade zone.
High/Low for signals: If enabled, signals are triggered as soon as the price touches the next zone. If disabled, signals are triggered after bar closes. Enable this for “Once Per Bar alerts. Disable for “Once Per Bar Close” alerts.

Highlight Trade Zones
The grid bot should work well during ranging/choppy markets. Each zone will have only one trade, and then will immediately take profit in the next zone.

Ranging/Choppy Market
However, trending markets can produce multiple signals in rapid succession:

Trending Market
If the gridlines are compressing the chart space, enable the “Show Only Current Grids” in settings.

Show Only Current Grids disabled

Show Only Current Grids enabled
When changing symbols, adjust the Upper and Lower Limits to accommodate the new symbol. Otherwise, the chart will look compressed.

XBTUSD chart with ETHUSDT settings
The bot is a proof-of-concept and is considered experimental. Possible future updates will include Fibonacci grids and “smart entry/exits,” depending on the current trend. Comments and suggestions are encouraged.
Settings overview:
Upper Limit/Lower Limit : Highest and Lowest values for entire grid.
Number of Grids: Number of trade zones.
Show Grids: Show or hide all gridlines.
Show Only Current Grids: Only display the grids just above and just below the current trade zone.
High/Low for signals: If enabled, signals are triggered as soon as the price touches the next zone. If disabled, signals are triggered after bar closes. Enable this for “Once Per Bar alerts. Disable for “Once Per Bar Close” alerts.
Highlight Trade Zones
The grid bot should work well during ranging/choppy markets. Each zone will have only one trade, and then will immediately take profit in the next zone.
Ranging/Choppy Market
However, trending markets can produce multiple signals in rapid succession:
Trending Market
If the gridlines are compressing the chart space, enable the “Show Only Current Grids” in settings.
Show Only Current Grids disabled
Show Only Current Grids enabled
When changing symbols, adjust the Upper and Lower Limits to accommodate the new symbol. Otherwise, the chart will look compressed.
XBTUSD chart with ETHUSDT settings
The bot is a proof-of-concept and is considered experimental. Possible future updates will include Fibonacci grids and “smart entry/exits,” depending on the current trend. Comments and suggestions are encouraged.
Release Notes
Adjusted signals to buy at LowerLimit and sell at UpperLimit if 'extremes' is enabled.Release Notes
- Added market direction filter. Bot will skip ever other signal against market direction (up or down).
- Added option for signal plot size.
Release Notes
Fixed Upper and Lower Limit lines not showingRelease Notes
Fixed signal arrow sizesRelease Notes
Fixed "Transp" deprecation warningRelease Notes
New version available:https://www.tradingview.com/script/6k0tgcu9-Grid-Bot-Auto/
Grid Bot Auto
Release Notes
Update to Pinescript Version 5.New feature: Interactive upper/lower limit price selectors.
Use the price selectors to set the Upper and Lower Limits when adding the indicator to a new chart, or to interactively change the limits on a live chart.
To change Upper and Lower Limits on an active chart:
1. Click on the indicator to reveal the price selectors (tiny blue boxes)
2. Slide the boxes up or down to select the new price limits
When adding to a new chart, follow the prompts to set the “Upper Limit” price, then the “Lower Limit” price.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
USDT(ERC20):0x89c1ada92d53e88a06131a28693fd46101bdbecb
LTC:LWx9nAqbfZcWB5GBxUuBEpdBCFyVAmSFjm
ETH(ERC20):0x89c1ada92d53e88a06131a28693fd46101bdbecb
BTC:113pXq5Lxdp3UUgTpRng24sxX7YRE9dR61p
LTC:LWx9nAqbfZcWB5GBxUuBEpdBCFyVAmSFjm
ETH(ERC20):0x89c1ada92d53e88a06131a28693fd46101bdbecb
BTC:113pXq5Lxdp3UUgTpRng24sxX7YRE9dR61p
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
For quick access on a chart, add this script to your favorites — learn more here.
USDT(ERC20):0x89c1ada92d53e88a06131a28693fd46101bdbecb
LTC:LWx9nAqbfZcWB5GBxUuBEpdBCFyVAmSFjm
ETH(ERC20):0x89c1ada92d53e88a06131a28693fd46101bdbecb
BTC:113pXq5Lxdp3UUgTpRng24sxX7YRE9dR61p
LTC:LWx9nAqbfZcWB5GBxUuBEpdBCFyVAmSFjm
ETH(ERC20):0x89c1ada92d53e88a06131a28693fd46101bdbecb
BTC:113pXq5Lxdp3UUgTpRng24sxX7YRE9dR61p
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.