Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Market Analyser: different tick bars

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Market Analyser: different tick bars

    Hi NT,

    Is it possible to have a list of instruments in Market Analyser of different tick size?

    For instance, id like:

    CL (2000 tick bar)
    YM (400 tick bar)

    The rows are instruments when different tick bars, and therefore the coloums return values relevant to that bars tick size.

    If I had a coloum where I pulled in the ATR(14), the values returned would be:

    The ATR(14) of CL (2000 ticks)
    The ATR(14) of YM (400 ticks)

    Thanks
    AK

    #2
    Hello AK,

    This is not a feature of the Market Analyzer.

    The indicator added would use the same parameters for any instruments in the Market Analyzer.

    It may be possible to use unsupported methods and dynamically add a secondary series to the script using a switch based on the instrument name.

    if (State == State.Configure)
    {
    if (Instrument.FullName == "AAPL")
    {
    AddDataSeries(BarsPeriodType.Minute, 60);
    }
    else if (Instrument.FullName == "MSFT")
    {
    AddDataSeries(BarsPeriodType.Tick, 100);
    }
    }

    There is a warning in the help guide advising against this, but this is mostly as this breaks the Strategy Analyzer when optimizing.
    "Arguments supplied to AddDataSeries() should be hardcoded and NOT dependent on run-time variables which cannot be reliably obtained during State.Configure (e.g., Instrument, Bars, or user input). Attempting to add a data series dynamically is NOT guaranteed and therefore should be avoided. Trying to load bars dynamically may result into an error similar to: Unable to load bars series. Your NinjaScript may be trying to use an additional data series dynamically in an unsupported manner."

    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    94 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    49 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    31 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    34 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    70 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X