Topics

Forum Topics not found

Replies

Egor_Sorokin
25 Sep 2014, 11:25

Same problem with position opening.

Crashed in Positions.Opened with NullReferenceException: Object reference not set to an instance of an object.

I try use the standart try-catch cycle for error handling, but it did'nt help, cBot is stopped all the same.

Help me, please, how i can handle it ^^

                try
                {
                    var orderRes = ExecuteMarketOrder(TradeType.Buy, Symbol, VolumeSize, strOrderId);
                } catch (NullReferenceException)
                {
                    mTimer.Start();
                    return;
                }

 


@Egor_Sorokin

Egor_Sorokin
25 Sep 2014, 11:16

No, WinForms in cBots is not provided.

But you can create your own WinForms project in Visual Studio, and link cAlgo Object Model to VS project.


@Egor_Sorokin