Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Setting one specific value from VALUES Array to "null" or empty

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

    Setting one specific value from VALUES Array to "null" or empty

    Hello

    Related to the code i am developing in this question, https://ninjatrader.com/support/foru...es#post1115704, I have a little question related to Values array.

    If I set a value, for example the current price, at Value[0] for my indicator but later in my code I want to unset the value to "null" or empty ( the previous state) Is there a way to do it ? I don't want to set to 0 because then the indicator scales and my charts shows values from 0 to 13000 at price ( current DAX price) . I have try to find a method or similar that allows to clear a value from the current VALUES position but I disn't find it.

    Any idea ?

    Thanks

    Helios

    #2
    Well, I have found the answer. Value.Reset() or Values[0].Reset(); for reseting the current bar.

    Comment

    Latest Posts

    Collapse

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