Creation screener a partir d’un indicateur

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #194999 quote
    maxlys
    Participant
    Senior

    Bonjour à tous,

    je n’arrive pas a creer un screener a l’aide du code de mon indicateur ci dessous, soit en faisant un call de celui ci ou en réutilisant le code.

    J’aimerais que le screenr que retourne les valaurs pour lesquelles la premier bougie “verte/hausse” vient d’apparaitre en cloture
    et inversement un autre avec la premiere bougie “rouge/baisse” en cloture

    pourriez vous m’indiquer comment coder cela ?

    merci à vous

    indicator1 = RSI[7](close)
    indicator2 = StochasticD[14,3,3](close)
    indicator3 = MACDline[12,26,9](close)
    indicator4 = MACDSignal[12,26,9](close)
    
    //HAUSSE
    c1 = (indicator1 > 50)
    c2 = (indicator2 > 50)
    c3 = (indicator3 > indicator4)
     
    //BAISSE
    c4 = (indicator1 < 50)
    c5 = (indicator2 < 50)
    c6 = (indicator3 < indicator4)
     
    //NEUTRE
    // UNE SEULE DES CONDITIONS DE HAUSSE ou BAISSE n'est pas OK
     
     
    if c1 and c2 and c3 Then
    DRAWCANDLE(open, high, low, close)COLOURED(0,255,0)//vert
    colour=1
    elsif c4 and c5 and c6 then
    DRAWCANDLE(open, high, low, close)COLOURED(255,0,0)//rouge
    colour=2
    else
    DRAWCANDLE(open, high, low, close)coloured(0,0,0)//noir
    colour=3
    endif
     
    RETURN
    #195003 quote
    JC_Bywan
    Moderator
    Master

    Bonsoir,

    A tester pour “verte/hausse”:

    indicator1 = RSI[7](close)
    indicator2 = StochasticD[14,3,3](close)
    indicator3 = MACDline[12,26,9](close)
    indicator4 = MACDSignal[12,26,9](close)
    
    //HAUSSE
    c1 = (indicator1 > 50)
    c2 = (indicator2 > 50)
    c3 = (indicator3 > indicator4)
    
    cup= c1 and c2 and c3
    
    cvert= not cup[1] and cup
    
    screener[cvert]

    A tester pour “rouge/baisse”:

    indicator1 = RSI[7](close)
    indicator2 = StochasticD[14,3,3](close)
    indicator3 = MACDline[12,26,9](close)
    indicator4 = MACDSignal[12,26,9](close)
    
    //BAISSE
    c4 = (indicator1 < 50)
    c5 = (indicator2 < 50)
    c6 = (indicator3 < indicator4)
    
    cdown= c4 and c5 and c6
    
    crouge= not cdown[1] and cdown
    
    screener[crouge]
    #195109 quote
    maxlys
    Participant
    Senior

    Bonsoir

     

    merci JC_Bywan pour le retour.

    J’ai testé que la version “hausse”, mis cela me sort des actions ayant déjà plusieurs bougies verte, voire une noire, ou une rouge, quelques une respectant le critère seulement.

    J’ai testé en journalier sur mon PRT temps réel mais aussi sur PRT fin de journée et le problème est le même

    Auriez vous une idée pour ce dysfonctionnement ?

     

    Afin de filtrer plus les actions j’ai ajouté une condition c4 = Volume > 1000 et là cela accentue la sortie d’action avec déjà plusieurs bougies verte

     

    merci

    A.png A.png B.png B.png C.png C.png
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Creation screener a partir d’un indicateur


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
maxlys @maxlys Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by maxlys
3 years, 8 months ago.

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 06/09/2022
Status: Active
Attachments: 3 files
Logo Logo
Loading...