Money management help with step size of lot increasing

Forums ProRealTime English forum ProOrder support Money management help with step size of lot increasing

Viewing 4 posts - 1 through 4 (of 4 total)
  • #105352

    Hi,

    I’m new to this and I’m having trouble to make this money management code for my system to work the way I want it to.

    I found a nice code with fixed fraction that  member Despair hade posted some time ago:

    The code works exactly the way i want it to, however I want the system to start at 3 contracts instead of 1. But when I try to raise my startPositionSize to 3.. every time I make profits/losses it increases/decreases the next positionsize by 3 instead of 1.

    e.g. 3, 6, 9, 12, 9 , 12, 15 etc.

    I want it to start with 3 contracts and then increase/decrease positionsize by only 1 contract steps at the time based on profits/losses.

    e.g. 3, 4, 5, 6, 5, 4,

    If someone can help me with this I would be very grateful!

    #105354

    We need to create a new variable named “step” at the beginning of the code:

    That should work, I have not tested it, please do 😉

    1 user thanked author for this post.
    #105363

    Thx alot Nicolas! 😀

    Works better!

    However, the first time when it’s suppose to increase the contractssize from 3 to 4, it starts over from 2 contracts and then works it’s way up from that point one step at the time.

    E.g. I start my backtest with 3 contracts as the startingpoint, everything works fine. But then when I have reached my first strategyprofit step (profit), it goes down to 2 contracts, when I actually would like it to go up to 4 contracts.

    Do you know how to solve this last piece of the puzzle? 🙂

     

    #105367

    Hmm.. if you only want to increase/decrease your lot size according of when you loose or win, that code is not really appropriate!

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

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