
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
Thank you for your response. I think now it is more clear for me, I was trying to use too much informations available in the SymbolInfo. Those 2 equations works for CFD :
SYMBOL_CALC_MODE_CFD
CFD mode - calculation of margin and profit for CFD
Margin: Lots * ContractSize * MarketPrice * Margin_Rate
Profit: (close_price - open_price) * Contract_Size * Lots
SYMBOL_CALC_MODE_CFDINDEX
CFD index mode - calculation of margin and profit for CFD by indexes
Margin: (Lots * ContractSize * MarketPrice) * TickPrice / TickSize * Margin_Rate
Profit: (close_price - open_price) * Contract_Size * Lots
EURJPY : with for example 1 lot and open price 155, close price 156 and trade_contract_size=100000.0
-> profit = (156-155) * 100000 * 1 = 100000 JPY so arround 700 USD
XAUUSD : with 1 lot, open price 2500, close price 2510 and trade_contract_size=100.0
-> profit = (2510-2500) * 100 * 1 = 1000 USD