zone de couleur

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #222493 quote
    Mprorealcode
    Participant
    Average

    Bonjour,

    Je ne parviens pas à trouver dans la documentation comment programmer une “zone de couleur”.

    l’intérieur d’un rectangle par exemple ou entre 2 moyennes mobile.

    #222494 quote
    Nicolas
    Keymaster
    Master

    Pour colorier entre 2 valeurs, on utilise COLORBETWEEN

    Pour colorier un rectangle, voici un exemple v12 avec COLOURED et BORDERCOLOR:

    defparam DRAWONLASTBARONLY = true 
    
    if barindex>10 then 
     lowbar = max(1,lowestBars[10])
     highbar = max(1,highestBars[10])
    
     drawrectangle(barindex[lowbar] ,lowest[10] ,barindex[highbar],highest[10] ) coloured("crimson",50) bordercolor("orchid",200) style(dottedline4,3)
    endif 
    
    return
    
    drawrectangle-fill-color.png drawrectangle-fill-color.png
    #222498 quote
    Mprorealcode
    Participant
    Average

    Merci pour votre réactivité.

    Je n’ai pas eu le temps d’éditer mon message.
    votre ligne 1 est ce qu’il me manquait pour l’utilisation de colorbetween

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

zone de couleur


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Mprorealcode
2 years, 4 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 10/16/2023
Status: Active
Attachments: 1 files
Logo Logo
Loading...