• 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

SampleBoolSeries and Update()

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

    SampleBoolSeries and Update()

    Hi there,

    In the SampleBoolSeries example I see the double ExposedVariable uses the Update() method where the bool BullIndication does not. (Snippet below)

    Does double and int always require the Update() method?

    I am using a StringSeries and am wondering if I need to use it.

    Thanks.

    ----

    [Browsable(false)]
    [XmlIgnore()]
    public BoolSeries BullIndication
    {
    get { return bullIndication; } // Allows our public BullIndication BoolSeries to access and expose our interal bullIndication BoolSeries
    }

    [Browsable(false)]
    [XmlIgnore()]
    public double ExposedVariable
    {
    // We need to call the Update() method to ensure our exposed variable is in up-to-date.
    get { Update(); return exposedVariable; }
    }

    #2
    ij001, the variables would need it yes - your series would be automatically in-sync and would not need the 'forced' update in the getter.
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bchip, Today, 09:25 AM
    0 responses
    5 views
    0 likes
    Last Post bchip
    by bchip
     
    Started by Tomass, Today, 09:25 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by hundert, Today, 08:37 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_Melissa  
    Started by ronaldgreene828, Today, 08:16 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by hir04068, Today, 01:36 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Working...
    X