• 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 frantic, Today, 06:37 AM
    0 responses
    2 views
    0 likes
    Last Post frantic
    by frantic
     
    Started by sergey_z, Today, 05:44 AM
    0 responses
    6 views
    0 likes
    Last Post sergey_z  
    Started by NinjaCustomer, Today, 12:29 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Started by ronaldgreene828, Yesterday, 07:50 PM
    1 response
    15 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by nailz420, 07-17-2019, 08:38 AM
    3 responses
    15 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Working...
    X