variable positionsizing

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

    As we all know, while submitting a strategy to pro order, we have to tell the system how many contracts the strategy will trade;

    is there a way to escape this field and have a variable positionsize depending on the code of the strategy?

    Regards, Jerke

     

    #17934

    Yes and this is exactly what this code do:

    money management code for prorealtime

    It is a simple money management code that calculate your lot size according to your risk, defined by the variable “risk”.

    #17949

    Thnx for your answer Nicolas,

    this code is already similar to what I do;

    however, then I submit my strategy to pro order, and I’m just wondering how pro order reacts to this field in the final screen:

     

    <max. positionsize> …

    ?  if I enter 3, then the strategy will be allowed to choose positionsize=1 or positionsize=2  or even 3 but not >3 depending on the code-instructions ?

    is this the way it works?

    Regards, Jerke

     

     

    #17968

    Yes that is how it works. It helps people to avoid position sizing mistakes in their codes.

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