Tout réinvestir dans PROBACKTEST ?

Forums ProRealTime forum Français Support ProBuilder Tout réinvestir dans PROBACKTEST ?

  • This topic has 3 replies, 2 voices, and was last updated 1 week ago by avatarIván.
Viewing 4 posts - 1 through 4 (of 4 total)
  • #232343

     

    Bonjour,

    Dans PROBACKTEST voici un exemple de code que j’aimerais modifier pour réinvestir tout le capital dont les gains à chaque trade. Comment faire ? Merci

    DEFPARAM CumulateOrders=False
    DEFPARAM NoCashUpdate=False
    DEFPARAM Preloadbars = 10000

    Solde = 150000

    IF MONTH <> MONTH[2] AND MONTH = MONTH[1] THEN

    IF average[200](close) > 0 THEN

    IF close[1] >= average[200](close) THEN

    BUY Solde CASH AT MARKET

    ELSE

    SELL AT MARKET

    ENDIF

    ENDIF

    ENDIF

    #232366

    vous pouvez utiliser cette expression : BUY Solde+STRATEGYPROFIT cash at MARKET

    #232394

    Nickel ! Merci !

    Y-a-t-il un moyen au lieu d’un solde fixe de faire référence au montant du capital initial indiqué par l’utilisateur dans les paramètres standard hors du code ?

    #232396

    Non…

Viewing 4 posts - 1 through 4 (of 4 total)

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