Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

historical vs. not historical

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

    historical vs. not historical

    I have two similar indicators. I want both to be historical but only one is. I think I've narrowed it down to this:

    This is historical:

    (DelPlaced[0] >= DelPlaced[1] && DelPlaced[1] < DelPlaced[2] && DelPlaced[2] < DelPlaced[3])
    This is NOT historical (does not stay on my chart after refresh):

    (DeltaPlaced[0] > 0 && DeltaPlaced[1] > 0 && DeltaPlaced[2] < 0 && DeltaPlaced[3] < 0)
    The pos and neg numbers are important, but it doesn't work when equate to zero.

    Does anyone know how to fix this?

    Thank you.

    #2
    Hello imalil, and thank you for your question.

    I believe, without being able to see the content of your indicators or your own NinjaScript, that DelPlaced works with historical data, while DeltaPlaced does not. You can verify for yourself with this code. You will want to open a Tools -> Output Window (or New -> NinjaScript Output in NT8) to view the output of this code.

    Code:
    [FONT=Courier New]for(int i = 0; i < 4; i++)
    {
      Print("DelPlaced[" + i + "] = " + DelPlaced[i]);
      Print("DeltaPlaced[" + i + "] = " + DeltaPlaced[i]);
    }[/FONT]
    Please let us know if there is any other way we can help.
    Jessica P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    579 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    334 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    554 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    551 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X