Création d'un indicateur à partir d'un screener

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8538 quote
    SofitechSofitech
    Participant
    Master

    Bonjour,
    J’utilise ce code de screener en MTF (c’est l’intérêt du Screener). J’aimerais le transformer en indicateur de type histogramme. Comme il y a un compte, il faudrait un histogramme avec différents niveaux positifs et négatifs… Comment faire ? Voici le code screener :

    TIMEFRAME(Daily)
    Flame = WilderAverage[6](Close)
    Spine = WilderAverage[240](Close)
    
    IF (Flame > Flame[1]) THEN
    Count = Count + 1
    ELSIF (Flame < Flame[1]) THEN
    Count = Count - 1
    ENDIF
    
    IF (Close > Flame) THEN
    Count = Count + 1
    ELSIF (Close < Flame) THEN
    Count = Count - 1
    ENDIF
    
    IF (Spine > Spine[1]) THEN
    Count = Count + 1
    ELSIF (Spine < Spine[1]) THEN
    Count = Count - 1
    ENDIF
    
    IF (Close > Spine) THEN
    Count = Count + 1
    ELSIF (Close < Spine) THEN
    Count = Count - 1
    ENDIF
    
    //-------------------- Direction --------------------
    IF Close > Open THEN
    Count = Count + 1
    ELSIF Close < Open THEN
    Count = Count - 1
    ENDIF
    
    //-------------------- Control --------------------
    IF Close > ((High[1] + Low[1] + Close[1]) / 3) THEN
    Count = Count + 1
    ELSIF Close < ((High[1] + Low[1] + Close[1]) / 3) THEN
    Count = Count - 1
    ENDIF
    
    ScreenOK = (Count <> 0)
    
    SCREENER[ScreenOK]Sort by Count
    
    #8552 quote
    DoctradingDoctrading
    Participant
    Master

    Bonjour,

    De façon générale, pour transformer un screener en indicateur, il faut mettre “RETURN” à la place de “SCREENER”, comme suit :

    RETURN Count as "Count"

    Après, il faut paramétrer l’affichage de l’indicateur “Count” en histogramme. Il prendra donc la valeur +1 ou -1, tu peux même changer la couleur en fonction.

    Je n’ai pas testé ton code, mais à priori ça doit fonctionner.

    Bien cordialement,

Viewing 2 posts - 1 through 2 (of 2 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 d'un indicateur à partir d'un screener


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Sofitech @sofitech Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by DoctradingDoctrading
10 years, 3 months ago.

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