Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

In Initialize, how to know the master data's Period Type?

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

    In Initialize, how to know the master data's Period Type?

    Hi,

    I want to load additional data according to the master data's period type. Say, the master data is SPY daily, so I want to load VIX daily too. If master day is SPY 60 min, I want to load VIX 60 min too. So idealy, in Initialize() function, I can call:

    Add( additionalSymbol, this.BarsPeriod.Id, this.BarsPeriod.Value ) ;

    But unfortunately, according to your help file, the BarsPeriod property cannot be access in Initialize function. And I did try to call it and indeed it failed to work.

    So in order to load additional data I have to add 2 other parameters to ask for period type (day or minute data) and period value (1 day or 2 days, 1 min or 60 min).

    My question is: Is there any easy way I can know the master data's period type in Initialize function?

    Thanks.

    #2
    Hi CobrasMarketView, dynamic adding would unfortunately not be supported by us as you could run into race condition in loading as you noted correctly. We would therefore suggest setting the fields per user inputs.

    That being said, I've added your vote to an enhancement request we run on this item in our product management tracking lists.

    Comment


      #3
      I hope you can add this feature, this is simple and very useful.
      It is a nightmare to switch instrument period and indicator inputs manualy every time...

      Is defining period as user parameter the only workaround?

      Comment


        #4
        Welcome to the forums Ivan and yes your understand is correct.

        I'm adding a vote on your behalf into this item as well for consideration.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        157 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        91 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        143 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        131 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X