Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Dynamic Period selection in MultiTimeFrame

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

    Dynamic Period selection in MultiTimeFrame

    Hi NinjaTrader Support Team,

    I'm working on a Project that includes a Strategy that needs to check a bunch of Time Periods (up to 26 and mainly different Day and Minute Periods) on a single Instrument. We need to collect different kind of Data in this Periods but all coming from the same indicators and on the same Instrument.

    I know about the possibility to add more Timeperiods in NinjaScript via Add(PeriodType.x, y). But normaly you would add all these Periods in the Initialize() Part of the Script.

    Now my Question(s):
    1. Is there any possibility that I can Add and Delete TimePeriods dynamically?
    2. If yes, how would this be possible.
    3. If no. Is there any limitation of how many timeperiods can be loaded into a single chart via Script?
    4. Can i call Add(PeriodType.x, y) also outside of Initialize()
    5. Alternatively would it be possible to create and kill charts programmatically via NinjaScript.

    Thanks in advance.

    #2
    Hello NeoAkira,
    Originally posted by NeoAkira View Post
    Hi NinjaTrader Support Team,

    I'm working on a Project that includes a Strategy that needs to check a bunch of Time Periods (up to 26 and mainly different Day and Minute Periods) on a single Instrument. We need to collect different kind of Data in this Periods but all coming from the same indicators and on the same Instrument.

    I know about the possibility to add more Timeperiods in NinjaScript via Add(PeriodType.x, y). But normaly you would add all these Periods in the Initialize() Part of the Script.

    Now my Question(s):
    1. Is there any possibility that I can Add and Delete TimePeriods dynamically?
    2. If yes, how would this be possible.
    3. If no. Is there any limitation of how many timeperiods can be loaded into a single chart via Script?
    4. Can i call Add(PeriodType.x, y) also outside of Initialize()
    5. Alternatively would it be possible to create and kill charts programmatically via NinjaScript.

    Thanks in advance.
    It is not possible to add data series on the fly or outside of the initialize method.

    That I know of, there is no limit to how many data series you can add to a NinjaScript with the Add() command.

    I am also not aware of a way to create or close a chart via code. This may be possible but would be unsupported by NinjaTrader. You may have more luck asking in the unsupported thread to which I am adding a link below.
    http://ninjatrader.com/support/forum...ad.php?t=22435
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X