Boucle sans fin pour 3 lignes de codes

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

    Bonjour,

    Je code un Screener qui recherche quand le SAR est en dessous du prix

    IdcSAR=SAR[0.02,0.02,0.2]
    
    Position=1
    While Not(IdcSAR[Position]<High[Position]) Do
    Position=Position+1
    Wend
    Screener
    

    Le problème c’est que Proscreener me dit que l’offset est négatif ou trop élevé alors que mon Offset commence à 1 et que la condition devrait être vraie bien avant les 300 barres maximums.

    Je vois pas où est l’erreur. Si quelqu’un avait une idée..

    Merci par avance

    Cordialement,

    Marc

    Erreur.png Erreur.png
    #95765 quote
    robertogozzi
    Moderator
    Master

    Essayez ceci:

    IdcSAR=SAR[0.02,0.02,0.2]
     
    Position=1
    While Not(IdcSAR[Position]<High[Position]) Do
       Position=Position+1
       If Position > 254 then
          Break
       Endif
    Wend
    Screener
    #95767 quote
    robertogozzi
    Moderator
    Master

    Avez-vous pas spécifié une condition pour SCREENER?

    #95768 quote
    Player
    Participant
    Average

    Bonjour Roberto,

    Ça marche nickel !

    Merci à toi et merci pour ta réponse rapide.

    Cordialement,

    Marc

    #95769 quote
    Player
    Participant
    Average

    Oups désolé, Roberto j’avais pas vu la question pour la Condition pour le Screener.

    En fait j’en ai bien une mais comme mon code ne fonctionnait pas je l’ai enlevée pensant que ma condition était peut être à l’origine de mon problème.

    Encore merci.

     

    Marc

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

Boucle sans fin pour 3 lignes de codes


ProScreener : Scanners de Marché & Détection

New Reply
Author
author-avatar
Player @player Participant
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by Player
6 years, 11 months ago.

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