This is my implementation of a Universal Renko bar type. It allows the user to choose when the bar closes in the direction of the previous bar (Trend), and when it closes in the direction against the previous bar (Reversal).
This allows you to tailor the bar to behave specifically how you want it in ways that hopefully may enhance your particular trading style. As an example, if I am a reversal trader, entering on reversal bars, and putting my stop behind the entry bar, I can choose trend and reversal settings that minimize the size of reversal bars, and therefore optimize my stop sizes, etc.
Parameters are:
'Tick Trend' - Number of ticks to close the bar in the Trend direction
'Tick Reversal' - Number of ticks to close the bar in the Reversal direction
'Open Offset' - Number of ticks offset to draw the artificial open
Like most Renko bars, the bar open is artificial, and is placed by default halfway up the previous bar. The open is aesthetic only, it is not used in the bar size calculation. The tails on the bar show real prices. The artificial Open may affect your backtesting depending on the coding of your strategy. Internally uses NT PeriodType.Custom5
V2:
To support Muti TimeFrame indicators/strategies using the Add() method, added an alternative way to specify all bar specs in the 'Tick Trend' parameter. You can now alternatively specify each parameter as 3 digits in the Data Series window 'Tick Trend' parameter or Add() method 'Period' parameter. For example to specify TickTrend=4 , TickReversal=8, OpenOffset=2 or (T4R8O2) then specify: 'Tick Trend'=004008002 in Data Series window, or Add(PeriodType.custom5, 004008002);' in your MTF code. The normal way of specifying the parameters will continue to work as well.
IMPORTANT UPDATE JULY 11 2013, "VERSION 3" -- FROM BIG MIKE:
July 11 2013: Please note, user "dstrader" has uploaded a crucial bug fix for this bartype. You can find the download link here: https://nexusfi.com/download/ninjatrader-7/indicators/1430-download.html?view
Note you must use that link to download V3.
You can find the discussion thread here: https://nexusfi.com/ninjatrader/24408-unirenko-universal-renko-bar-type-20.html
Category NinjaTrader 7 Indicators
|
|
|