Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Assigning values to a Dataseries variable

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

    Assigning values to a Dataseries variable

    Hi Ninjas,

    Basic doubt here. Among these two ways to assigning values to a dataserie variable are:

    1. Mydata.Set(int barsAgo, double value)
    2. Mydata[int barsAgo]= double value

    Both of them are correct and perform similarly ? I always look for efficient and more reliable ways to do things

    I've tried them out with different results but by little. I can't see number 2 in the NT help guide, is it wrong?



    Thanks
    Last edited by pstrusi; 04-17-2015, 12:08 PM.

    #2
    Hello,

    Thank you for the question.

    The .Set method would be the best option as this uses the internal error handling where the other way around does not.

    Both will work but .Set is the supported way in the help documentation.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    561 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    325 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    547 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X