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 space_trader, Today, 12:52 AM
    0 responses
    5 views
    0 likes
    Last Post space_trader  
    Started by soon123, Today, 12:18 AM
    0 responses
    5 views
    0 likes
    Last Post soon123
    by soon123
     
    Started by AxelrodWins, Yesterday, 07:07 PM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_Marco  
    Started by StockJock, Yesterday, 11:05 PM
    0 responses
    13 views
    0 likes
    Last Post StockJock  
    Started by jc.am, Yesterday, 07:59 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_EricB  
    Working...
    X