• 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

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 D Trader, Yesterday, 09:43 AM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by cassiano_sanches, 07-10-2020, 07:37 PM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by terminatorT1000, 07-10-2020, 06:40 PM
    2 responses
    31 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Giudiver, 07-10-2020, 04:29 PM
    2 responses
    17 views
    0 likes
    Last Post Giudiver  
    Started by rtwave, Today, 04:11 PM
    0 responses
    4 views
    0 likes
    Last Post rtwave
    by rtwave
     
    Working...
    X