deinitialization logic

Created at 13 Sep 2016, 12:33
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
XR

xrichard69

Joined 12.09.2016

deinitialization logic
13 Sep 2016, 12:33


What is deinitialization logic? 


@xrichard69
Replies

croucrou
13 Sep 2016, 13:05

It is the code that executes right before a bot stops running.


@croucrou

xrichard69
13 Sep 2016, 13:19

RE:

croucrou said:

It is the code that executes right before a bot stops running.

i downloaded a bot and in the source code is written // Put your deinitialization logic here.             What should i put in here?


@xrichard69

croucrou
13 Sep 2016, 13:39

If it looks like:

protected override void OnStop()
{
    // Put your deinitialization logic here
}

you can remove whole that section.


@croucrou