SiBacktestLineBreak is the first back testable Line Break bar for NinjaTrader. This unique charting style was invented in Japan, and introduced by NinjaTrader in version 7. The Line Break chart is one of the most effective ways to reduce chart noise.
In this image »
The traditional Three Line Break chart (shown below) generates a clean looking chart that is quite similar to a Renko chart. It generates an unpolluted visual aid, which is easy on the eyes and simple to follow. Unfortunately, the traditional Line Break chart gives incorrect back-test results, due to the modification of Open prices and the removal of bar wicks.
Using the BacktestLineBreak in NinjaScript
This example illustrates how to add a BacktestRenko Bars to your NinjaScript. It will add a BacktestRenko B:5 T:2 R:10 Backtest Mode:On bar.
- Value is the ‘Line Breaks’ parameter.
- BaseBarsPeriodType is the ‘Base period type’ parameter (e.g. Minte, Tick, Volume).
- BaseBarsPeriodValue is the ‘Base period value’ parameter (Period of the underlying chart type).
This example indicator can be found in the SharkIndicators folder > Examples > SiBTLineBreakSMAExample. It demonstrates how to add the BTLineBreak as a secondary data series to your NinjaScript.
Download the import file below and import it into NinjaTrader using Tools » Import » NinjaScript Add-On.
Download import file for NT 8 (.zip)