Lotsize Calculation keeps returning 0
-
I have a problem with the lotsize settings, these are my settings

It always returns 0, so I keep trading 0.01lots
any suggestions why it gives a answer of 0 every time
......
lotszie.png -
Okay so I checked a bit more
my marginrequired is 500
so in your calculationyou take (% of balance* balance)/marginrequired
which would be 10% of 10000=1000/500 =2 lotsNow if your balance is smaller lets say 1500 and your % 1%
1% of 1500 = 15/500 =0.03
which would be an acceptable lotsize as my broker accepts 0.01 as the minimum
but instead it trades 0.01 as it interprets 0.03 as ZEROMy guess is that you use MathRound a bit to early
I might be (probably am) wrong, but just trying to help
-
This option means that if you have balance of 1000, then 100% of the lot size will be 0.01 lots when 1 lot = 100000 (0.01 lot = 1000). This was my idea of money management back then in the early days when I wanted to grow the lot size as the profit grows.
If you have some MM model that I am missing, give me link where someone is talking about it, where this MM is defined and maybe has name. Because everyone can create some formula by himself, but look what happens when there is no name to describe it - options that people don't understand or misunderstand.
-
Non no you are not missing anything, I like the simplest options best

when I am using it it returns 0, while I apply your calculation it should retrun 0.03
1% of 1500 = 15/500 =0.03
which would be an acceptable lotsize as my broker accepts 0.01 as the minimum
but instead it trades 0.01 as it interprets 0.03 as ZEROwhen I look at the source code it seems you use MathRound, whihc would transform the 0.03 in ZERO
while I would have used Normalizedouble with 2 digits after the comma so it retruns the 0.03 lotsizeDo I make sense? Do I misuse the intented use? Or should I change my parameters?
Thanks for your help -
Again, the option that you have on the screeshot above does the calculations like this:
You have 10,000, then with the setting of 10(%) the lot size will be exactly 0.01, not 0.03, not 2. 10% of 10,000 is 1000, which turned into lots equals to 0.01, at least on EURUSD and similar There is no margin stuff here. Yes, if the calculated value is too low, the lowest possible is taken, and if it's too high, the highest possible is taken.