Search for this
ENUM_SYMBOL_CALC_MODE
there is the Description inside

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
I use this code block to calculate the lot size. but when it comes to indices the calculation is very different.
as an example, this code block calculates lot size for 10,000$ account with 1:500 leverage is around 3.0 lots. but when it comes to balance 6,000$ with 1:100 leverage, the code is calculated the lot size same as 3.0 lots. but it too big to place and order with that lot size for 6,000$ with 1:100 leverage.
What kind a modification should I do this to work in all different pairs and different brokers with different leverages.