rebond sur points pivots

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #60755 quote
    primo1
    Participant
    Average

    Bonjour,

     

    j’ai essayé de créer un screener avec des rebonds sur points pivots

     

    Je ne sais pas si mon code ne pourrait pas être amélioré

     
    Once dailyPivot = undefined
    Once dailyR1 = undefined
    Once dailyS1 = undefined
    Once dailyR2 = undefined
    Once dailyS2 = undefined
    Once dailyR3 = undefined
    Once dailyS3 = undefined
    
    If Day>Day[1] then
    If mode = 0 then
    dailyPivot = (DHigh(1) + DLow(1) + Close[1]) / 3
    Elsif mode = 1 then
    dailyPivot = (Open + DHigh(1) + DLow(1) + Close[1]) / 4
    Elsif mode = 2 then
    dailyPivot = (DHigh(1) + DLow(1) + Close[1]*2) / 4
    Else
    dailyPivot = (Open*2 + DHigh(1) + DLow(1)) / 4
    Endif
    dailyR1 = 2*dailyPivot - DLow(1)
    dailyS1 = 2*dailyPivot - DHigh(1)
    dailyR2 = dailyPivot + (DHigh(1) - DLow(1))
    dailyS2 = dailyPivot - (DHigh(1) - DLow(1))
    dailyR3 = dailyR1 + (DHigh(1) - DLow(1))
    dailyS3 = dailyS1 - (DHigh(1) - DLow(1))
    Endif
    
    if close>=(open-close)*5 then
    doji=1
    else
    doji=0
    
    endif
    if doji>=dailypivot then
    
    signal=1
    else
    signal=0
    endif
    if close>=(open-close)*5 then
    doji=1
    else
    doji=0
    
    endif
    if doji>=dailyR1 then
    
    signal=1
    else
    signal=0
    endif
    
    If close>=(open-close)*5 then
    doji=1
    else
    doji=0
    
    endif
    if doji>=dailyR2 then
    
    signal=1
    else
    signal=0
    endif
    If close>=(open-close)*5 then
    doji=1
    else
    doji=0
    
    endif
    if doji>=dailyR3 then
    
    signal=1
    else
    signal=0
    endif
    If close>=(open-close)*5 then
    doji=1
    else
    doji=0
    
    endif
    if doji>=dailyS1 then
    
    signal=1
    else
    signal=0
    
    endif
    If close>=(open-close)*5 then
    doji=1
    else
    doji=0
    
    endif
    if doji>=dailyS2 then
    
    signal=1
    else
    signal=0
    endif
    If close>=(open-close)*5 then
    doji=1
    else
    doji=0
    
    endif
    if doji>=dailyS3 then
    
    signal=1
    else
    signal=0
    endif
    
    SCREENER (SIGNAL)
    #60800 quote
    Nicolas
    Keymaster
    Master

    Une erreur récurrente pour un screener, c’est de mettre la condition à tester entre parenthèses, et c’est ce que tu as fait 🙂 Il faut la mettre entre crochets:

    SCREENER [SIGNAL]

     

    Sinon, je viens de retrouver ce code de screener pour la détection de rebonds sur les points pivots.

    #61345 quote
    primo1
    Participant
    Average

    merci beaucoup,

     

    je vais étudier la question

    #63691 quote
    iggy
    Participant
    New

    bonjour

     

    je recherche quelque chose de plus simple

    je souhaiterais juste avoir un screnners lorsque l on arrive a 1% du point pivot r3

    est ce qu il y a ca quelque part

     

    merci

    #63692 quote
    iggy
    Participant
    New

    r3 ou s3 pour etre plus precis

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

rebond sur points pivots


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
primo1 @primo1 Participant
Summary

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

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 01/28/2018
Status: Active
Attachments: No files
Logo Logo
Loading...