• 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 StevenNelson, Today, 05:39 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by tff2011, Today, 01:15 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by Tradix10, 11-14-2018, 09:34 PM
    25 responses
    668 views
    1 like
    Last Post aprendiz  
    Started by GLFX005, Today, 05:05 AM
    0 responses
    6 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Started by ArmKnuckle, Today, 01:25 AM
    0 responses
    18 views
    0 likes
    Last Post ArmKnuckle  
    Working...
    X