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 ageeholdings, Today, 07:43 AM
    0 responses
    7 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X