place perdu indicateur capé a 1

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #244994 quote
    maxlys
    Participant
    Senior

    Bonjour,

    lorsque je place mon indicateur en bas des prix, il est capé a 1 et au dessus il laisse de la place disponible, ce qui fait perdre de la place d’affichage. (voir photo jointe)

    Comment remédier a cela dans le code ?

    merci

    //Indicateur tendance
    MM50=average[50](close)
    MM200=average[200](close)
    
    C1 =(Close > MM50) and (MM50 > MM200)
    If c1 then
    Indicateur=1
    R= 0
    G= 150
    B= 0
    Endif
    
    C2 =(MM50>Close) and (Close > MM200)
    If c2 then
    Indicateur=1
    R= 800
    G= 250
    B= 0
    Endif
    
    C3 =(MM50 > MM200)  and (MM200>Close)
    If c3 then
    Indicateur=1
    R= 253
    G= 108
    B= 158
    Endif
    
    C4 =(MM200 > MM50)  and (MM50>Close)
    If c4 then
    Indicateur=1
    R= 255
    G= 0
    B= 0
    Endif
    //Recovery : SMA 200D > Cours > SMA 50D   Bleu
    C5 =(MM200 > close)  and (close>MM50)
    If c5 then
    Indicateur=1
    R= 0
    G= 0
    B= 255
    Endif
    
    C6 =(close > MM200)  and (MM200>MM50)
    If c6 then
    Indicateur=1
    R= 102
    G= 0
    B= 153
    Endif
    RETURN indicateur coloured(r,g,b)style(histogram)
    
    #244998 quote
    Iván González
    Moderator
    Master

    Bonjour!. Mettez ceci sur la dernière ligne :

    RETURN indicateur coloured(r,g,b)style(histogram), 0
    #245001 quote
    maxlys
    Participant
    Senior

    Merci pour la réponse, cela fonctionne.

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

place perdu indicateur capé a 1


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
maxlys @maxlys Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by maxlys
10 months, 3 weeks ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 03/18/2025
Status: Active
Attachments: 2 files
Logo Logo
Loading...