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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    80 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X