Creer un histogramme a partir d'un signal donné par un indicateur

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6657 quote
    jeanphi0034
    Participant
    Junior

    Bonjour

    Je recherche le moyen de representer un signal donné par un indicateur de façon tres visuelle.

    Sur ProRealTime, il y a de les histogrammes.

    Cela par exemple pourrait s’appliquer au croisement de moyenne mobiles.

    Par exemple si la moyenne 20 periode croise a la hausse la moyenne 200, c’est un signal d’achat et je souhaiterais afficher sous le graphe des prix une barre verte. De meme s’il y a croisement a la baise c’est une barre rouge que je souhaite afficher. Ainsi on peut profiter du coté tres visuel de prorealtime

    Merci de votre aide

    Jean Philippe

    #6672 quote
    Nicolas
    Keymaster
    Master

    Bonjour jeanphi, c’est plutôt très simple à réaliser. As-tu déjà des notions de programmation ?

    #6697 quote
    supertiti
    Participant
    Master

    20 200

    a = average [20](close)
    b = average [200](close)
    
    If a  CROSSES OVER  b then
     c = 1
    else
     c = 0
    endif
    
    If a CROSSES UNDER b then
     d = -1
    else
     d = 0
    endif
    
    Return c , d
    Nicolas thanked this post
    #6930 quote
    Sofitech
    Participant
    Master

    Pour un signal cela semble en effet assez simple.
    Et pour un code comme celui-ci, est-il possible de créer un histogramme (+1 / -1 vert / rouge) selon que la ligne de tendance est croissante ou décroissante ?

    Merci d’avance …

    if (CCI[50](typicalPrice)>=0) then
    magic=Low[0]-AverageTrueRange[5](close)
    endif

    if (CCI[50](typicalPrice)<0) then
    magic=High[0]+AverageTrueRange[5](close)
    endif

    if (CCI[50](typicalPrice)>=0 and magic<magic[1]) then
    magic=magic[1]
    endif

    if (CCI[50](typicalPrice)<0 and magic>magic[1]) then
    magic=magic[1]
    endif

    return magic

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

Creer un histogramme a partir d'un signal donné par un indicateur


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

This topic contains 3 replies,
has 4 voices, and was last updated by Sofitech
9 years, 8 months ago.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 05/10/2016
Status: Active
Attachments: No files
Logo Logo
Loading...