Hi
If the system is good, why not increase lot sizes as ones profits increase, or as ones accountbalance increases. I think it must be easy to write a function to determine the number of lots to buy that would equal say 2% of ones accout balance.
I have seen a 'money management' thread on forex-tsd but can't find it now.
But I don't even know how to determine the lot price - please help.
here is what I have so far..
Code:
int NumberlotsToTrade(int percentOfAcc)
{
//To return the number of lots that are to be traded that
// would equal a certain percentage of the account total (percentOfAcc)
int moneyavailable;
int lotMM;
int lotss;
lotss =1;
moneyavailable = Mathceil(AccountBalance( ) *(percentOfAcc/100)) ;
// I suppose it should actually be: moneyavailable = Mathceil(AccountFreeMargin() *(percentOfAcc/100));
lotMM = moneyavailable/(lotprice)
//how does one determine lot price for differentsymbols?
if (lotMM < 0.1) lotMM = Lotss;
if (lotMM > 1.0) lotMM = MathCeil(lotMM);
if (lotMM > 100) lotMM = 100;
return(lotMM);
}
I have seen Alex.Piech.finGer do the the following - but I don't fully understand it.
I suppose it is better to use accountfreemagrin as this is AccountBalance minus Acountequity right?
Does the 10000 represent a micro account - would one change it on a normal account>
Code:
lotMM = MathCeil(AccountFreeMargin() * 50 / 10000) / 10; // 50 risk :)
if (lotMM < 0.1) lotMM = Lots;
if (lotMM > 1.0) lotMM = MathCeil(lotMM);
if (lotMM > 100) lotMM = 100;
Does anyone know of a good link where they explain: balance, equity, free Margin, Margin and Margin level. Thanks
when I started looking at forex I found the following for mini accounts.
Quote:
setting lot size to 10.0 lots = 1 standard lot (1.0 lot or $100K lot)
setting lot size to 1.0 lots = 1 mini lot (0.1 lot or $10K lot)
setting lot size to 0.1 lots = 1 micro lot (0.01 lot or $1K lot)
setting lot size to 0.01 lots = 1 minimicro lot (0.001 lot or $100 lot).
|
So if I set lot size to 0.01 - when I trade, a trade will cost me $100 and if my account leverage is 100, then effectively the bank has traded $10000 in my name.
The more I look at it - the more confused i get. LOL
