Risk Management – Variable Position Size

Forums ProRealTime English forum ProOrder support Risk Management – Variable Position Size

  • This topic has 1 reply, 2 voices, and was last updated 6 days ago by avatarJS.
Viewing 2 posts - 1 through 2 (of 2 total)
  • #247615

    Hi everyone,

    I have a question regarding my PRT Code.  I wanted to define the position size so that the same risk in terms of $ value applies for each trade. Once I perform a backtest the position size varies and most of the time it is doing what it should. But there is also a significant number of exceptions where the result deviates too much from the original intention with 1:1 Risk/Reward.

    Please find below the code and attached also a picture of the results with yellow marked deviations.

    The average position size is like 10-15 contracts, so it is not the problem that it is only 1 contract.

    What is wrong in my code and what can I do better in order to have a proper position size for risk/reward calculation?

    Thank you very much for your support.

    Best regards

    Simon

     

    #247649
    JS

    Hi Simon,

    In “Risk Management,” it’s common practice to risk only 1% of your capital per trade and base your position size on this, for example:

    // Money Management

    Capital = 10000
    Risk = 0.01

    StopLoss = 10

    // Calculate number of contracts

    Equity = Capital + StrategyProfit

    MaxRisk = round(Equity * Risk)

    PositionSize = abs(round((MaxRisk / StopLoss) / PointValue) * pipsize)

    A lot has already been written on the forum about money/risk management, and if you check the library or search for “money management,” you’ll find plenty of useful information…

    2 users thanked author for this post.
Viewing 2 posts - 1 through 2 (of 2 total)

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