NinjaScript > Language Reference > Data >
Similar to the Add() method for adding Bars objects to an indicator or strategy, this method adds a Line Break Bars object for multi-series NinjaScript. When running NinjaScript, you will be able to choose the primary instrument and bar interval to run on. This primary Bars object will carry a BarsInProgress index of 0. In a multi-time frame and multi-instrument NinjaScript, supplementary Bars objects are added via this method in the Initialize() method and given an incremented BarsInProgress index value. See additional information on running multi-bars scripts.
AddLineBreak(string instrumentName, PeriodType basePeriodType, int basePeriodTypeValue, int lineBreakCount, MarketDataType marketDataType)
NOTE: You can optionally add the exchange name as a suffix to the symbol name. This is only advised if the instrument has multiple possible exchanges that it can trade on and it is configured within the Instrument Manager. For example: AddLineBreak("MSFT Arca", PeriodType.Minute, 1, 3, MarketDataType.Last).