Discover margin for each trade?

Forums ProRealTime English forum ProRealTime platform support Discover margin for each trade?

Viewing 5 posts - 1 through 5 (of 5 total)
  • #78918

    How can I know what margin is needed before I confirm a trade on ProRealTime?

    #78921

    It is not possible to know this directly in PRT.

    IG provide a good description of how to calculate your margin:

    https://www.ig.com/uk/learn-to-trade/margin-explained

    Although they do not mention there how margin is effected by having stops with your trade.

    It should be quite easy to create a simple indicator that calculates your required initial margin and even one that shows your initial margin and maintenance margin as a graph in a back test – I may have a go at doing this later if I find time.

    1 user thanked author for this post.
    #78927

    I wrote this indicator that will display current initial margin requirements to open positions with no stop, a non guaranteed stop and a guaranteed stop:

    The calculations are taken from IG’s information on the charts on their platform.

    You will need to put in the correct values for each of the factors involved in the calculation for whichever instrument you apply it to.

    I have not found any information yet saying what the values for the Limited Risk Premium used in the guaranteed stops calculation are and IG do not list it in the chart information.

    ITF file also attached.

    Screenshot_5-3

    3 users thanked author for this post.
    #78942

    Here is another version. You can enter your buy or sell price of a trade that you have open and your stop price and it will calculate a running margin taking into account any gains or losses (the maintenance margin).

    1 user thanked author for this post.
    #78970

    I wrote this snippet that can be added to long only strategies with no stops to graph the maximum margin required in a back test. It could be adapted to short and with stops using the calculations in the indicators but I will let someone else do that as I would never use it!

    Screenshot_8-3

    I think it works correctly but if any one spots a bug or error in it or any of the other codes here then please correct them as none of them have really been tested properly.

    1 user thanked author for this post.
Viewing 5 posts - 1 through 5 (of 5 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login