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 soyjesus, Today, 05:27 AM
    0 responses
    2 views
    0 likes
    Last Post soyjesus  
    Started by JarodB, Today, 04:44 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by mahmud999, Today, 04:54 AM
    1 response
    9 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by leonardo3381, Today, 01:58 AM
    3 responses
    21 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by Mindset, Today, 02:16 AM
    0 responses
    9 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X