Tout réinvestir dans PROBACKTEST ?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #232343 quote
    cdimicolicdimicoli
    Participant
    New

     

    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 quote
    Iván GonzálezIván González
    Moderator
    Legend

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

    #232394 quote
    cdimicolicdimicoli
    Participant
    New

    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 quote
    Iván GonzálezIván González
    Moderator
    Legend

    Non…

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

Tout réinvestir dans PROBACKTEST ?


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
cdimicoli @cdimicoli Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by Iván GonzálezIván González
2 years, 4 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 05/05/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...