Erreur codage dans screener au niveau quaterly (3month)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #233061 quote
    alberto97400alberto97400
    Participant
    New

    Bonjour à tous,

    Suis bloqué dans PRT V12 au niveau de TIMEFRAME(quaterly), à l’origine il y avait (3month) idem, la requête ne s’execute pas, merci de vos retours…

    TIMEFRAME(yearly)

    if close>=open then
    p1=1
    else
    p1=0
    endif

    if close<open then
    p2=1
    else
    p2=0
    endif

    TIMEFRAME(quaterly)

    if close>=open then
    p3=0.8
    else
    p3=0
    endif

    if close<open then
    p4=0.8
    else
    p4=0
    endif

    TIMEFRAME(monthly)

    if close>=open then
    p5=0.6
    else
    p5=0
    endif

    if close<open then
    p6=0.6
    else
    p6=0
    endif

    TIMEFRAME(DEFAULT)
    r=0

    return p1 coloured(0,255,0),p2 coloured(255,0,0),p3 coloured(0,255,0),p4 coloured(255,0,0),p5 coloured(0,255,0),p6 coloured(255,0,0),r

    #233062 quote
    alberto97400alberto97400
    Participant
    New

    Bonjour à tous,

    Suis bloqué dans PRT V12 au niveau de la dernière ligne return, la requête ne s’exécute pas, merci de vos retours… Le message est “Ligne 1 : Caractères manquants, Suggestions : fin de code”

    TIMEFRAME(yearly)

    if close>=open then

    p1=1

    else

    p1=0

    endif

    if close<open then

    p2=1

    else

    p2=0

    endif

    TIMEFRAME(quaterly)

    if close>=open then

    p3=0.8

    else

    p3=0

    endif

    if close<open then

    p4=0.8

    else

    p4=0

    endif

    TIMEFRAME(monthly)

    if close>=open then

    p5=0.6

    else

    p5=0

    endif

    if close<open then

    p6=0.6

    else

    p6=0

    endif

    TIMEFRAME(DEFAULT)

    r=0

    return p1 coloured(0,255,0),p2 coloured(255,0,0),p3 coloured(0,255,0),p4 coloured(255,0,0),p5 coloured(0,255,0),p6 coloured(255,0,0),r

    Fin.jpg Fin.jpg
    #233064 quote
    alberto97400alberto97400
    Participant
    New
    #233065 quote
    drubydruby
    Participant
    Junior

    Bonjour, je n’utilise pas le SCREENER. Une ligne de fin de SCREENER est différente d’un INDICATOR qui utilise RETURN. Je ne sais pas si cela vous donnera le bon résultat.

    https://assets.prorealtime.com/pdfs/en/proscreener.c4d31fd3.pdf

     

    // sample screener code
    TIMEFRAME(yearly)
    
    if close>=open then
    p1=1
    else
    p1=0
    endif
    
    if close<open then
    p2=1
    else
    p2=0
    endif
    
    TIMEFRAME(quarterly)
    
    if close>=open then
    p3=0.8
    else
    p3=0
    endif
    
    if close<open then
    p4=0.8
    else
    p4=0
    endif
    
    TIMEFRAME(monthly)
    
    if close>=open then
    p5=0.6
    else
    p5=0
    endif
    
    if close<open then
    p6=0.6
    else
    p6=0
    endif
    
    //TIMEFRAME(DEFAULT)
    //r=0
    p = p1 and p2 and p3 and p4 and p5 and p6
    SCREENER(p as "p" )
    #233194 quote
    Iván GonzálezIván González
    Moderator
    Legend

    timeframe(quarterly) Il a été créé pour le screener au début (ça marche). Dans probuilder cela devrait aussi fonctionner mais il semble que non… J'ai demandé à l'équipe technique de le corriger.

    #233318 quote
    alberto97400alberto97400
    Participant
    New

    Merci pour vos retours, je teste alors…

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

Erreur codage dans screener au niveau quaterly (3month)


ProScreener : Scanners de Marché & Détection

New Reply
Author
Summary

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

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