Position Size Management – Performance based increases

Viewing 2 posts - 31 through 32 (of 32 total)
  • Author
    Posts
  • #236875 quote
    dubbzie
    Participant
    New

    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 quote
    JS
    Participant
    Senior

    Floor(10.1) = 10

Viewing 2 posts - 31 through 32 (of 32 total)
  • You must be logged in to reply to this topic.

Position Size Management – Performance based increases


ProOrder support

New Reply
Author
author-avatar
Maz @eqmaz Participant
Summary

This topic contains 31 replies,
has 5 voices, and was last updated by JS
1 year, 5 months ago.

Topic Details
Forum: ProOrder support
Language: English
Started: 05/12/2017
Status: Active
Attachments: 2 files
Logo Logo
Loading...