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

    20-200.jpg 20-200.jpg
    #6672 quote
    Nicolas
    Keymaster
    Legend

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

    #6697 quote
    supertiti
    Participant
    Master

    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.
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

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
10 years, 4 months ago.

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