• 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 tonynt, Today, 02:48 AM
    0 responses
    5 views
    0 likes
    Last Post tonynt
    by tonynt
     
    Started by cls71, Today, 02:11 AM
    1 response
    9 views
    0 likes
    Last Post bkool
    by bkool
     
    Started by RB104, Today, 01:52 AM
    0 responses
    4 views
    0 likes
    Last Post RB104
    by RB104
     
    Started by reks13, Today, 01:52 AM
    0 responses
    5 views
    0 likes
    Last Post reks13
    by reks13
     
    Started by raffu, Today, 01:35 AM
    1 response
    12 views
    0 likes
    Last Post raffu
    by raffu
     
    Working...
    X