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 ?
Comment