Screener dans le passé, comment faire?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #171641 quote
    SeiferTraderSeiferTrader
    Participant
    Junior

    Bonjour,

     

    J’ai un screener que j’aimerai pouvoir lancer sur des dates spécifiques, mais j’ignore comment l’adapter.  J’imagine qu’il y a un moyen simple de le faire? Par exemple créer une variable Date=20210303 et ensuite l’appliquer à tous les indicateurs. Quelqu’un saurait-il comment dois-je m’y prendre?

     

    Voici mon sceener en l’état (qui scanne donc le “présent”)

    indicator1 = OBV(close)
    indicator2 = BollingerUp[20](indicator1)
    c1 = (indicator1 CROSSES OVER indicator2)
    
    indicator3 = ExponentialAverage[3](Stochastic[14,1](close))
    c2 = (indicator3 < 80)
    
    indicator4 = Average[200](close)
    c3 = (close > indicator4)
    
    indicator5 = WeightedAverage[144](close)
    c4 = (close > indicator5)
    
    VarVeille = ((close/DClose(1)-1)*100)
    c5 = (VarVeille > 1 )
    
    c6 = volume > 120000
    
    ignored, ignored, ignored, ignored, ignored, WaveTrendOscillator, ignored, ignored = CALL "Wave trend oscillator"
    c7 = (WaveTrendOscillator < 53)
    
    SCREENER[c1 AND c2 AND c3 AND c4 and c5 and c6 and c7 ] ((close/DClose(1)-1)*100 AS "% Veille")
    #171703 quote
    NicolasNicolas
    Keymaster
    Legend

    Il faudrait essayer en encapsulant l’ensemble dans une condition de Date:

    if date=20210303 then 
    indicator1 = OBV(close)
    indicator2 = BollingerUp[20](indicator1)
    c1 = (indicator1 CROSSES OVER indicator2)
    
    indicator3 = ExponentialAverage[3](Stochastic[14,1](close))
    c2 = (indicator3 < 80)
    
    indicator4 = Average[200](close)
    c3 = (close > indicator4)
    
    indicator5 = WeightedAverage[144](close)
    c4 = (close > indicator5)
    
    VarVeille = ((close/DClose(1)-1)*100)
    c5 = (VarVeille > 1 )
    
    c6 = volume > 120000
    
    ignored, ignored, ignored, ignored, ignored, WaveTrendOscillator, ignored, ignored = CALL "Wave trend oscillator"
    c7 = (WaveTrendOscillator < 53)
    endif
    
    SCREENER[c1 AND c2 AND c3 AND c4 and c5 and c6 and c7  ] ((close/DClose(1)-1)*100 AS "% Veille")
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

Screener dans le passé, comment faire?


ProScreener : Scanners de Marché & Détection

New Reply
Author
Summary

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

Topic Details
Forum: ProScreener : Scanners de Marché & Détection
Language: French
Started: 06/12/2021
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...