Calculate the used margin per trade
Results 1 to 2 of 2

Thread: Calculate the used margin per trade

  1. #1
    Hi,

    I'm new here and im trying to construct my first EA, I have some questions tho, when possible I would like some help here

    how do I calculate the margin worth of a new commerce in diferent pairs until I start the commerce?

    How do I calculate the pip value of a commerce in diferent pairs and diferent commerce sizes?


    Thanks very much

  2. #2
    Dual AccountFreeMarginCheck( string symbol, int cmd, double quantity)
    Returns completely free margin that stays after the specified place was opened in the current price on the current account. If the free margin is inadequate, a mistake 134 (ERR_NOT_ENOUGH_MONEY) will be generated.
    Parameters:
    symbol - Symbol for trading operation.
    cmd - Operation type. It may be OP_BUY or even OP_SELL.
    Volume - Amount of lots.



    Dual MarketInfo( string symbol, int kind)
    Returns various data about securities listed in the Market View window. A portion of information about the current security is saved in variables.

    Use MODE_TICKVALUE for the kind, this can return the tick value for a standard lot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.