Screener ProRealTime : ajouter SMA 20 au code existant

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #259686 quote
    HUGO 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_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 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.

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 LEVIEILS
1 day, 14 hours ago.

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