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 russelpope, Today, 01:53 AM
    0 responses
    3 views
    0 likes
    Last Post russelpope  
    Started by avidordelon, Today, 01:42 AM
    0 responses
    4 views
    0 likes
    Last Post avidordelon  
    Started by kevenconster, Yesterday, 11:58 PM
    0 responses
    12 views
    0 likes
    Last Post kevenconster  
    Started by kttoprsht, Yesterday, 10:52 PM
    0 responses
    8 views
    0 likes
    Last Post kttoprsht  
    Started by kttoprsht, Yesterday, 10:51 PM
    0 responses
    6 views
    0 likes
    Last Post kttoprsht  
    Working...
    X