Jump to content
  • 0
Sign in to follow this  

Scaled prices

Question

Guest Edward

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

Share this post


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

Share this post


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

Share this post


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

Share this post


Link to post
  • 0

Got it. I think the key is I need to convert the price to points. Thanks very much for the info.

 

Ed

Share this post


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
You are posting as a guest. If you have an account, please sign in.
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.

Sign in to follow this  

  • IG ISA Season

  • Member Statistics

    • Total Topics
      6,391
    • Total Posts
      28,414
    • Total Members
      37,298
    Newest Member
    F_erret
    Joined 21/03/19 09:20
  • Our picks

    • APAC brief - 21 Mar
      Market action proves it again: this market hinges on the Fed: The US Fed has proven itself as the most important game in town for traders. The FOMC met this morning, and lo-and-behold: the dovish Fed has proven more dovish than previously thought; the patient Fed has proven more patient that previously thought. Interest rates have remained on hold, but everyone knew that was to be the case today. It was about the dot-plots, the neutral-rate, the economic projections, and the balance sheet run-off. On all accounts, the Fed has downgraded their views on the outlook. And boy, have markets responded. The S&P500 has proven its major-sensitivity to FOMC policy and whipsawed alongside a fall in US Treasury yields, as traders price-in rate cuts from the Fed in the future.


      The US Dollar sends some asset classes into a tizz: The US Dollar has tumbled across the board consequently, pushing gold prices higher. The Australian Dollar, even for all its current unattractiveness, has burst higher, to be trading back toward the 0.7150 mark. Commodity prices, especially those of thriving industrial metals, have also rallied courtesy of the weaker greenback. Emerging market currencies are collectively stronger, too. This is all coming because traders are more-or-less betting that the Fed is at the end of its hiking cycle, and financial conditions will not be constricted by policy-maker intervention. Relatively cheap money will continue to flow, as yields remain depressed, and allow for the (sometimes wonton) risk-taking conditions that markets have grown used to in the past decade.
        • Great!
        • Like
      • 0 replies
×
×