Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unrealized gain keeps changing while positions closed

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

    Unrealized gain keeps changing while positions closed

    Can you please tell me what could be causing the unrealized gain to keep changing in one of my strategies even after the positions are closed? It happens over and over again with two of my strategies. And no, I will not send you the code.
    thx

    #2
    Hi nightriderx,

    Help for debugging your code is available at the following link:

    Debugging your NinjaScript code.

    You don't have to share the complete code, but if you can isolate it to the specific items that are contributing here, we can give you a more relevant answer.

    Screenshots of what you're looking at may also be helpful:
    To send a screenshot press Alt + PRINT SCREEN to take a screen shot of the selected window. Then go to Start--> Accessories--> Paint, and press CRTL + V to paste the image. Lastly, save as a jpeg file and send the file as an attachment.
    Last edited by NinjaTrader_RyanM1; 08-20-2010, 02:19 PM.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      thanks but the link you sent is not working...can you please resend

      Comment


        #4
        Sure, thanks for letting us know. It's been corrected.
        Ryan M.NinjaTrader Customer Service

        Comment


          #5
          also, can you tell me why do i repeatedly get this error at least 5 times per day??
          Attached Files

          Comment


            #6
            To investigate these issues: Please send a note to [email protected] and include your log and trace files for the day they occurred, as well as a description of what's happening in the platform prior to the message.

            Log and trace files are labeled according to the day and are found:
            My Documents\NinjaTrader\log
            My Documents\NinjaTrader\trace

            Today's files would be log.20100820.txt and trace.20100820.txt
            Ryan M.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            631 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            566 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X