• 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 walter739, Today, 11:56 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by kevinfloresz, Today, 09:46 AM
    2 responses
    19 views
    0 likes
    Last Post kevinfloresz  
    Started by digibob, 12-13-2019, 10:01 PM
    5 responses
    17 views
    0 likes
    Last Post bltdavid  
    Started by TraderJim618, Today, 11:24 AM
    0 responses
    4 views
    0 likes
    Last Post TraderJim618  
    Started by NT-Roland, Today, 10:03 AM
    1 response
    8 views
    0 likes
    Last Post Lancer
    by Lancer
     
    Working...
    X