• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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:
    for(int i = 0; i < 4; i++)
    {
      Print("DelPlaced[" + i + "] = " + DelPlaced[i]);
      Print("DeltaPlaced[" + i + "] = " + DeltaPlaced[i]);
    }
    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 quinton77, Yesterday, 09:59 PM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_EricB  
    Started by akuntysh, Today, 12:02 AM
    0 responses
    2 views
    0 likes
    Last Post akuntysh  
    Started by Revan, Yesterday, 11:53 PM
    0 responses
    3 views
    0 likes
    Last Post Revan
    by Revan
     
    Started by allangl, Yesterday, 10:50 PM
    0 responses
    7 views
    0 likes
    Last Post allangl
    by allangl
     
    Started by jeffm, Yesterday, 10:47 PM
    0 responses
    4 views
    0 likes
    Last Post jeffm
    by jeffm
     
    Working...
    X