Risk Management Strategy with d’Alembert pyramid

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #152156 quote
    Oliviertrader2020
    Participant
    Average

    Hello,

    I want to test the risk management strategy called “Contra d’Alembert” on some of my algos.
    The strategy consists in adding one unit after each victory, and removing one after each defeat.
    Example of a series of 10 trades starting with 5 mini contracts

    1 winning trade (5minis contracts): I add one contract to my position size
    1 winning trade (6minis contracts): I add one contract to my position size
    1 losing trade (7minis contracts): I withdraw a contract at my position size
    1 losing trade (6minis contracts): I withdraw a contract at my position size
    1 winning trade (5minis contracts): I add one contract to my position size
    1 winning trade (6minis contracts): I add one contract to my position size
    1 winning trade (7minis contracts): I add one contract to my position size
    1 losing trade (8minis contracts): I withdraw a contract at my position size
    1 winning trade (7minis contracts): I add one contract to my position size
    1 winning trade (8minis contracts): I add one contract to my position size

    It would be a good idea to have a slider to limit the position size to x mini contracts to avoid having too many contracts in case of a good winning streak.

    Thank you for your help. 🙂

    #152158 quote
    robertogozzi
    Moderator
    Master

    There you go:

    ONCE iLots        = 1           //let's start with this number of lots
    ONCE MinLots      = 1           //minimum Lots to be traded (never fall below it)
    ONCE MaxLots      = 50          //maximum Lots to be traded (never exceed it)
    IF StrategyProfit > StrategyProfit[1] THEN
       iLots = min(MaxLots,iLots + 1) //winning trade
    ELSIF StrategyProfit < StrategyProfit[1] THEN
       iLots = max(MinLots,iLots - 1) //losing trade
    ENDIF

    iLOTS will retain the correct number of lots to be traded.

    Oliviertrader2020 thanked this post
    #152160 quote
    robertogozzi
    Moderator
    Master

    This looks more gambling than trading, though!

    #152182 quote
    Nicolas
    Keymaster
    Master

    The “d’Alembert pyramid” contract size calculation is also available in the ProOrder PDF manual, page 71: https://www.prorealtime.com/en/pdf/probacktest.pdf

    Oliviertrader2020 thanked this post
    #152183 quote
    Nicolas
    Keymaster
    Master

    I modified the Roberto’s code as LOTS is a reserved keyword (changed with iLOTS).

    robertogozzi and Oliviertrader2020 thanked this post
    #152191 quote
    nonetheless
    Participant
    Master

    With respect, this seems a rather coarse way of doing money management. A win might be 40€ and a loss might be 400€, but your reaction is the same in each case?

    Try a quick search for money management code – there’s lots of more sophisticated ways of doing it.

    Oliviertrader2020 thanked this post
    #152264 quote
    Oliviertrader2020
    Participant
    Average

    Thank you for your help @robertogozzi.:-) You are right, this type of risk management is more like gambling than investing. This is also why I noticed that the objective was only testing and only testing with different strategies. And eventually, I say eventually apply it on a small part of the capital.

    #152266 quote
    Oliviertrader2020
    Participant
    Average

    Thank you for your recommendation @nonetheless.
    Having said that, I don’t see where the problem is with testing, as indicated in my message.

    Lose 400€ and win 40€?If, as I suggest, you use a limit to the number of contracts, and you have the intelligence to test with setups that have close stop losses, I don’t see how you can make such a difference.

    By trading with the same number of lots in each trade, you can also have losses of €400 if you take a trade with SLs 10 times larger from one trade to the next. Having a setup that provides trades of 20/25pts, and with the added security of a max lot size, a security stop loss at x point/€ and a system stop before the market closes, I don’t understand how you can have such a big difference. I think you’re confusing it with a martingale, a type of system that I disapprove of as much as you do.

    I understand that the title “Risk Management Strategy with d’Alembert pyramid” may mislead people who have not made the effort to read the message. This is why I clearly indicated in my message that it was a Risk Management Strategy based on the “CONTRA d’Alembert”. The “d’Alembert Contra” or “Paroli” risk Management strategy are systems where you increase your investments after gains and reduce them after losses. The goal is to minimize the bad series and optimize the good ones.

    Larry Williams won the 1987 world championship with a similar system that allowed him to transform a $10,000 account into a $1 million capital.

    Of course this type of management is not necessarily applied to all his capital. But I don’t see what’s grotesque about using this type of management on 1 or 2% of the capital by boosting the return on already profitable strategies.

    Sorry if there are errors in this message, English is not my mother tongue. I wish you all a good evening and good trades.

    #152273 quote
    nonetheless
    Participant
    Master

    No, certainly not grotesque and by all means, run some tests. I am all in favour of altering position size up and down, I just think it should be proportional to the size of the win or loss. In that respect, the d’Alembert seems unrefined, that’s all.

    Do let us know how you get on.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.

Risk Management Strategy with d’Alembert pyramid


ProOrder: Automated Strategies & Backtesting

New Reply
Summary

This topic contains 8 replies,
has 4 voices, and was last updated by nonetheless
5 years, 2 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 11/30/2020
Status: Active
Attachments: No files
Logo Logo
Loading...