use CalcMargin Function and I calculate Lot Size to be 1.03 how can i step it down to 1.02?
- Silver and Gold mystery
- Error 4051 (Code Pasted) - Lots that are not divisible?
- Trading signals account size difference
wehsnim:
use CalcMargin Function and I calculate Lot Size to be 1.03 how can i step it down to 1.02?
Please show your code, asyour question isn't very clear.
use CalcMargin Function and I calculate Lot Size to be 1.03 how can i step it down to 1.02?
angevoyageur:
Please show your code, asyour question isn't very clear.
I figured it out. "- LotStep" or create an incrementation "double incrementLot = 0.01"
Please show your code, asyour question isn't very clear.
angevoyageur:
Please show your code, asyour question isn't very clear.
Please show your code, asyour question isn't very clear.
I still have a problem though getting an accurate 10 percent of account calculation.
EURUSD Account Balance = 10,000 , 10 Percent of the account would be 1,000 So margin would be 750 for 0.1 Lot
When the lot amount is incremented to 0.2 the formulation for 10 percent is now flawed due to the leverage. When the leverage is calculated in the formula is still wrong cause of the cost of 1 point per pip changes
and creating an unbalanced ratio an as the 10 percent calculation plays out we get a collapse of the account.
Basically I am try to create optimal allocations of lot sizes across all symbols while maintaining room for investments to grow.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register