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

    • While Layer 2 scaling solutions have helped alleviate congestion on blockchains like Ethereum, Layer 3 rollups are emerging as the next frontier for achieving ultimate scalability and cost-effectiveness. Three prominent layer 3 rollup stand out; ZKlink, Immutable X, and dYdX, each having its distinct strengths. .ZKlink stands out as a prominent player in this space, offering unique advantages compared to other Layer 3 protocols. While Immutable X Built on StarkNet focuses primarily on NFT marketplaces and gaming applications. dYdX utilizes StarkNet for rollups, achieving high throughput for trading activities. With each of the above focusing on a particular user in crypto space, ZKlink take it a bit far by prioritizing interoperability, liquidity solutions, and developer customization. ZKlink also the ability to bridge the gap between different blockchain layers and optimize scalability which makes it a significant force in shaping the future of decentralized applications.   The recent Bitget  listing of ZKLink native token further created buzz around the project due to the anticipation of the round one airdrop. Considering the fact that only ZK link utilizes fast financial transactions throughput using the innovative Ts-Evm makes it more unique and position it as the frontrunner in layer 3 rollup race.
    • I've been exploring numerous methods of passive earning over the years aside from spot trading. These methods include staking, futures trading, OTC trading, bot trading, copy trading, and launchpool. I've achieved some successes along the way, and now I'm trying to streamline and focus on just a few passive income opportunities. Actually looked into a project I encountered on X while browsing for opportunities. Branded as UPLAND, I was kinda drawn due to its Gamefi (NFT, metaverse) affiliation on Bitget's launchpool. Let's see what exploring this token fetches me this time 😁🤞🏻 Would love your shared experience(s) using this feature if any and what it's really like?
    • Our intuitive platform is designed with user convenience in mind, ensuring that you can manage your digital assets effortlessly. Whether you’re a seasoned trader or new to the world of cryptocurrencies, NakitCoins provides a hassle-free solution for all your trading needs. Discover the benefits of a smooth, efficient trading experience with NakitCoins today.
×
×
  • Create New...
us