Start withdrawal request from cBot

Created at 28 Jun 2021, 11:43
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!
GE

genappsforex

Joined 25.11.2019

Start withdrawal request from cBot
28 Jun 2021, 11:43


For good moneymanagement we need to send a notification from our cBot to ourselfs to suggest withdrawal, then we need to send a withdraw request to the broker.
We would be better off if this could be done from the cBot itself.
We'd like a method like

bool SendWithDrawalRequest(double AmountToWithDraw);

usage:
 

If (Account.Equity >= 2000)
{
    if  ( !SendWithDrawalRequest(1000))
        Print("Withdraw request failed");
    else
        Print("Withdraw request sent");
} 

 


cTrader Automate
@genappsforex