Yupeng Xiao:
SYMBOL_CALC_MODE_CFD | CFD mode - calculation of margin and profit for CFD | Margin: Lots *ContractSize*MarketPrice*Percentage/100 Profit: (close_price-open_price)*Contract_Size*Lots |
how can I get the value of "Percentage" use mql5 function when i calculate the CFD Margin?
Any answer to this question? I have the same issue: how to get the percentage in MT5?
(in MT4 it was easy but not in MT5)

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
SYMBOL_CALC_MODE_CFD
CFD mode - calculation of margin and profit for CFD
Margin: Lots *ContractSize*MarketPrice*Percentage/100
Profit: (close_price-open_price)*Contract_Size*Lots
how can I get the value of "Percentage" use mql5 function when i calculate the CFD Margin?