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]
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]