Withdrawal and deposit detection.
Withdrawal and deposit detection.
03 Mar 2023, 17:10
Hi,
In order to do proper Riskmanagement tehre is no way of detecting a withdrawl or deposit on a bot running on several symbol instances.
In order to enable this we need 2 events on the account class.
OnWithdrawal(WithdrawalEventArgs args){}
OnDeposit(DepositEventArgs args){}
Best rgds,
Replies
Shares4us
23 Apr 2023, 20:40
RE:
great workaround, had something similar. but i'd like Spotware to provide the event it they are able to.
It's a pitty they are totally silent and do not answer these suggestions with a 'is possible or is not possible' so we can write our own libraries for things like this if it will never come from spotware.
@Shares4us
ncel01
03 Mar 2023, 20:33 ( Updated at: 03 Mar 2023, 20:38 )
Hello,
It would be great indeed, to have these events available.
Unfortunately, not every useful tool is available on cAlgo and sometimes we need to work around and be a bit "archaic" to get to something similar.
In fact, I have suggested for something similar a while ago:
For the time being you can try the following code. Let me know if it helps!
@ncel01