My programs keep shutting down.
Is there way to prevent this from happening?
I have a check to make sure that the position is in the correct Long/Short
is there a way to add slippage or close at what ever the price is?
(Position.MarketPosition == MarketPosition.Short)
ExitShort(Convert.ToInt32(DefaultQuantity), @"OptimusCloseSell20", @"OptimusSell20");
I dont see what the issue is.
I would be grateful for any insite into why this happens every once in a while.
Thank you!
Comment