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 kinfxhk, 07-14-2026, 09:39 AM
    0 responses
    127 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    85 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    105 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    86 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X