resultat screener incorect

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #166857 quote
    Roland57800
    Participant
    Veteran

    Bonjour

    J’ai écris un petit code tout simple pour trier sur le FOREX le croisement

    de SUPERTREND par la close à la hausse.

    9 paires dans la liste, et il me restitue la totalité alors que ce n’est pas le cas.

    Quelque chose m’échappe pour obtenir le bon résultat

    // VARIABLES GÉNÉRALES
    ST = supertrend[3.0,10]
    // FIN DES VARIABLES
    
    
    
    IF close crosses over ST  THEN
    signal = 1
    
    ENDIF
    
    
    
    
    SCREENER [ SIGNAL ]

    Merci pour votre aide

    Cordialement

    #166858 quote
    Nicolas
    Keymaster
    Legend

    En effet, j’ai le même problème, et il y a un autre sujet qui en parle, je vais me renseigner immédiatement.

    #166859 quote
    Nicolas
    Keymaster
    Legend

    Je dis une bêtise, le code n’est pas correct, tu ne réinitialises jamais ta variable signal ! donc tu récupères des signaux qui peuvent date de très longtemps ! voici le code corrigé :

    // VARIABLES GÉNÉRALES
    ST = supertrend[3,10]
    // FIN DES VARIABLES
    
    signal=0
    IF close crosses over ST  THEN
    signal = 1
    ENDIF
    
    SCREENER [ SIGNAL ]
    #166867 quote
    Roland57800
    Participant
    Veteran

    Quand les choses simples t’échappent

    Je viens de tester

    C’est OK

    Merci Nicolas

    Bonne soirée

    Cordialement

Viewing 4 posts - 1 through 4 (of 4 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

resultat screener incorect


ProScreener : Scanners de Marché & Détection

New Reply
Author
Summary

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

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