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

    • Recently, U.S. Senator Bill Hagerty from Tennessee spoke at the Bitcoin conference, stating his efforts to push for Bitcoin-supportive legislation to promote freedom and opportunity. This year, cryptocurrency has become a key battleground in the election campaigns. It remains to be seen whether future policies on cryptocurrency will improve.
    • The digital landscape is undergoing a profound transformation as attention, once a freely given commodity, is increasingly recognized as a valuable asset. Layer3 is at the forefront of this revolution, pioneering a new economy where attention can be owned, traded, and monetized   This innovative approach empowers individuals to monetize their engagement, providing unprecedented control over personal data. Simultaneously, advertisers benefit from transparent metrics that optimize campaign performance. Content creators are presented with diverse revenue avenues beyond traditional advertising, while the overall ecosystem experiences a more equitable distribution of value.   The implications of Layer3 extend across various sectors. Social media platforms, for instance, can leverage this technology to revolutionize user engagement and monetization strategies. Tokenomics play a crucial role in driving Layer3's economy, incentivizing participation and rewarding value creation. While challenges such as data privacy and market volatility exist, the potential benefits of Layer3 are immense   Anticipation is building as its native token $L3 is on Bitget Pre-market as users await its listing on the exchange. This milestone is expected to significantly increase the token's visibility and accessibility, potentially driving substantial growth and attracting new investors. As the countdown begins, the crypto community watches with keen interest, eager to see how Layer3 will perform in this new chapter.
    • I've been exploring the world of play-to-earn gaming recently, looking for something that's not just about endless grinding but actually offers a fun and rewarding experience. OGC really stood out to me because it combines gaming with a sense of community in a unique way. OGC isn't just a game; it's a platform where you can play, earn, and even help shape its future. You're not just a player; you're part of a community with a voice. The idea of earning crypto while playing games is exciting, but what makes OGC special is its focus on community involvement. Your feedback can directly influence the development of the game, which is a big deal. I've also heard that the OGC token is available for pre-market trading on Bitget. While I'm still getting to know the platform and its features, it's definitely something to keep an eye on. Has anyone else tried OGC? What has your experience been like? I'd love to hear your thoughts and any tips you might have.
×
×
  • Create New...
us