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 CaptainJack, 05-29-2026, 05:09 AM
            0 responses
            220 views
            0 likes
            Last Post CaptainJack  
            Started by CaptainJack, 05-29-2026, 12:02 AM
            0 responses
            135 views
            0 likes
            Last Post CaptainJack  
            Started by charlesugo_1, 05-26-2026, 05:03 PM
            0 responses
            150 views
            0 likes
            Last Post charlesugo_1  
            Started by DannyP96, 05-18-2026, 02:38 PM
            1 response
            235 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by CarlTrading, 05-11-2026, 05:56 AM
            0 responses
            193 views
            0 likes
            Last Post CarlTrading  
            Working...
            X