Anomalie dans résultats du screener

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #228652 quote
    Francis33Francis33
    Participant
    New

    Bonjour,

    J’ai fait un ProScreener pour trouver les sociétés qui ont gagné chaque année depuis 5 ans.

    J’ai utilisé l’aide à la programmation et dans la fenêtre on lit les bonnes indications  :

    close >= open (Annuel)

    close[1]>=open[1](Annuel]

    etc…

    Mais quand je lance le screener il donne les résultats faux, et en cherchant j’ai trouvé l’erreur : il calcule sur les 5 derniers jours et pas sur les 5 ans, et ceci quelle que soit l’unité de temps utilisée pour afficher le graphe.

    Le code généré est

    c1 = (close >= open)

    c2 = (close[1] >= open[1])

    c3 = (close[2] >= open[2])

    c4 = (close[3] >= open[3])

    c5 = (close[4] >= open[4])

    SCREENER[c1 AND c2 AND c3 AND c4 AND c5]

    Et on voit bien qu’il n’apparaît pas d’unité de temps dans ce code.

    Ma question n’est pas ” Comment modifier le code par programmation ? ” mais “Pourquoi le code lu dans la fenêtre d’aide, qui paraît correct,  ne donne pas un bon résultat ? “.

    Y-a-t-il une manipulation qui m’aurait échappé ?

    Merci pour vos explications

    #228659 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Essaye ça:

    timeframe(Yearly)
    c1 = (close >= open)
    c2 = (close[1] >= open[1])
    c3 = (close[2] >= open[2])
    c4 = (close[3] >= open[3])
    c5 = (close[4] >= open[4])
    c6 = low <> high
    timeframe(default)
    Cond = c1 AND c2 AND c3 AND c4 AND c5 AND c6
    SCREENER[Cond]
    #228660 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Vous pouvez aussi l’écrire ainsi, pour avoir les 5 dernières années en hausse :

    timeframe(Yearly)
    c1 = (summation[5](close >= open)) = 5
    c2 = low <> high
    timeframe(default)
    Cond = c1 AND c2
    SCREENER[Cond]
    #228661 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    La ligne 7, devenue plus tard la 3, ne sert qu’à ignorer les titres où il n’y a pas de mouvements.

    #228664 quote
    Francis33Francis33
    Participant
    New

    Bonjour,

    Un grand merci pour ces retours, les codes correspondent à ce que j’ai fait ensuite.

    Mais ça ne m’explique pas pourquoi le code généré par l’aide à la programmation donne un résultat faux.

    Encore merci à qui aura une idée sur la question

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

Anomalie dans résultats du screener


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
Francis33 @francis33 Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by Francis33Francis33
2 years, 7 months ago.

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