Tradingview Grid Bot Strategy

Tradingview Grid bot strategy can help you maximize your profit in a ranging sideways market with no clear direction.

Click here to add indicator tradingview


What Is Grid Bot Trading?

Grid trading is when orders are placed above and below a set price, creating a grid of orders at incrementally increasing and decreasing prices.

Overall the technique seeks to capitalize on normal price volatility in an asset by placing buy and sell orders at certain regular intervals above and below a predefined base price.

It is more efficient to use the grid strategy when the market is not in a downward or upward trend.



We can get some money by taking advantage of the movement of the price between the range we have determined.
Short positions are opened while the price is rising, long positions are opened while the price is falling.
Therefore, there is no need to predict the trend direction.

Let’s watch video and learn how the strategy works

Firstly we add indicator to chart after that we should pick high level of range and low level of range, be careful with date and grid number.

Sometimes 10 grid level is better then 20 grid level when your range is very close, because of the commission on exchange.


What I have improved ?

1- Tradingview grid bot strategy is a type of strategy that can be traded in very short time frames and users can trade this strategy algorithmically by connecting this strategy to their own accounts with the help of API systems. For this reason, I have developed a software that can give us signals by dynamically changing the long and short messages when users are trading.

2- We can change the start and end dates of our grid bot as we want. It is necessary to use this setting when setting up automatic bots, so that previously opened transactions are not taken into account.

3 – Lot or quantity size should not be excessively small when users are taking automatic trades because exchanges have limitations, to avoid this problem, I have prevented this error by automatically rounding up to the nearest quantity size inside the software.

4 – Users can avoid excessive losses by using stop loss on this grid bot if they wish.

5 – When our price is over the range high or below the range low, our open positions are closed, if the stop button is active. We can also change which close price time frame we take as a basis from the settings.

6 -Users can set how many dollars they can enter per transaction while performing their transactions automatically.



This script allows the user to choose the highs and lows leves of our range. Our bot trades in the specified range.

settings panel tradingview
settings panel tradingview


1. This strategy allows us to set start and end backtest dates.

2. We can change range high and range low leves of our bot

3. IF people want to trade algorithmically with the help of this bot, there are 6 different input systems that will receive the Json codes as an alarm

4. IF the price closes above the upper line or below the lower line, all transactions will be closed. We can determine in which time frame our transactions will be stopped if the price closes outside these levels.We can adjust how our bot works by activating or turning off the Stop Loss button.

5. In this strategy, you can determine your dollar cost for per position.

6. The user can also divide the interval we have determined into 10 parts or 20 equal parts.

7. The grid is divided and colored at the interval we set. At the same time, if we don’t want we can turn off colored channels.


How does this indicator stop position ?

grid bot stop
grid bot stop


IF the current bar close stays out of range during the bar closure timeframe we have set, our positions will stop.


How can we set alarm for algo trade ?



If you’re going to connect this bot to an automatic Long or Short direction,
Don’t forget! you need to Webhook URL,
Don’t miss paste this code to your message window {{strategy.order.alert_message}}


  • You can access the strategy codes here

  • Strateji kodlarina buradan ulasabilirsiniz

  • Вы можете получить доступ к кодам стратегий здесь



Please do not open trades without properly managing your risk and psychology!!!


I can bring your ideas to life, you can visit my website here



I have prepared examples for both my customers and myself, which you can look at.

  • All Post
  • python-excel
  • tradingview-strategies
Load More

End of Content.

Contact addresses

You can use the following ways to contact.

Don’t give up on your dreams …