calculating working capital for money management

Forums ProRealTime English forum ProOrder support calculating working capital for money management

Viewing 10 posts - 16 through 25 (of 25 total)
  • #171262

    ok, so (nLots*(high * Margin / 100)) wouldn’t work, but it should represent the margin value of the position size shouldn’t it?

     

    #171269

    Yes, it’s the total margin requirement.

    Your account could have just that little money, provided your trade always stays above entry price.

     

     

    1 user thanked author for this post.
    #172393

    Ciao Roberto, I was thinking of a way to vary the speed of change after some profit has accrued – what do you think of this:

    Does that look right to you? I wasn’t sure where the new code should be inserted.

    #172402

    Yes, it’s correct. It’s an interesting idea.

    Another idea would be to update DrawDown at runtime. This your code with this idea embedded:

    You can get rid of DD percentages, if you are planning not to use them.

     

    #172403

    So, this would continually monitor actual DD?

    But as positionsize increases, obviously the DD will also increase – at least proportionally. Wouldn’t that mitigate against the objective of placing larger positions in line with performance?

    #172405

    Yes, and that would surely mitigate performances. It’s an idea for those with a geater risk aversion attitude.
    Of course it’s contrary to your idea of speeding up change as gains accrue.
    I posted it just as an idea, like many others.
    Money, Risk and Lot size management snippets, as well as those to trail SL, are a great battlefield for new ideas and tests.

    1 user thanked author for this post.
    #188656

    @robertogozzi, ciao Roberto, as discussed above, I’ve normally been doing backtests @ minimum positionsize and using the max drawdown as the basis for the Money Management.

    I have now started doing backtests with a constant exposure value, ie positionsize = 7000/close

    This gives a more accurate picture of past performance, but usually results in much higher DD

    For example, a code I’m now working on gives a DD of 400 with positionsize = 0.2, but rises to 1650 with positionsize = 7000/close

    Obviously when running live I would be starting at 0.2  (very close to 7000/close at present values).

    But which number would you use for the MM calculation — 400 or 1650 ???

    I realise that there’s no ‘right answer’ but curious to know your opinion on this, thanks.

    (or anyone else’s opinion!)

     

    #188665

    The greater the number of lots, the higher the DD is, as it’s simply the exposure. If you suffer at most, say, 100 euros on Dax €1 with 1 lot, the same DD will reach 200 euros with 2 lots, etc….

    You should always use the most recent DD as displayed by PRT when you have finished optimizing with MM disabled. At that point, after coding the correct DD, you can enable MM for a final backtest before starting your code into autotrading.

    You only have to care for the initial number of lots, as each increase of that number at runtime will be consequent to a higher equity available on your account owing to accumulated profits.

     

     

    1 user thanked author for this post.
    #188670

    thanks Roberto, that is more or less what i had been thinking – good to have some confirmation 😁

    #213984

    Thank you both for this discussion, I understood almost everything but unfortunately not really everything because my brain blocks a little bit on the 825, someone can give me a good explanation or a concrete example how do you get this number (what initial capital?, what trading instrument?, …. )

    I think that when I have a concrete example I could then try to give my opinion on the variable DDmultiply

Viewing 10 posts - 16 through 25 (of 25 total)

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