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.