(1) Le cours sur la Tenkan-sen avec bougie baissière
(2) en bougie heikin-ashi
(3) impact le cours sur la TS en séances
merci d’avance 🙏
Voici
// ========================================================
// SCREENER: HEIKIN-ASHI BEARISH CANDLE IMPACTING TENKAN-SEN
// ========================================================
// HEIKIN-ASHI CANDLES
xClose = (open + high + low + close) / 4
IF barindex = 0 THEN
xOpen = (open + close) / 2
ELSE
xOpen = (xOpen[1] + xClose[1]) / 2
ENDIF
// TENKAN-SEN (Standard 9 periods)
tenkan = (highest[9](high) + lowest[9](low)) / 2
// CONDITIONS
// Bearish Heikin-Ashi Candle
isBearishHA = xClose < xOpen
// Price impacts Tenkan-sen during the session
impactsTenkan = low <= tenkan AND high >= tenkan
// COMBINE ALL CONDITIONS
condition = isBearishHA AND impactsTenkan
SCREENER[condition]