Pourquoi j'ai plusieurs signaux?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #121614 quote
    stephane2.0stephane2.0
    Participant
    Junior

    Bonjour,

    J’ai voulu faire un indicateur tout simple: une flèche hausse pour rsi > 50 et ema1 > ema2 et une flèche baisse pour rsi < 50 et ema1 < ema2.

     

    Soit :

    a= RSI[14](close)
    b= ExponentialAverage[20](close)
    c= ExponentialAverage[50](close)
    d= averagetruerange[10](close)
    
    
    if a>50 and b>c then
    DRAWARROWDOWN(barindex[1],high[1]+d/2)coloured(255,10,10)
    
    elsif a<50 and b<c then
    DRAWARROWUP(barindex[1],low[1]-d/2)coloured(10,255,10)
    endif
    
    return

    Mais voilà ce que j’obtiens:

    PRT.png PRT.png
    #121616 quote
    stephane2.0stephane2.0
    Participant
    Junior

    Merci de m’expliquer comment attraper le poisson, pas de le pêcher pour moi.

    #121617 quote
    fifi743fifi743
    Participant
    Master

    normal

    a la place de plus petit ou plus grand mais

    crosses over  ou crosses under

    exemple

    b crosses over c

    #121631 quote
    NicolasNicolas
    Keymaster
    Legend

    C’est normal car cette condition par exemple : a>50 and b>c se vérifie sur tous ces chandeliers 😉

    Si tu veux avoir qu’une seule flèche, marque un événement qui n’a lieu qu’une seule fois (voir exemple de fifi).

    fifi743 thanked this post
    #121767 quote
    stephane2.0stephane2.0
    Participant
    Junior

    OK c’est bon! Merci beaucoup.

     

    Je poste d’ici la fin de la semaine.

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

Pourquoi j'ai plusieurs signaux?


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by stephane2.0stephane2.0
6 years, 6 months ago.

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