• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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:
        http://www.ninjatrader.com/support/h...ries_class.htm

        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 vivekniwas, Today, 04:56 PM
            0 responses
            2 views
            0 likes
            Last Post vivekniwas  
            Started by dtl-saw, Today, 03:36 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Started by williamzz, Today, 02:04 PM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Started by jtrading82, Today, 01:55 PM
            3 responses
            26 views
            0 likes
            Last Post NinjaTrader_Tyler  
            Started by StevenNelson, Today, 01:00 PM
            4 responses
            19 views
            0 likes
            Last Post StevenNelson  
            Working...
            X