Professional Documents
Culture Documents
Renko Bars
User Manual
2
Table of Contents
The manual refers to version 1.4 of the LT_Renko_ Bars for NinjaTrader 8.
3
A new brick is added above or below the last brick, as soon as price has
moved a specific amount called the bricksize. For an upward move the
bar close for the next renko bar is found by adding the brick size to the
high of the prior bar. For a downward move the next bar close is found by
subtracting the brick size from the low of the prior bar.
Pursuant to this assembly, Renko bars are designed to emphasize trends
and filter out sideways markets. Renko charts look smoother and make it
easy to identify trends. Furthermore renko bars eliminate both time and
volatility.
4
A trend continuation bar closes after price has moved in the direction of
the prior trend by an amount equal to the brick size. Conversely,
completion of a reversal bar requires a move of twice the brick size in the
opposite direction. Although both trend continuation and reversal bars
are represented by a single brick, a reversal bar effectively has twice the
size of a trend continuation bar.
- all indicators that use the bar opens, bar highs or bar lows as an input
series should not be applied to renko bars
- strategies running on renko bars cannot be backtested, as market
orders will use fake open prices to simulate fills
- most renko bars have false time stamps or time stamps that do not
match the closing price of the renko bar
- renko bars cannot be used in multi-bar series scripts or with tick
replay
In conclusion, renko bars – although they emphasize trends and
eliminate sideways price action – are difficult to handle.
Fixing the aweful looking chart introduces the topic of chart styles. They
can be used to implement design features of renko bars without using fake
prices. Chart styles do not change the underlying data and have no impact
on indicator calculations, backtests or other bar properties. Chart styles
typically recalculate bar open, bar high and bar low, but they do not touch
the bar close. When applying a chart style, the genuine open may be
replaced with an esthetically pleasing fake open and we may choose to keep
or remove the wicks. As a result, the renko bars will again look as
traditional renko bars, but eliminating most of the unwanted properties.
7
This is the same chart as shown above, but with a chart style applied. The
chart style has the genuine open replaced with a fake open and the upper
and lower wicks have been removed.
Some renko bars even use a third parameter for selecting an open offset.
However, such open offsets will produce fake opens and false backtests.
Certain renko bars use the brick size as a parameter instead of a trend or
reversal offset. Although this is feasible, it should be avoided because the
mechanics of renko bars are based on trend and reversal offsets.
9
The LizardRenko bars were designed for systems trading. Accordingly, the
rules outlined above were adhered to when designing them:
The opening price is the price of the first transaction of the set.
The high of the bar is the highest price of all transactions of the set.
The low of the bar is the lowest price of all transactions of the set.
The closing price is the price of the last transaction of the set.
The time stamp of the bar is the time stamp of the last transaction of the
set.
The volume is the total added volume of all transactions of the set.
These rules partly contradict the traditional renko bars concept, but are
needed to make them suitable for system trading. In particular the
following properties were kept in mind:
- Indicator values are only calculated from real prices as opposed to
fake prices.
- Gaps are not filled with zero volume fake bars.
- The bars are fully backtestable.
- The bars can be used in tick replay and synchronized in multi-bar
series scripts.
A Lizard Renko bar is closed as soon as the target level is reached. New
target levels are then based on the close of the prior bar. Therefore, the
Lizard Renko bars are not grid based and allow for gaps between two bars
when market liquidity is low.
LizardRenko Bars
The Lizard Renko bars are built using two parameters, the tick trend and
the tick reversal, where
- tick trend = number of ticks required to complete a new continuation
bar
- tick reversal = number of ticks required complete a new reversal bar
They do no have a third parameter to set a fake open, because the open is
dependent on the selected chart style.
10
Chart Styles
The LizardRenko bar, D-Renko bars, T-Renko bars and Q-Renko bars may
be used with the following chart styles:
- Candlestick, Hollow candlestick
- OHLC, Open/Close
- LizardBrick
- UniBrick
When used with NinjaTrader in-built chart styles, the bars or candles will
show genuine prices, as displayed in the data box. This is different for the
chart styles LizardBrick or UniBrick. Specifically, the chart open, high or low
of the bar will display as genuine renko bars. The adjustment used for
applying the chart styles to the renko bars does not affect the underlying
data or bar properties in any way.
The chart styles LizardBrick and UniBrick do not allow for setting the bar
open via a specific offset. After consideration, we concluded it would not
add value other than simply modify the fake open.
11
The chart below shows D-Renko bars with the chart style “LizardBrick” in
submode “Wicks”.
All bars show genuine high, low and close prices. The fake open is a design
feature of the chart style. The LizardBrick style replicates the logic of
classical renko bars. For continuation bars, the current bar open is placed at
or near the close of the prior bar. Conversely, for reversal bars the current
bar open is placed at or near the open of the prior bar. The underlying bar
open, shown in the data box, is not affected by the embellishment.
Switching the LizardBrick mode from “Wicks” to “BarOpen” will further add
a little horizontal mark, displaying the genuine opening price.
12
The chart style UniBrick is designed in such a way that all bars display an
identical brick size. This is achieved by selecting an appropriate fake open
price. Again, the underlying bar open shown in the data box is not affected
by redesigning the bar.
After downloading the install file for the LT_Renko_Bars, please open the
NinjaTrader 8 Control Center and select Tools -> Import -> NinjaScript
Addon. Then select the install file and import. Once installed, please restart
NinjaTrader so that the chart styles can load. The LizardRenko bars and the
new chart styles are then ready for use.
13
In case that you update the LT_Renko_Bars to a new version, please first
uninstall the prior version of the LT_Renko_Bars via Tools -> Remove Ninja
Script Assembly. Please then import the new install file as explained above.
Once installed, please restart NinjaTrader so that the updated chart styles
can load.
Please open a new chart with the DataSeries Type “LizardRenko”. There are
two parameters that can be selected
- tick trend = number of ticks required to complete a new continuation
bar (bar close in the same direction compared to the prior bar)
14
Typically a larger value is used for the tick reversal than for the tick trend.
The default chart style for a new LizardRenko chart is the chart style
“LizardBrick” with submode “Wicks”. If you change the chart style to a
different submode, to “UniBrick” or to “Candlestick”, you may do so by
accessing the chart style button directly via the chart tool bar.
When setting the chart style via the chart tool bar, the bars are not reloaded
and indicator values are not recalculated.
The chart style “Candlestick” will always display candles with the genuine
bar open, bar high, bar low and bar close – as displayed in the data box of
the chart. The two renko bar styles will display bars with a modified bar
15
open. However, the modified bar open is only used for displaying the
candles, whereas indicators and backtests will always use the real prices.
The Renko_Tools can be used to display the two alternative target levels for
the next renko bar. The current renko bar will close, when one of the two
target levels is reached. The indicator also comes with sounds alerts which
may be triggered at the completion of the current renko bar.
Furthermore the Renko Tools come with paint bars, which allow for
detecting market conditions when one or more levels of the order book
were skipped. This information can be used to avoid entering positions
when market liquidity has dropped.
The screenshot below shows the target levels for a T-Renko chart.
16
There are a few things that make working with LizardRenko bars easier.
When you open a new chart, NinjaTrader will apply the default chart
template. In the event you use a template for loading different bar types, it
is most likely set to the “Candlestick” chart style.
The chartstyles LizardBrick and UniBrick can be used with the LizardRenko,
D-Renko, T-Renko and Q-Renko bars to obtain the specific design. However,
you may also use them with all other bar types. They will then emulate the
“Candlestick” chart style. Accordingly, you may use LizardBrick or UniBrick
for your default chart template.
You may configure the dropdown menu for bar types to include D-Renko,
T-Renko and Q-Renko bars. You may also preset the bar periods as needed.
17
Median Renko and Mean Renko charts have a 1:3 fixed ratio with a reversal
offset 3 times larger than the trend offset. The same applies to T-Renko
bars. When applying the UniBrick chart style to T-Renko bars, the fake open
is located in the middle of the prior bar resulting in a backtestable Median
or Mean Renko bar.
If you wish to emulate other types of renko bars, please get in touch with us
and we will make a suggestion for how to adapt the trend / reversal offsets
and chart style to match your needs.
The LizardRenko bars do not fill the spaces between the bid and ask with
zero volume fake bars. All bars are built from real transactions and real
price action. This is very different from what you would see on a traditional
renko chart. Below is a traditional renko chart with the same resolution,
displaying the same instrument at the same time. Following the rules for
building classic renko bars, all gaps are filled with fake bars.
Numerous fake bars were inserted to create this chart and show an
idealized image of the market. However, the chart is useless for entering or
exiting trades. Out of the 160 price bars, 132 bars are zero volume fake bars
and were inserted to bridge the spread. Visually appealing renko charts that
hide real price action are not helpful for trading. Only genuine prices will let
you know what is going on in the markets.
LizardRenko bars display the genuine spreads and will not fill them with
zero volume fake bars.
21
Intraday Gaps
Traditional renko bars also fill intraday gaps with fake bars. These fake bars
are then used to calculate fake indicator values or fake entry prices for
backtesting. The LizardRenko bars will leave the gap visible on the chart:
This is the same indicator applying Globex pivots with in-built renko bars
on a 20-tick brick size:
You may note that the first resistance level R1 is 18 ticks off, whereas the
second resistance level R2 is 35 ticks off. This is because the in-built renko
bars feed false high and low values into the indicator. Therefore you should
not rely on S/R indicators when using in-built renko bars.
The LizardRenko bars supply real OHL values and thus all indicator values
are correctly calculated. Below is a sample chart for a zigzag indicator
applied to LizardRenko bars:
Although the wicks are not shown, swing highs and swing lows are
correctly displayed.
If the “Break at EOD” property is activated in the Data Series settings, the
renko bars will reset at the beginning of the daily session. For the first bar
of the session there will be no carry over from the prior session. The
projected high and low are not dependent on the prior close. The projected
high is obtained by adding the continuation range to the open price of the
new session, whereas the projected low is obtained by subtracting the
27
continuation range from the open price. The first bar of the session is the
only bar, where the projected high and low are at an equal distance from
the reference value, seeing that the direction of the prior bar is not taken
into account.
Projected high and low values are always displayed for the last bar on the
chart. When the Renko Tools are set to Calculate.OnBarClose, the values are
calculated from the current close of the second, but last bar on the chart.
This approach is feasible as long as the prior close is used as a reference
value for the next bar’s projections. The only exception is the first bar of the
daily session. Hence, no projection high or low will be displayed for the
first bar of the daily session, when the indicator is set to
Calculate.OnBarClose. Therefore, it is recommended to use the Renko Tools
with setting Calculate.OnEachTick or Calculate.OnPriceChange.
At the bar open, the current renko trend is determined by the direction of
the prior bar. The renko trend does not change until the current bar is
complete. If the current bar is a continuation bar, or in the event that the
current bar remains incomplete (last bar of session), the trend remains
intact. Otherwise the trend will reverse with the last tick of the reversal bar.
In the chart above, the reversal bar down has not yet completed and the
renko bars are still in an uptrend, whereas the bar direction of the last bar
is down.
The Renko Tools come with the following public properties for accessing
bar types and reversal signals:
- IsBullishContinuationBar: +1 for bullish continuation, 0 otherwise
- IsBearishContinuationBar: +1 for bearish continuation, 0 otherwise
- IsBullishReversalBar: +1 for bullish reversal, 0 otherwise
- IsBearishReversalBar: +1 for bearish reversal, 0 otherwise
- BullishSignal: +1 for a bullish reversal signal, 0 otherwise
- BearishSignal: +1 for a bearish reversal signal, 0 otherwise
Bullish and bearish signals coincide with bullish and bearish reversal bars
in most cases. Again, an exception can be observed at the beginning of a
new trading session. If the first reversal signal is triggered by a continuation
bar, the first reversal bar may not trigger a reversal signal. In line with the
bar types, bullish and bearish signals are available with the last tick of each
bar, as soon as one of the projection levels has been reached.
Market Depth
The Renko Tools also allow for identifying increasing bid-ask spread
scenarios, or visualizing situations where one or several order book levels
are skipped. This may occur when certain order book levels are empty, or
when a large incoming market order sweeps one or several levels.
- when there is a gap of more than 1 tick between the close of a renko
bar and the opening price of the next renko bar
- when a renko bar closes above the projected high or below the
projected low (i.e. when no transaction occurred at the target levels)
Finally, the Renko Tools also come with a public property MarketDepth,
accessible via an indicator or strategy.
- MarketDepth: +1 one for a liquid market, 0 when the renko bars are
gapping up or down, or when one or several levels of the order book
have been skipped
The indicator can thereby detect abnormal market conditions. This
information in turn can be used for temporarily invalidating trade setups,
entry and exit signals, until the market returns to a normalcy.
The below example shows a situation where the Renko Tools detect an
exaggerated algorithmic pattern with increased bid-ask spreads.
33
- Latency of the data feed: Trade data is collected by the exchange and
passed on to the data provider who sends it to its subscribers (retail
traders). The data is then processed by the CPU and displayed on the
trader PC. Once on the monitor, the trade data typically has a delay of
between 50 and 150 milliseconds.
34
Aggregate latency is then the sum of the data feed latency and the latency of
order execution. If the market moves faster than the aggregate latency,
order execution may be delayed by a few bars and cause increased
slippage.
To deal with increased slippage during fast markets, the Renko Tools come
with a feature that allows for specifying an aggregate latency threshold.
Latency then compared to the difference between two consecutive renko
bar time stamps. Should the difference be less than the latency, a fast
market threshold is reached as displayed via paint bars or background
shading. The chart below show ‘normal’ market conditions that occurred
over several hours, then followed by a 100 seconds fast market period.
35
Backtesting
LizardRenko, D-Renko, T-Renko and Q-Renko bars are fully backtestable,
because
- all data used for backtesting is based on real transactions
- indicators do not calculate values from zero volume bars, but only rely
on real trade data as input series
- simulated fills for market orders only use genuine open prices
LizardRenko bars also show genuine highs and lows, as opposed to the
fictitious highs and lows found in the NinjaTrader in-built renko bars.
Multi-Bar-Series Scripts
The LizardRenko, D-Renko, T-Renko and Q-Renko bars are fully
synchronizable, because they do not use ‘RemoveLastBarSupported’ as the
in-built renko bars, and because the time stamp of the bar is the time stamp
of the last transaction covered by the bar. This is not true for most of the
other renko bar types available for NinjaTrader.
The LizardRenko, D-Renko, T-Renko and Q-Renko bars may therefore be
used in multi-bar-series and multi-timeframe scripts without any
restrictions.