how can I get the value of "Percentage" use mql5 function when i calculate the CFD Margin?

 

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?

 
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)