Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Wrong Indicator Values

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

    Wrong Indicator Values

    Print(Time[0].ToString() + " Close[0]: " + Close[0]);
    Print(Time[0].ToString() + " EMA1[0]: " + EMA1[0]);
    Print(Time[0].ToString() + " SMA1[0]: " + SMA1[0]);

    I'm printing the values of the indicator to confirm for my strategy. The SMA is 200 MA and the value is always wrong. What can I look at to fix it?

    Thanks!

    #2
    Hello mrmistermike2016,

    Thank you for your note.

    Would you be able to provide more detail of what you mean, always wrong? What are you checking the value against?

    If you’d like to provide a full copy of the code along with a screen shot highlighting incorrect prints vs what you are comparing it to, I can test on our end,

    To export a NinjaScript from NinjaTrader 8 do the following:
    From the Control Center window select Tools -> Export -> NinjaScript...
    Click Add>Select the indicator>OK>Export.

    Then attach that file you saved; under My Docs>NT8>Bin>Custom>Select the downloaded .zip file.

    I look forward to your reply.
    Alan P.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bmartz, 03-12-2024, 06:12 AM
    5 responses
    32 views
    0 likes
    Last Post NinjaTrader_Zachary  
    Started by Aviram Y, Today, 05:29 AM
    4 responses
    12 views
    0 likes
    Last Post Aviram Y  
    Started by algospoke, 04-17-2024, 06:40 PM
    3 responses
    28 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by gentlebenthebear, Today, 01:30 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by cls71, Today, 04:45 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X