Création indicateur de tendance

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #121571 quote
    FozzieFozzie
    Participant
    Junior

    Bonjour,

    Je souhaite créer un indicateur de tendance avec les moyennes mobiles 20 et 50. Simple soit c’est vert ou rouge. Je débute.

    Fond couleur MM (20 50)

    mm20=Average[20](close)
    mm50=Average[50](close)
    Condition1=mm20>mm50[1]
    
    return condition1 style (histogram)

    J’arrive à obtenir les barres  vertes, mais je bloque sur les rouges.

    Il faut peut être que j’indique une autre condition pour avoir les barres rouges ? Bref, je nage complètement.

    Merci, par avance, pour vos lumières.

    Bonne semaine sur les marchés.

    #121582 quote
    fifi743fifi743
    Participant
    Master

    bonjour,

    un truc comme ça

    mm20=Average[20](close)
    mm50=Average[50](close)
    L=1
    if mm20>MM50 then
    
    r = 0
    v = 102
    b = 0
    elsif mm20<MM50 then
    R = 204
    V = 0
    b = 51
    endif
    return L coloured(R,V,B) style (histogram)
    Fozzie and Nicolas thanked this post
    #121593 quote
    FozzieFozzie
    Participant
    Junior

    Merci beaucoup, pour le code, ça fonctionne, il ne me reste plus qu’à le comprendre.

    Merci encore.

    #121608 quote
    fifi743fifi743
    Participant
    Master

    pour t’expliquer :

    apres la condition du donne des valeurs a

    r =

    v =

    b =

    c’est pour la couleur

    L  en haut donne la hauteur de l’histogramme

    tu peux avoir plusieurs hauteur et même des histogrammes negatif

    et voila

    #121626 quote
    FozzieFozzie
    Participant
    Junior

    Merci pour les explications, c’est bien ce qui me semblait.

Viewing 5 posts - 1 through 5 (of 5 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

Création indicateur de tendance


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Fozzie @fozzie Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 03/09/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...