Position Size Management – Performance based increases

Forums ProRealTime English forum ProOrder support Position Size Management – Performance based increases

  • This topic has 31 replies, 5 voices, and was last updated 2 months ago by avatarJS.
Viewing 2 posts - 31 through 32 (of 32 total)
  • #236875

    Hi everyone,

    I’ve created a quite aggressive code to change the number of contracts depending on the strategy’s profit. I’m using “multiplier=multiplier+(Strategyprofit/fraction)” to calculate the number of contracts for the next position. Problem: The number of contracts comes with decimals, I want to round down to the nearest whole contract, e.g., 10.1 to 10. I’ve tried using “ROUNDEDDOWN” as mentioned in the Programming Guide, but I can’t get it to work. Does anyone have suggestions for code to round down to the nearest whole number of contracts? Thanks in advance.

    #236879
    JS

    Floor(10.1) = 10

Viewing 2 posts - 31 through 32 (of 32 total)

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