MoneyManagement addition to Account class

Created at 17 Mar 2019, 16:39
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!
SH

Shares4UsDevelopment

Joined 14.10.2018

MoneyManagement addition to Account class
17 Mar 2019, 16:39


Make a MaxVolumeFromRisk method taking into account :

  • max balance% to risk
  • real current leverage
  • Stopout level
  • Set StopLoss
  • Account currency
  • Unfilled Pendingpositions and Positions already taken
  • ....

called like:

Account.MaxVolumeFromRisk(AccountRiskpercentage,(double)StopLossPriceLevel);
// overloaded version
Account.MaxVolumeFromRisk(AccountRiskpercentage,(int)StopLossPipsDifference);
//used like:
double Volume = Math.Min(Volume, Account.MaxVolumeFromRisk(1.5, (int) 20) );

And maybe a

Account.MaxStopLossPriceLevel(Volume);
Account.MaxStopLossPipsDifference(Volume);

that calculates the maximum stoploss for a certain volume.


@Shares4UsDevelopment
Replies

TonNcie
26 Jun 2019, 10:58

add CALMAR ratio to fitness

add CALMAR ratio to fitness


@TonNcie