• 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 ben_ocean11, Today, 08:10 PM
    0 responses
    4 views
    0 likes
    Last Post ben_ocean11  
    Started by JPPoulin, Today, 07:11 PM
    0 responses
    6 views
    0 likes
    Last Post JPPoulin  
    Started by szayedoud, Today, 05:05 PM
    0 responses
    13 views
    0 likes
    Last Post szayedoud  
    Started by franco12364, Today, 04:22 PM
    0 responses
    4 views
    0 likes
    Last Post franco12364  
    Started by rouillard, Today, 03:34 PM
    4 responses
    40 views
    0 likes
    Last Post rouillard  
    Working...
    X