Increasing a position size

Forums ProRealTime English forum ProOrder support Increasing a position size

Viewing 11 posts - 1 through 11 (of 11 total)
  • #213831

    Hi,

    I would need help on this one.

    I am testing a strategy with a trailing stop. When the trailing stop is active I want to increase the position size by buying one more contract.

    I am using the following code but backtests results are exactly the same whether I add it or not:

    I am using this version of trailing stop:

    Any idea on how to increasing the size of position while already on market?

    Thanks

    #213832

    Try …

     

    #213833

    It still does not work.

    By the way I apologise as I used your suggestion in first place. I wrote my post too fast.

    I am wondering if it is possible to increase the size of the position when already on market.

    #213834

    if it is possible to increase the size of the position when already on market.

    Yes as long as in the same direction as the existing position.
    I can’t see how my suggestion cannot work, but maybe we will both learn something when somebody tells us!? 😀

    #213835

    Thanks.

    I am sure I am screwing something obvious up but I cannot find out what.

    #213836

    Which of these are you using …

     

    1 user thanked author for this post.
    #213837

    False…

    I thought when set to true it only prevented concurrent orders, I did not know about this requirement to increase a position size.

    Time to sleep I guess.

    #213839

    So it’s working now as you want (as we expected) now you are using True?

    #213845

    Results are better but I need further investigation to ensure this is the expected outcome. I keep you posted.

    1 user thanked author for this post.
    #213953

    don’t forget if you want to increasing the size of position while already on market, you have to use PricePosition and not use TradePrice like on your code, you can see on this link a good example with explanation or Roberto

    1 user thanked author for this post.
    #214116

    Thanks, I will have a look.

    I also need to check the work you are doing on that Yen Strategy, it seems interesting. This Pro Builder/Order platform is so exciting, I cannot find enough time to explore all the gems available in the forum.

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

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