Topics
Replies
giuseppealessiof
11 Jun 2020, 11:40
RE: RE: RE:thank you very much, very kind !!
firemyst said:
giuseppealessiof said:
PanagiotisCharalampous said:
Hi giuseppealessiof,
You need to provide more details like the cBot code and baclktesting parameters and dates so that we can reproduce this behavior and advise accordingly.
Best Regards,
Panagiotis
ok thank you very much for the answer but what I would like to know most of all is if I can have the opportunity to meet a code that writes me on the screen why the bot stops
thanks a lot
@Panagiotis can confirm, but I don't believe there are any built in reasons or codes as to why a bot was stopped.
there is when a position is closed though.
When you assign a method to run when a positions closed event has happened, you can read the "args" parameter to get a reason.
Example:
private void Positions_Closed(PositionClosedEventArgs args) { Print("Position closed for reason {1}", args.Reason); }
Otherwise, if you want to know a reason why a bot stopped, you'll have to put in all your own codes whereever you call the Stop() method. And then within the Stop method itself you'll have to check your codes to see which one occurred, or if one occurred that you either didn't account for or was beyond your control.
@giuseppealessiof
giuseppealessiof
10 Jun 2020, 17:08
RE:
PanagiotisCharalampous said:
Hi giuseppealessiof,
You need to provide more details like the cBot code and baclktesting parameters and dates so that we can reproduce this behavior and advise accordingly.
Best Regards,
Panagiotis
ok thank you very much for the answer but what I would like to know most of all is if I can have the opportunity to meet a code that writes me on the screen why the bot stops
thanks a lot
@giuseppealessiof
giuseppealessiof
11 Jun 2020, 11:40
thank you very much, very kind !!RE:
PanagiotisCharalampous said:
@giuseppealessiof