Trade FOREX with FXCM

  • Award-Winning Platform
  • 24/7 Customer Support
  • Trade Directly on Charts
  • Free $50K Practice Account
Register


Results 1 to 6 of 6

Thread: How I can get leverage?

  1. #1
    Alessan is offline Member
    Join Date
    May 2012
    Posts
    9

    How I can get leverage?

    Hi,

    I need the account leverage for calcs, any way to get it?

    Thanks.

  2. #2
    Natalya is offline Member
    Join Date
    Apr 2009
    Posts
    744
    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

  3. #3
    Alessan is offline Member
    Join Date
    May 2012
    Posts
    9
    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'

  4. #4
    Ekaterina is offline Member
    Join Date
    Nov 2011
    Posts
    364
    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.

    Name:  Untitled.png
Views: 117
Size:  42.9 KB

    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

  5. #5
    Alessan is offline Member
    Join Date
    May 2012
    Posts
    9
    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

  6. #6
    Ekaterina is offline Member
    Join Date
    Nov 2011
    Posts
    364
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Disclaimer: Trading foreign exchange on margin carries a high level of risk, and may not be suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to trade foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with foreign exchange trading, and seek advice from an independent financial advisor if you have any doubts. Any opinions, news, research, analyses, prices, or other information contained on this website is provided as general market commentary and does not constitute investment advice. Forex Capital Markets LLC. will not accept liability for any loss or damage, including without limitation to, any loss of profit, which may arise directly or indirectly from use of or reliance on such information.