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 habeebft, Today, 07:27 AM
    0 responses
    1 view
    0 likes
    Last Post habeebft  
    Started by Tim-c, Today, 03:54 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by rocketman7, Today, 01:00 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by wzgy0920, 04-23-2024, 09:53 PM
    3 responses
    76 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by JonesJoker, 04-22-2024, 12:23 PM
    9 responses
    46 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X