place perdu indicateur capé a 1

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #244994 quote
    maxlysmaxlys
    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)
    
    indic.jpg indic.jpg
    #244998 quote
    Iván GonzálezIván González
    Moderator
    Legend

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

    RETURN indicateur coloured(r,g,b)style(histogram), 0
    2025-03-18_10-39.png 2025-03-18_10-39.png
    #245001 quote
    maxlysmaxlys
    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.
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

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 maxlysmaxlys
1 year, 6 months ago.

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