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

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.

 

 

 

 

 

 

 

Link to comment

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

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

Archived

This topic is now archived and is closed to further replies.

  • image.png

  • Posts

    • In the previous year, #bullrun2024 had been a trending hashtag as most crypto enthusiasts continually drooled over the prospects of witnessing another bull cycle. 2024 is finally here and so far so good has produced only fireworks. BTC has soared to 60k+, the market is green, and there’s a general sense that the bulls are returning. If there’s one thing that pays most in such bullish market, it is the flair to spot early gems and position oneself before a breakout. In that regard, Bitget has been my plug for a few years running. The early listing of $ORDI last year for instance before Binance listing 7 months after, and a surge ultimately is well documented. This year alone, Bitget has continued its wealth creation for users nicely, coins like $PORTAL, $GPT, $GTAI and so on have gone on to print for investors as depicted in the picture below. Web3 rewards not just active participation, but strategic positioning. There’s no gainsaying that the key to securing insane profits in this market is by positioning early and strategically too. Bitget’s eagle-eye for spotting early gem is a flex. Numbers don’t lie.  
    • Portal itself is awesome. Those who haven't got any airdrop, I think it's best time to accumulate for them.. tho, I'm gonna DCA....
    • Nope the hype is worth it. The project is dope itself as well as the team. Already deposited my bag at Bitget... Let's hope for the best 🤞
×
×
  • Create New...
us