Boucle sans fin pour 3 lignes de codes

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #95758 quote
    PlayerPlayer
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    robertogozzirobertogozzi
    Moderator
    Legend

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

    #95768 quote
    PlayerPlayer
    Participant
    Average

    Bonjour Roberto,

    Ça marche nickel !

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

    Cordialement,

    Marc

    #95769 quote
    PlayerPlayer
    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.
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

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 PlayerPlayer
7 years, 6 months ago.

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