Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

BoolSeries Parameters

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

    BoolSeries Parameters

    Is this the proper way to set up boolseries parameters?

    Code:
     [Browsable(false), XmlIgnore]
      public BoolSeries TrendSeries
      {
       get { return trendSeries;}
     
      }

    #2
    Hi Westsider,

    Thank you for the post.

    It looks like you are trying to create a User Defined Input Parameter out of the BoolSeries.

    What are you trying to do with the code?

    Are you trying to expose a true or false, or define variable for true or false?
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Hello - I want to create a boolean data series so that I can look back at true / false conditions N bars ago.

      Comment


        #4
        The correct syntax would be something similar to:
        myBoolSeries.Set(Close[0] > Open[0] ? true : false);

        More details are available here:

        Comment


          #5
          Stockfundoo is correct. This would be the correct syntax for what you are looking to do.
          Cal H.NinjaTrader Customer Service

          Comment


            #6
            OK great, thanks very much. So as far as setting parameters was I correct there? Is this not needed since its not a selectable input?

            Code:
             [Browsable(false), XmlIgnore]
              public BoolSeries TrendSeries
              {
               get { return trendSeries;}
              }
            Last edited by westsider; 11-06-2013, 04:03 PM.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            579 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            334 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            554 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            551 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X