![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
Hi.
I used to trade only forex , and i was using this part of the code to find out how many pips is the stop loss, and if it was more than 300 pip then i entered the trade.
before entering the trade i used the bellow part of the code to make sure that each symbol uses the same amount of margin
So now i want to try my expert advisor on cfds too, but i see that the contract size is difrerent (usually 10 ) and it used to be 100,000 on forex.
And i suppose this will affect my lotsize.
So before trying my code, i want to ask how to calculate the pipsdistance the Used Margin (Mgn) and the Lots size on cfds.
Thank you.