Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

How to Take Advantage of Range Bar Charts

2 min read

Range Bar Charts takes only price into consideration and removes time element from the candle which helps a trader to get a edge during the volatility season(sideways market). Typical Candlestick charts uses time as a factor (5min, 30min, hourly charts etc) where the sideways markets creates lots of noise in our trading systems and most of the time end up with too many whipsaws.

How to Calculate Range Bars

Range Bar Charts generates a new candle only if the range got broken outside the range either way. For example a 15 point Range Bar chart in Nifty futures will create a new candlestick only if the 15 point range breaks out either of the side. In the low volatile market it creates less number of bars and in the high volatile trendy market it creates more number of bars. But a timebased charts create equal number of bars at frequent intervals regardless of the volatility in the market.

Nifty Futures -15 point Range Bar Charts
Range Bar Chart

It is recommended to adjust the Range Value for each and every trading instrument depends upon the Traders risking nature, trading type(positional,intraday) and the price of the instrument and the expected intraday swing. For Example we cannot apply a 15 point range bar to a Stock with a price value of Rs10 and it is meaningless to do so. IF the Nifty expected intraday range is 100 points then a 10 point or 15 point range bars are preferable according to the traders trading style and the risking ability. However there are no definite rules.

Range Bar Rules

  • Each range bar must have a high/low range that equals the specified range.
  • Each range bar must open outside the high/low range of the previous bar.
  • Each range bar must close at either its high or its low.

How to Gain Edge with Range Bars
By migrating your existing system from candlestick charts to range bar candlestick charts one can take advantage of overcoming sideways markets most of the trades. But still if the markets are highly compressed and trading sideways for longer period the losses incurred will be minimal compared to the time based candlestick charts. The real edge lies in riding the complete trend and also minimizing the losses when there is a sideways markets.

5point Range Bar Charts
Range Bar 5point

How to Setup Range Bar Charts in Amibroker

First we need to define the tick size of the instrument in Amibroker. To define tick size

1)Open Amibroker and Open the Charts in which you need to plot range bars
2)Goto Window -> Symbols Information (Ami Version 5.5 and above)

Tick Size

3)Under System Information Goto Contract Specification and enter the tick size value as the lowest possible movement. If tick size value is not defined amibroker by default takes the value as 0.01

4)Now enter the range value in the Chart interval box as shown below (Works only with 5.5 or above). So to get a 5 point range bars one have to enter 500R (500 x 0.01). To determine the tick size (minimum possible movement in any given stock) it is advisable to go thro the contract specifications provided by the exchange.

Range Value

5)Alternative method to set your favorite tick size is go to tools ->Preferences ->Intraday and define your favorite tick size as shown below. After setting the tick size now you can change to range bars easily by right clicking over the charts -> Goto Intraday and select your favorite Range Bar Charts.
Favorite Tick Size

6)Range Bar charts will work with non-tick highly authentic datafeeds. But tick level datafeeds will bring greater accuracy to the charts.


  • You cannot completely remove the sideways movement even in range bars which will lead to consecutive losses. But the amount of losses will be definitely less than the time based charts provided if you are using the right tick size.
  • It is advisable to have tick level database and database settings otherwise Range Bar Charts are not backtestable in Amibroker
Rajandran R Founder of Marketcalls and Co-Founder Algomojo. Full-Time Derivative Trader. Expert in Designing Trading Systems (Amibroker, Ninjatrader, Metatrader, Python, Pinescript). Trading the markets since 2006. Mentoring Traders on Trading System Designing, Market Profile, Orderflow and Trade Automation.

AllinOneAlerts – Amibroker Alerts Module for Amibroker Users

AllinOneAlerts is one of the most important and most requested modules to bring all sorts of alerts with no extra coding efforts. Now even...
Rajandran R
5 min read

How to improve your Amibroker Algo Trading Execution Speed

When comes to Automated Trading speed of execution plays a dominant role in executing at better prices. Here I would like to list three...
Rajandran R
1 min read

Introduction to QuantZilla 2.0

QuantZilla is a 75+ hours of immersive coding mentor-ship program on designing trading systems, converting trading ideas into indicators and trading strategies, automating the...
Rajandran R
4 min read

19 Replies to “How to Take Advantage of Range Bar Charts”

    1. A 10 tick range bar could open at 100.00 and have 5 ticks up to 100.05 and 5 ticks down to 99.95 and the bar would print a new candle. A 10 tick renko bar would have to have 10 ticks up to 100.10 or 10 ticks down to 99.90 before it would print another candle.

      1. @Rajendran,
        Thanks for the great post. Your knowledge is second to none.
        This is a purely academic post (might even be construed as nitpicking).
        Is it likely that it is the other way around? I use 100R (T-0.05) and a new bar will NOT appear until it has either gone up/down 5 points (100 x 0.05).
        I have never used Renko but the behavior you ascribe to Renko is exactly the way Range chart behaves in Amibroker 6.1.

  1. We see past couple of months many whipsaw in Supertrend, can you give an idea past 2 months how the performance may have changed by using these range bars? Also please give the recommended range bar setting for 5-min supertrend followers. Thx

    1. Statistical backtesting is not possible (if your data is not tick level) with Range Bar Charts. It is recommended to do a visual backtesting and then come to a conclusion.

  2. dear admin…can u make an exploration afl with this condition… buy signal = EMA8. >SMA 20..>SMA 50..>SMA 100….buy signal occur when this 4 moving average aligned and below the price…thanks very much sir

  3. So please let us know as per your experience so far, what would be a good profitable range bar specification (500R 300R or 200R ) for banknifty and nifty.

  4. i want to backtest using Range charts

    In backtesting it doesnot show that option ..How to select range charts

  5. I use Amibroker Standard not pro, so the lowest timeframe in database settings is 1min. I use GDFL data feed, so its tick based, but I still can’t get proper display of range bars in CrudeOil. Do I need to go in for Pro version?

  6. hi, its a great post, not many technical analyst can go beyond conventional tools, thanks a lot. I want to use amiboker – can u pl guide best way to go ahead & back test. thanks a lot.

Leave a Reply

Get Notifications, Alerts on Market Updates, Trading Tools, Automation & More