| -
How I can get leverage?
Hi,
I need the account leverage for calcs, any way to get it?
Thanks.
-
Please tell which kind of calculations you are going to perform.
If you need to calculate the amount of money required to open a new position, you can use the methods: O2GTradingSettingsProvider.getMMR O2GTradingSettingsProvider.getMargins -
Hi,
Thaks for response, actually i'm codding a few third party MT4 strategies, this used the Leverage: Code: int MINLOT = GetMarketManager()->GetOfferByName(symbolname)->MinLot;
int MAXLOT = GetMarketManager()->GetOfferByName(symbolname)->MaxLot;
double MARGINREQUIRED = GetMarketManager()->GetOfferByName(symbolname)->MarginRequired;
double TICKVALUE = GetMarketManager()->GetOfferByName(symbolname)->TickValue;
int LOT;
if(m_RiskPercent == 0)
{
LOT = acc->FreeMargin * 200/*GetAccountLeverage()*/ / 1000 / MARGINREQUIRED / 15;
}
else
{ If no function is avaliable I try to do it from other way.
I have one question more: Why on FXCM Trading Station Web all pairs give me PipCost 0.10 and ForexConnectAPI give diferent values?
'EUR/USD', '1.227860', '1.227570', '5', '0.000100', '12', '2012-07-19 20:48:37', '1000', '50000000', '0', '0', '0', '0', '28.00', '1.000000'
'EUR/CHF', '1.201110', '1.200900', '5', '0.000100', '3', '2012-07-19 20:48:13', '1000', '50000000', '0', '0', '0', '0', '28.00', '1.02236'
'USD/CAD', '1.007750', '1.007470', '5', '0.000100', '8', '2012-07-19 20:48:38', '1000', '50000000', '0', '0', '0', '0', '20.00', '0.99233'
-
Hi Alessan,
I have one question more: Why on FXCM Trading Station Web all pairs give me PipCost 0.10 and ForexConnectAPI give diferent values?
'EUR/USD', '1.227860', '1.227570', '5', '0.000100', '12', '2012-07-19 20:48:37', '1000', '50000000', '0', '0', '0', '0', '28.00', '1.000000'
'EUR/CHF', '1.201110', '1.200900', '5', '0.000100', '3', '2012-07-19 20:48:13', '1000', '50000000', '0', '0', '0', '0', '28.00', '1.02236'
'USD/CAD', '1.007750', '1.007470', '5', '0.000100', '8', '2012-07-19 20:48:38', '1000', '50000000', '0', '0', '0', '0', '20.00', '0.99233'
Could you tell us please:
1. On which base are you trading? You can find the base name in the status bar of the main TS window. It should be something like:100KREAL, MINIREAL4, GBDEMO, PREMIUMDEMO, ect. 
2. How many accounts do you have on your login?
3. If you have TS Desktop on your computer, please check the Pip Cost there on the same login. Tell us the results.
Best regards,
Ekaterina
-
Hi,
Thanks again for response.
Is weekend, and i cant subscribe symbols now, but all are at 0.10 http://i.imgur.com/UrIPz.jpg -
Hi Alessan,
developers have fixed the issue. The fix will be included in the next release that is supposed to be in the nearest future.
Thank you for reporting the issue!
Best regards,
Ekaterina
|