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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    56 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    75 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    39 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    101 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    60 views
    0 likes
    Last Post PaulMohn  
    Working...
    X