Position size limit per strategy

Forums ProRealTime English forum ProOrder support Position size limit per strategy

Viewing 2 posts - 1 through 2 (of 2 total)
  • #188723

    Hi there,

    Sorry if this is a repeated question.

     

    i am trying to find a code to limit the number of opened positions under one strategy. For example:

    Timeframe(4hours, updateonclose)

    a = close/1.01

    Timeframe(default)

    b = close

    if b < c then

    buy 2 contracts at the Market

     

    if i were to use the above on the 1 min chart on a daily basis, how to limit the number of opened positions to 2 per day if the criteria is met.

     

    thanks

    #188735

    There you go (not tested):

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

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