Summary

Returns the balance of the current account (the amount of money on the account).

Example 1

//...
double balancebefore,balanceafter;
protected override void OnStart()
{
   balancebefore = Account.Balance;//In this example we store our balance OnStart of the robot
}
//...
protected override void OnStop()
{
    balanceafter = Account.Balance;//Store the balance OnStop of the robot.
	Print("The difference of balancebefore and balanceafter is: {0}", balancebefore-balanceafter);//We print the difference
}
//...

Example 2

//...
protected override void OnTick()
{
    if ( Account.Balance < 0 )//Stops the Robot if the Balance of the Account is negative.
    Stop();
}
//...