Affichage pourcentage tendance haussière

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #98836 quote
    RolanbayRolanbay
    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
    NicolasNicolas
    Keymaster
    Legend

    > 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.
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

Affichage pourcentage tendance haussière


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Rolanbay @rolanbay Participant
Summary

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

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