Max Positions per strategy in multi-strategy code

Forums ProRealTime English forum ProOrder support Max Positions per strategy in multi-strategy code

Viewing 3 posts - 1 through 3 (of 3 total)
  • #171789

    Hi,

    I have a multi-strat piece of code that runs a few different strategies in one, looking at the formation of three candle patterns.  I want the multi strategy to allow 1 position per each of the three different candle patterns within the overall multi-strat code.  Is there a way to limit the max number of positions per candle pattern strategy within the code please?

    I have obviously tried tweaking the DEFPARAM CUMULATEORDERS but this applies to the whole multi-strat.

    Thank you very much

    #171793

    With reference to my post https://www.prorealcode.com/topic/multiple-strategies-within-one-trading-system/, you can achieve your goal with this modified version. I only coded strategy #2, but you need to apply the same logic to strategy #1 and #3:

    #171801

    Grazie mille! That worked perfectly, super happy.

Viewing 3 posts - 1 through 3 (of 3 total)

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