Indicateur Ichimoku : remplacer la SMA7 par la Tenkan-sen

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #258485 quote
    HUGO LEVIEILS
    Participant
    Average

    Bonjour,

    Quelqu’un peu me modifier un autre code

    (1) Supprimer la SMA7

    (2) et mettre a la place la Tankan-sen

    (3) juste avant j’ai des bougies haussiéres en Heikin-Ashi

    (4) je recherche l’impact le cours avec la Tanken -sen

    (5) En Séance ( pas en cluture)

    Voir photo

    merci d’avance


    IF BarIndex = 0 THEN

    xClose = (Open + High + Low + Close) / 4

    xOpen = (Open + Close) / 2

    xHigh = High

    //  xLow = Low

    ELSE

    xClose = (Open + High + Low + Close) / 4

    xOpen = (xOpen[1] + xClose[1]) / 2

    xHigh = Max(High, Max(xOpen, xClose))

    //  xLow = Min(Low, Min(xOpen, xClose))

    ENDIF



    c1 = (xClose < xOpen) AND (xHigh = xOpen)



    sma7 = Average[7](Close)

    c2 = (Low <= sma7) AND (High >= sma7)



    SCREENER[c1 AND c2]


    Impact-le-cours-avec-la-tankan.png Impact-le-cours-avec-la-tankan.png
    #258552 quote
    Iván González
    Moderator
    Master

    C’est ici:

    // Heikin-Ashi calculation
    IF BarIndex = 0 THEN
       xClose = (Open + High + Low + Close) / 4
       xOpen = (Open + Close) / 2
       xHigh = High
       xLow = Low
    ELSE
       xClose = (Open + High + Low + Close) / 4
       xOpen = (xOpen[1] + xClose[1]) / 2
       xHigh = Max(High, Max(xOpen, xClose))
       xLow = Min(Low, Min(xOpen, xClose))
    ENDIF
    
    // 1. Current candle is a bearish Heikin-Ashi (red) with a flat top (no upper wick)
    c1 = (xClose < xOpen) AND (xHigh = xOpen)
    
    // 2. Previous candles were bullish Heikin-Ashi (green) with a flat bottom (no lower wick)
    bullHA = (xClose > xOpen) AND (xLow = xOpen)
    c2 = bullHA[1] AND bullHA[2]
    
    // 3. Tenkan-Sen calculation
    tenkan = TenkanSen[9,26,52]
    
    // 4. The current price intersects the Tenkan-Sen during the session
    c3 = (Low <= tenkan) AND (High >= tenkan)
    
    SCREENER[c1 AND c2 AND c3]
    


Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Indicateur Ichimoku : remplacer la SMA7 par la Tenkan-sen


ProScreener : Scanners de Marché & Détection

New Reply
Author
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Iván González
10 hours, 37 minutes ago.

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