Possible Bug with ExecuteMarketOrder v3.3
Created at 15 Oct 2018, 17:32
Possible Bug with ExecuteMarketOrder v3.3
15 Oct 2018, 17:32
If you run the line of code below:
ExecuteMarketOrder(TradeType.Buy, _robot.Symbol, size, "RR-Tool", sl, tp);
and you do not have the event function below declared
private void OnPositionOpened(PositionOpenedEventArgs args)
The cBot crashes with the following error message
15/10/2018 17:31:42.102 | Crashed in Positions.Opened with NullReferenceException: Object reference not set to an instance of an object.
Replies
ClickAlgo
17 Oct 2018, 14:01
This bug was probably caused by the architecture of my project, it has been resolved using an async call instead, you can ignore or close this ticket.
@ClickAlgo
ClickAlgo
15 Oct 2018, 18:08
Sorry, I posted on the wrong forum, it is an intermittent fault also.
@ClickAlgo