• 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

Need help

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

    Need help

    Hi,

    Can anyone please tell me if a bool series is initialized to a null value when first created? What I specifically mean is that I would like to set the value of a bool series under specific conditions to true but not set it otherwise. If I do this, will I then be able to use statements like if(highBoolSeries) {...} or do I also need to set the series to false when the condition is not met? Thank you.

    #2
    Hello yoona,

    In C# bools are not null-able types. By default a bool will be false.

    You would need to code your logic in a way to use bools in this manner.

    Below is a public link to the Microsoft Documentation on bool.
    https://docs.microsoft.com/en-us/dot.../keywords/bool
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by digibob, Today, 02:47 AM
    2 responses
    13 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by mntemel, Today, 03:31 PM
    3 responses
    12 views
    0 likes
    Last Post NinjaTrader_JoshG  
    Started by mrlucky1x, Today, 03:14 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by ninjo, Today, 02:42 PM
    3 responses
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by Longhornmark, Today, 01:13 PM
    7 responses
    21 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X