These results are from your code at my broker. And similar it is at my other brokers. Of course, only at some symbols.
Crude Oil (it should be 10:1):
Symbol leverage [CL_ecn] = 0:1
DAX (it should be 20:1):
Symbol leverage [DAX_ecn] = 1:1
Yes, you are right. I tested it today on Tickmill - they have incorrect TICK_VALUE for PLN accounts and I got wrong results on indices. Thanks for sharing :)
I have sent to MetaQuotes Software Corp the following e-mail. I hope to receive answer in this matter.
Dear MetaQuotes Software Corp. Team,
I'm really curious if they answer to you. If so I would like to see the answer. Thank in advance.
I have sent to XM broker the following e-mail:
Dear XM Team,
During testing XM MT5 demo-Hedge account i have noticed discrepancies in accessible information using MT5 script as below:
2. The same problems concern the following currency pairs: EURTRY; EURDKK; EURHKD; GBPDKK; USDRUB; USDDKK; USDHKD; EURRUB; USDCNH;
I have checked only Forex currencies pairs, because for multi-currency trading, I search and choose first which currency pairs has got CALC_MODE==MODE_FOREX (Forex with leverage), bacause I am not interested with Forex currency pairs with no Leverage.
After one day I have received the following answer:
Dear Valued Client,
We thank you for choosing XM as your trusted broker.
Regarding your concern, the relevant department has informed me that in order to comply with the ESMA regulations we have set a fixed margin rate. In order to accomplish this the calculation mode must be set to Forex No Leverage. And after that we set the required margin rate.
Unfortunately this is the only way.
Should you have any further questions, please do not hesitate to contact us.
Wishing you a great day and successful trading!
Customer Care Officer