Jump to content
  • 0
Sign in to follow this  

Scaled prices

Question

Guest Edward

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

Share this post


Link to post

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

Share this post


Link to post
  • 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

Share this post


Link to post
  • 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

Share this post


Link to post
  • 0

Got it. I think the key is I need to convert the price to points. Thanks very much for the info.

 

Ed

Share this post


Link to post

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
You are posting as a guest. If you have an account, please sign in.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Member Statistics

    • Total Topics
      12,513
    • Total Posts
      63,759
    • Total Members
      84,624
    Newest Member
    i25dotus
    Joined 30/09/20 03:17
  • Posts

    • TGA approved today!!! BOOM
    • For me your stop is large, I use close to the minimum for the market. But I think same applies. I think basically I like tight stops because you can't lose too much but when you win hopefully you win big relative to that. I've been using a 4:1 reward/risk ratio for example.  When I started out I thought the likelihood of pulling this off given how close the stop was to entry was unlikely but actually it does happen fairly often. The issue I have is that I average a win every 4 trades so essentially make nothing in the end but that's just my mean, I have a massive standard deviation that I need to get way down i.e. increase win rate if possible before this is useful. So for me I think I need better timing signals to enter and I enter too readily without really using indicators to help me. To be honest though what I've found which might be obvious to most is that if the market trends for a period of time it's much easier to make money. When it isn't it's very difficult, the problem is you often don't know when it's not trending to a large enough degree until you're in it and then you need to know to take some time and return later. Like sailing with a strong wind and then all of a sudden it's doldrums.
×
×