Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NT 8.0.0.8 NullRefenceException on Log

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

    NT 8.0.0.8 NullRefenceException on Log

    Hello,

    I was processing an Optimization and I received this error on the log:

    Fill type `Default fill type` Error on calling OnBar method System.NullReferenceException. Object reference not set to an instance of an object.

    Strategy "..." An Set() method to submit an exit order... has been ignored.

    I have uploaded a screen print of the log.

    Are these log entries related ?

    The strategy uses only EnterLong & EnterShort and ExitLong & ExitShort orders but also uses SetStopLoss.

    Occasionally a position will not use an Exit command but will reverse from long-to-short or vis-versa WITHOUT using the Exit command. Like a SAR

    Is this was what is causing the exception, when a position reverses without a prior Exit command ?
    Attached Files

    #2
    Hello,

    Thank you for the question.

    I would be unsure based on what is provided what may have caused the messages. I would expect the ignore message in the case the order was ignored, but the null object message is a different story mainly because it is listed from the FillType.

    Can you tell me was this the only time this has occurred or can you reproduce this at will? If you can reproduce this at will I would like to see what logic is being used in that script, that may provide more information on what is causing the message.

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by funk10101, Today, 12:02 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_LuisH  
    Started by GLFX005, Today, 03:23 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_Erick  
    Started by nandhumca, Yesterday, 03:41 PM
    1 response
    13 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by The_Sec, Yesterday, 03:37 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by vecnopus, Today, 06:15 AM
    0 responses
    1 view
    0 likes
    Last Post vecnopus  
    Working...
    X