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 pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    148 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,282 views
    0 likes
    Last Post Leafcutter  
    Working...
    X