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
      18,467
    • Total Posts
      84,274
    • Total Members
      67,592
    • Most Online
      7,522
      10/06/21 10:53

    Newest Member
    Sammynkukuu1
    Joined 16/05/22 17:25
  • Posts

    • GOLD (XAU/USD) ANALYSIS Rampant USD and weak Chinese Industrial data weigh on the precious metal The falling stock market may be adding to golds recent bearish momentum (XAU/USD) Key technical levels analyzed   GOLD DECLINES AS THE US DOLLAR CLIMBS HIGHER Gold continued last week’s downtrend and trades lower in the London AM session on Monday. From a fundamental perspective, gold’s outlook is bearish as global interest rates are on the rise in response to surging inflation, worsening the appeal of holding the non-interest-yielding commodity. The US dollar index (DXY) is a weighted currency index which is generally used as a benchmark for US dollar performance. DXY continues its upward trend after last week’s US inflation data for April - which printed lower than the March print – surprised to the upside. Higher inflation data underpins the value of the greenback at a time when the Fed is fully motivated to raise the Fed funds rate. Current market expectations see the Fed hiking rates a further 190 basis points before the end of the year. The dollar effect on gold appears to be outweighing the effect of inflation on gold prices. Gold has been lauded as an inflation hedge, however, the relationship holds up better over the long-term, meaning that higher inflation in the short term is actually more likely to result in lower gold prices due to the stronger dollar and higher interest rates adjustment that typically follows. WEAK CHINESE INDUSTRIAL DATA TRUMPS EASING LOCKDOWN MEASURES China announced it ‘will work to restore normality’ in Shanghai from June the 1st and the news should have buoyed global sentiment, however, disappointing industrial production data for April soured the mood. Industrial production declined by -2.9% compared to April last year, drastically missing the forecast figure of a 0.4% increase. STOCK MARKET LOSSES CONTRIBUTING TO LOWER GOLD PRICES? When equity markets fall, money managers may decide to cash in other fairly liquid instruments, like gold, to fund losses in the stock market. Therefore, continued declines in equity markets could support gold’s bearish trend. With the Fed all but certain to hike rates by another 50 basis points in the June meeting, the narrative around equities continues to support ‘selling rallies’ as opposed to the ‘buy the dip’ narrative that extended throughout the global recovery and extremely loose monetary policy. Therefore, gold looks susceptible to further declines. GOLD KEY TECHNICAL LEVELS The bearish trend continues from last week but the RSI has just dipped into oversold territory, while the daily candle has also pulled back a fair amount since the start of trading. A pullback towards 1828/1830 (38.2% Fib level of the 2020 to March 2021 move) could be on the cards if the precious metal fails to make it 3 successive down days. The zone of support with a mid-point of 1760 appears as the next significant level of support with a breach of that zone opening the door to 1723 level. Daily Gold Chart Source: TradingView, prepared by Richard Snow The weekly gold chart helps to view the current move in the context of the longer-term levels/zones. The 1760 zone has been instrumental in creating a price floor for gold as previous breaches proved to be extremely short-lived. It remains to be seen if this zone will hold once again and if it fails, 1723 and 1677 appear as longer term price levels of interest. Weekly Gold Chart Source: TradingView, prepared by Richard Snow   --- Written by Richard Snow for DailyFX.com
×
×
  • Create New...