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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    35 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    12 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    18 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    20 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X