Lot size
-
How do I set it so I use the maximum lot size possible for my account size per trade, no matter if it’s a 4 pip, 6 pip or 15pip trade size.
For example imagine my account is $100 with a leverage of 400:1. The maximum lot size I can do is 0.33 lots. How do I set it so my EA always uses a maximum lot size rather than a percentage taken per trade. So if my trade was 6, 9 or 14pips I will go in at 0.33 lots.
Also how do I get the lot size to change at specific numbers, so let’s say my account was $100 (0.33 lots) how do I get it to change at $200 to 0.66 lots.
-
@gtoat777 For the first question you need to do this:

I don't understand the second question. You are doubling the Balance, so the lot size wil be doubled exactly in the same way by using the option above.
-
Thank you very much, yeah the second question is pretty much irrelevant if I do what you said in the picture, as it will be automatic.
So by setting it to 100 no what matter what the trade size is it will automatically always work out the lot size? Also do I need to add leverage size to the fxdreema so it knows, for example with 100% on a 400:1 would be 0.33 lots whereas if my account had a 50:1 leverage it would be much less.
Will it work this out automatically or do I need to input it?
-
@gtoat777 No, fxDreema doesn't include leverage ine any of these options. You will have to modify the % value manually according to the leverage.
-
@gtoat777 free margin is calculated using your leverage, so you could use that one.
-
@roar makes sense ok thanks, do you know what I would need to type in?
-
@gtoat777 well AccountMargin() returns the margin for you, but to calculate the final lot amount, you have to do the math yourself
-
@roar ok I have done the maths now, so let’s say my account is at $100 (400:1 lev) I have seen I can risk 50% of my account at minimum 20 pips for 0.33 lots, so in other words as long as my account balance is at $100, 0.33 lots is the maximum I can go in at but no bigger than a 20 pip order, from 21 pips onwards I’d have to lower the lot size.
So the math would have to go as followed50% = 20pips. (0.33 lots)
40% = 16pips (0.33 lots)
30% = 12 pips (0.33 lots)
20% = 8pips. (0.33 lots)
10% = 4 pips (0.33 lots)
So ultimately for every 1 pip max I can risk is 2.5%For anyone that would read this the reason why the percentage lowers with lowering of pips is because the lot size would have to get bigger.
But after now doing the maths is their a way I can input that for every 1pip of a trade risk 2.5% of the account but have this formula stop at 20pips
-
@gtoat777 I dont really understand the formula here, but generally, MathMax(a,b) and MathMin(a,b) are useful in limiting number series.