Affichage pourcentage tendance haussière

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #98836 quote
    Rolanbay
    Participant
    Average

    Sur la base de cet indicateur de Nicolas, je cherche à coder l’affichage du pourcentage (ou des %) à chaque breakout sur mon graphique en tendance haussière.

    AP1 = 5 //”fast ATR period”,integer) // ATR Period
    AF1 = 0.5 //”fast ATR multiplier”,float) // ATR Factor
    // Slow Trail //
    AP2 = 10 //”slow ATR perod”,integer) // ATR Period
    AF2 = 2 // “slow ATR multiplier”,float) // ATR Factor
    // — end of settings

    SC = customclose
    SL1 = AF1*AverageTrueRange[AP1] // Stop Loss
    once trail1=sc-sl1

    if sc>trail1[1] and sc[1]>trail1[1] then
    trail1 = max(trail1[1],sc-sl1)
    else
    if sc<trail1[1] and sc[1]<trail1[1] then
    trail1=min(trail1[1],sc+sl1)
    else
    if sc>trail1[1] then
    trail1=sc-sl1
    else
    trail1=sc+sl1
    endif
    endif
    endif

    #98954 quote
    Nicolas
    Keymaster
    Master

    > Pour la clarté des messages sur les forums de ProRealCode, merci d’utiliser le bouton “insert PRT code” pour séparer la partie texte de la partie code, merci ! <<

    Le pourcentage calculé à partir de quoi svp ? Une image vaut mieux qu’un long discours ! 😉

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

Affichage pourcentage tendance haussière


Support ProBuilder

New Reply
Author
author-avatar
Rolanbay @rolanbay Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
6 years, 8 months ago.

Topic Details
Forum: Support ProBuilder
Language: French
Started: 05/19/2019
Status: Active
Attachments: No files
Logo Logo
Loading...