Screener ProRealTime : ajouter SMA 20 au code existant

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #259686 quote
    HUGO LEVIEILSHUGO LEVIEILS
    Participant
    Senior

    Bonjour,

    Quelqu’un peu rajouter le sma 20 a ce code ?

    merci d’avance 🙏


    // — ProScreener “Fernanda” Setup —

     

    // 1. Indicator Definitions

    ma7 = Average[7](close)

    tenkanLine = TenkanSen[9,26,52]

     

    // 2. Condition: Price above MA7 and Tenkan-sen

    priceCondition = close > ma7 AND close > tenkanLine

     

    // 3. Condition: MA7 must be ascending

    maAscending = ma7 > ma7[1]

     

    // 4. Combine all filters

    finalCondition = priceCondition AND maAscending

     

    SCREENER[finalCondition] (roc[1](close) AS “Variation %”)

    #259690 quote
    JC_BywanJC_Bywan
    Moderator
    Master

    Bonjour, voici:

    (c’est le bouton </> qui permet d’insĂ©rer un script de code PRT):


    // — ProScreener "Fernanda" Setup —
    
    
    // 1. Indicator Definitions
    
    ma7 = Average[7](close)
    tenkanLine = TenkanSen[9,26,52]
    
    
    // 2. Condition: Price above MA7 and Tenkan-sen
    
    priceCondition = close > ma7 AND close > tenkanLine
    
    
    // 2bis. Demande d'ajoût SMA20 (sans précision supplémentaire, l'hypothèse faite est que le cours soit au-dessus de SMA20)
    
    sma20= average[20](close)
    addedSMA20condition = close>sma20
    
    
    // 3. Condition: MA7 must be ascending
    
    maAscending = ma7 > ma7[1]
    
    
    // 4. Combine all filters
    
    finalCondition = priceCondition AND maAscending AND addedSMA20condition
    
    
    
    SCREENER[finalCondition] (roc[1](close) AS "Variation %")
    
    #259691 quote
    HUGO LEVIEILSHUGO LEVIEILS
    Participant
    Senior

    Merci

    Bonne journée

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

Screener ProRealTime : ajouter SMA 20 au code existant


ProScreener : Scanners de Marché & Détection

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by HUGO LEVIEILSHUGO LEVIEILS
6 months, 4 weeks ago.

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