Max number of trades in a period

Forums ProRealTime English forum ProOrder support Max number of trades in a period

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

    hi there,

    i am trying to figure out how to have a rule that limits the number of trades in a given time period, e.g. maximum number of trades in each new month, or week, or day is one?

    i have the rule that limits mulitple trades DEFPARAM CumulateOrders = False, that is useful to avoid duplicate trades / orders simultaneously – however this does not help once a trade is stopped out or hits profit, then new orders are placed in the same tim period which i am hoping to eliminate!

    is there any way to acheive this in PRT? Thanks in advance 🙂

     

    #176779

    You can use this (not tested):

    it defaults to a weekly reset, but you can comment out/uncomment the desired lines to easily switch to Daily, Monthly or Yearly reset.

     

    1 user thanked author for this post.
    #176829

    Thanks Roberto I will try it !

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