Jump to content
  • 0

Scaled prices


Guest Edward

Question

Hi,

 

I'm writing an EA and am trying to calculate the required margin of a particular trade. The calculation I'm trying to do is marginRate * price * lotsize. I understand that in MT4 the prices are unscaled and in IG they are scaled. How do I calculate the scaled prices using MT4?

 

Many thanks,

 

Ed

Link to post

6 answers to this question

Recommended Posts

  • 0

Ok @EdFuk I see what you mean, the web platform is scaled in points while mt4 has the actual price. 

So for eurgbp the web platform is 8940.1

and mt4 is                                        0.89401 and so to convert price into points you multiply by 10,000.

as it's spread betting the size is £/point  (say £1)   so the calc is (size (1) x price in points x margin rate (3.33%))

image.thumb.png.0274772e40bee324ab3cc6a2668295cd.png

so the margin amount is   £297.70

Contract size isn't used in spread betting but mt4 calls size as lots for both SB and CDF accounts but it really means £/point for SB.

 

 

 

 

 

 

 

  • Like 2
Link to post
  • 0

I have opened an IG spread betting MT4 account and in the information that comes with the account it mentions that the forex prices are scaled on IG and raw or I scaled in MT4. So when trading EURGBP at a price of 0.89 say (the value indicated in MT4) I think I would have to multiply that figure by the contract size which is indicated as 10,000 in the specification. Therefore the calculation would be:

 

lots x price x contract size x margin rate

 

Any ideas?

 

cheers,

 

Ed

Link to post
  • 0

I have opened an IG spread betting MT4 account and in the information that comes with the account it mentions that the forex prices are scaled on IG and raw or I scaled in MT4. So when trading EURGBP at a price of 0.89 say (the value indicated in MT4) I think I would have to multiply that figure by the contract size which is indicated as 10,000 in the specification. Therefore the calculation would be:

 

lots x price x contract size x margin rate

The crux of it is that the actual price is as displayed in MT4, say 0.89401 but in IG they scale it to 8940.1  I’d like to know how to find out how to scale a particular instrument using the information available e.g using a property in the marketinfo function  

Any ideas?

 

cheers,

 

Ed

Link to post

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • General Statistics

    • Total Topics
      15,117
    • Total Posts
      73,107
    • Total Members
      61,424
    • Most Online
      5,137
      14/01/21 09:51

    Newest Member
    dk528
    Joined 05/05/21 22:32
  • Posts

    • Hi  For those interested in the Video Gaming industry we recently interviewed the product manager for VanEck Video Gaming & Esports ETF to talk about how the industry will perform as lockdown measures start to ease and what is fueling future growth https://blubrry.com/igtradingthemarkets/74972956/how-investors-can-profit-from-the-growing-video-gaming-and-esports-industry/   Are there any other exciting sectors you would like to see covered on the podcast by an industry expert?
    • Yes I am aware that I have selected the guaranteed stop level as I have been for a while in preparation for when the live account is approved, the live account will have to use a guaranteed stop on each trade, which I think is a good idea as it reduces exposure to risk and the margin required as it is a controlled risk as apposed to an uncapped or un controlled risk. Normally the stop limit on this trade is a minimum of 8 points, in this screen shot it it is set at 30 points which has increased the required margin to $1775, when it is at 8 or 10 the margin would be around $1300. If I set the stop to 139 points the margin will increase to $17,000 or more, obviously blocking the trade with a $10,000 account fund. Thank you for your suggestion,  however it isn't because I have selected a guaranteed stop as I normally do. having given this some thought, I guess if there is excessive price volatility / uncertainty, as there is when the price is at 1.39000 the system sets the GSL very high for protection, the price could easily run away, that being said if it was hit at 139 it would lead to a massive loss, maybe $7000.  
    • Hi guys.  Wanted to thank you guys for viewing my posts and hope you have found it helpful . If anyone has any feedback as to how I can improve them to provide more help please shoot them here.   God Bless CA
×
×
  • Create New...