Quantités avec décimales

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15739 quote
    SteftonioSteftonio
    Participant
    Veteran

    Bonjour,

    je souhaiterais savoir s’il est possible de programmer un système avec des ordres avec des décimales du type :

    // TAILLE DES POSITIONS
    REINV = 0
    levier = 1.25

    IF REINV = 0 THEN
    n = levier // pas de réinvestissement
    ENDIF

    BUY n lots AT…..

     

    Quand je backteste ou lorsque j’exécute le programme; il ressort toujours 1 et non 1.25.

    Quelqu’un peut-il m’ider à ce sujet?

    Merci

    #15889 quote
    NicolasNicolas
    Keymaster
    Legend

    En effet, les lots à décimales ne sont pas acceptés par le protocole qui lie la plateforme au courtier (IG). Les lots seront toujours arrondis.

Viewing 2 posts - 1 through 2 (of 2 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

Quantités avec décimales


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Steftonio @steftonio Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
9 years, 11 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 10/31/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...