Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Do I need to sync a BoolSeries variable?

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

    Do I need to sync a BoolSeries variable?

    Hi!

    I use BoolSeries variables on a seccondary timeframe (BarsInProgress = 2) in my multiple timeframe/multiple instrument strategy. Do I have to sync BoolSeries variables the same way one has to sync DataSeries variables? If so, how can I do the sync?

    /Regards

    #2
    poseidon_sthlm, you would not need the sync process since you're accessing the boolseries in the same script.

    Comment


      #3
      Thanks for the prompt reply. I actually use the same BoolSeries variable in the primary time frame as well as in the seccondary time frame. Sorry if my previous post was unclear on this point. I'v already done a sync in the Initalize method.
      Code:
       myBoolSeries         = new BoolSeries(this);
      1 a) Do I have to sync the BoolSeries varaible in the seccondary time fram too?
      1 b) If so, how do I sync a BoolSeries varaible in the seccondary time?

      2) Is it correctly understod that sync is needed when you want to use the same DataSeries variables in different timeframes?

      3) If not, when do you need to sync a DataSeries?

      4) And if I only use the DataSeries variable in the same seccondary timeframe, should I keep from the sync in the Initialize method?

      /Regards
      Last edited by poseidon_sthlm; 03-11-2010, 09:49 AM.

      Comment


        #4
        Thanks for clarifying, correct this syncs this series to the primary bars in your strategy.

        You can sync the second series to the secondary, added series via this reference sample instructions -

        Note: In NinjaTrader 8 It is no longer needed to use an indicator to sync a secondary series. This can be done directly from the Series<T> (https://ninjatrader.com/support/helpGuides/nt8/NT%20HelpGuide%20English.html?seriest.htm) constructor. This post is left for historical purposes. Series objects are useful for


        Basically you can use any indicator offering an IDataSeries input field so you can sync to the added BarsArray[x] in the OnBarUpdate().

        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