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 comment

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 comment
  • 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 comment
  • 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 comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • General Statistics

    • Total Topics
      22,098
    • Total Posts
      92,955
    • Total Members
      42,477
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    calwall77
    Joined 01/06/23 20:51
  • Posts

    • Look ahead to 2/6/23: US jobs; Baker Hughes rig count After the stronger than expected private payrolls number from ADP, risks would seem to be on the upside for the US non-farm jobs number on Friday.  Jeremy Naylor | Analyst, London | Publication date: Thursday 01 June 2023  IGTV’s Jeremy Naylor looks at USD/JPY as a potential trade. Outside of this watch Brent around the Baker Hughes rig count.            
    • What's the next move following the bank run that led to a rally in US stocks? The markets have been giving us hints on its coming trend, which markets are they? Deploying market psychology not only helps us to connect the dots in today’s complexity, it also gives us the simplicity to chart into the future. In this session, we have invited market veteran, Wong Kon How, to help you improve your trading literacy and successfully navigate the financial markets. Kon How will demonstrate how he understands today’s market complexity and seizes the coming opportunity with behavioral science.  
    • Charting the Markets: 1 June Dow and CAC40 stabilise while Nasdaq 100 edges down. EUR/USD, EUR/GBP and USD/CAD stabilise as US debt ceiling bill goes to Senate. And Brent, orange juice stabilise while copper advances as US debt ceiling bill gets signed. Shaun Murison | Senior Market Analyst, Johannesburg | Publication date: Thursday 01 June 2023               This is here for you to catch up but if you have any ideas on markets or events you want us to relay to the TV team we’re more than happy to.
×
×
  • Create New...