Screener ProRealTime: ajouter SMA 200 au SAR+Ichimoku

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

    Bonjour,

    Quelqu’un pourrais rajouter la sma 200 a ce code ?

    Merci d’avance

    Bonne journée 🙏


    // Definition of indicators
    mySAR = SAR[0.02, 0.02, 0.2]
    mySMA = Average[7](close)
    // Standard Ichimoku parameters (9, 26, 52)
    myTenkan = TenkanSen[9, 26, 52]
    
    // Condition 1: Green SAR (Price above SAR)
    c1 = close > mySAR
    
    // Condition 2: SMA7 Ascending and Inside the Candle
    // Ascending logic
    isSMAUp = mySMA > mySMA[1]
    // Inside the candle logic (Between High and Low)
    isSMAInside = mySMA >= low AND mySMA <= high
    
    c2 = isSMAUp AND isSMAInside
    
    // Condition 3: Tenkan-sen Ascending and Inside the Candle
    // Ascending logic
    isTenkanUp = myTenkan > myTenkan[1]
    // Inside the candle logic
    isTenkanInside = myTenkan >= low AND myTenkan <= high
    
    c3 = isTenkanUp AND isTenkanInside
    
    // Screening execution
    SCREENER[c1 AND c2 AND c3]
    
    #258920 quote
    AI-vyAI-vy
    Moderator
    Junior

    Il suffit d’ajouter une **moyenne mobile 200 périodes** et de l’utiliser comme **filtre de tendance globale** avant le SCREENER.

    Exemple classique : ne garder que les valeurs en tendance haussière quand le **cours est au-dessus de la SMA200** (et éventuellement SMA200 haussière).

    Code ProScreener avec SMA200 comme filtre de tendance :

    // Definition of indicators
    mySAR    = SAR[0.02, 0.02, 0.2]
    mySMA    = Average[7](close)
    // SMA 200 pour filtre de tendance globale
    mySMA200 = Average[200](close)
    
    // Standard Ichimoku parameters (9, 26, 52)
    myTenkan = TenkanSen[9, 26, 52]
    
    // Condition 1: Green SAR (Price above SAR)
    c1 = close > mySAR
    
    // Condition 2: SMA7 Ascending and Inside the Candle
    // Ascending logic
    isSMAUp     = mySMA > mySMA[1]
    // Inside the candle logic (Between High and Low)
    isSMAInside = mySMA >= low AND mySMA <= high
    
    c2 = isSMAUp AND isSMAInside
    
    // Condition 3: Tenkan-sen Ascending and Inside the Candle
    // Ascending logic
    isTenkanUp     = myTenkan > myTenkan[1]
    // Inside the candle logic
    isTenkanInside = myTenkan >= low AND myTenkan <= high
    
    c3 = isTenkanUp AND isTenkanInside
    
    // Filtre de tendance globale avec SMA200
    // Exemple : tendance haussière si prix > SMA200 et SMA200 ascendante
    trendFilter = close > mySMA200 AND mySMA200 > mySMA200[1]
    
    // Screening execution
    SCREENER[ c1 AND c2 AND c3 AND trendFilter ]
    

    Logique ajoutée :

    • mySMA200 = Average[200](close) calcule la SMA200.
    • trendFilter impose :
      • cours au-dessus de la SMA200 : close > mySMA200
      • SMA200 haussière : mySMA200 > mySMA200[1]
    • Le screener ne retient que les valeurs qui satisfont les conditions SAR, SMA7, Tenkan et ce filtre de tendance globale.
    HUGO LEVIEILS thanked this post
    #258922 quote
    HUGO LEVIEILSHUGO LEVIEILS
    Participant
    Senior

    Merci 🙏

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 200 au SAR+Ichimoku


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
7 months, 2 weeks ago.

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