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 charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    71 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    152 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    162 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    100 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    288 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Working...
    X