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

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 fx.practic, 10-15-2013, 12:53 AM
            5 responses
            5,403 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Started by Shai Samuel, 07-02-2022, 02:46 PM
            4 responses
            94 views
            0 likes
            Last Post Bidder
            by Bidder
             
            Started by DJ888, Yesterday, 10:57 PM
            0 responses
            6 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by MacDad, 02-25-2024, 11:48 PM
            7 responses
            158 views
            0 likes
            Last Post loganjarosz123  
            Started by Belfortbucks, Yesterday, 09:29 PM
            0 responses
            8 views
            0 likes
            Last Post Belfortbucks  
            Working...
            X