Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

StringSeries

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

    StringSeries

    Hi,

    Does a StringSeries need to have a variable for every bar update or can data be added to the dataseries only when a condition is true?

    Regards

    Kay Wai

    #2
    Kay, for DataSeries all values for each barupdate index should be set, as otherwise you could run into exceptions accessing them - you can just set a dummmy value and then filter for this when working with the series later.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Hi Bertrand,

      Understood. But it is an option that is available, right?

      Comment


        #4
        For example, if you look at the attached chart, if i put a condition to it and at the end of set A, i update the StringSeries, and at the end of set B, i update the StringSeries etc....i should be able to call set D (if we assume A, B, C and D is already included in the StringSeries) and call it as StringSeries[1]?
        Attached Files

        Comment


          #5
          Correct, but for the intermediate values you should still set a data series value even if it's a dummy.
          BertrandNinjaTrader Customer Service

          Comment


            #6
            thank you for your advice bertrand. i will experiment with it for now.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by algospoke, 04-17-2024, 06:40 PM
            6 responses
            48 views
            0 likes
            Last Post algospoke  
            Started by arvidvanstaey, Today, 02:19 PM
            4 responses
            11 views
            0 likes
            Last Post arvidvanstaey  
            Started by samish18, 04-17-2024, 08:57 AM
            16 responses
            61 views
            0 likes
            Last Post samish18  
            Started by jordanq2, Today, 03:10 PM
            2 responses
            9 views
            0 likes
            Last Post jordanq2  
            Started by traderqz, Today, 12:06 AM
            10 responses
            20 views
            0 likes
            Last Post traderqz  
            Working...
            X