cBot Error Behaviour
Created at 30 Oct 2021, 19:55
cBot Error Behaviour
30 Oct 2021, 19:55
Is there a way to control what happens on an exception on my cBot. For example, choose if I want to close all positions or do nothing, etc.
Thanks
Replies
amusleh
04 Nov 2021, 07:58
RE: RE: RE: RE:
yuval.ein said:
A. What does the Stop method does?
B. If I have several instances of the same cBot and one of them calls the Stop, does it effect the other instances?
Thanks
Hi,
No, it doesn't effect other instances, if you call Stop on a cBot it will only stop the instance that called the method not the other ones.
@amusleh
amusleh
01 Nov 2021, 08:20
Hi,
You can use try/catch to catch an exception and then do anything you want to.
@amusleh