Position Size Management – Performance based increases

Viewing 2 posts - 31 through 32 (of 32 total)
  • Author
    Posts
  • #236875 quote
    dubbziedubbzie
    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
    JSJS
    Participant
    Master

    Floor(10.1) = 10

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Position Size Management – Performance based increases


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Maz @eqmaz Participant
Summary

This topic contains 31 replies,
has 5 voices, and was last updated by JSJS
2 years, 1 month ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 05/12/2017
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...