OPEN-SOURCE SCRIPT
BoaBias: Multi-Timeframe EMA Analysis

What it does
BoaBias: Multi-Timeframe EMA Analysis displays Exponential Moving Averages (EMAs) across six timeframes (15m, 1H, 4H, 1D, 3D, 1W) on a single chart and tracks session statistics: how long price stays above or below each EMA, average session lengths, and deviation from the EMA. It marks crossover and crossunder events with labels and projects estimated time to the next cross based on historical averages. Candles are colored by position relative to configurable slow and fast EMAs.
How it works
The indicator uses EMA crossover logic: price above EMA = bullish session (L), price below EMA = bearish session (S). For each timeframe, it counts consecutive bars in each state and detects crosses when the state flips. Session lengths are computed natively on each timeframe (via request.security with barmerge.lookahead_off to avoid repainting). Average session length is calculated over a rolling window (default 200 bars). Deviation is the percentage distance of price from the EMA: (EMA - close) / close * 100. Projected lines extend from the last cross by the average session length in chart bars, scaled to the current chart timeframe—these are estimates, not guarantees.
Originality
This combines multi-timeframe EMA display with session-run statistics and deviation metrics in one overlay. Unlike simple MTF EMA scripts, it adds: (1) average and current session lengths per TF, (2) deviation percentages, (3) cross labels with session length at cross, (4) projected ETA lines based on average session duration, (5) configurable candle coloring by EMA position with entry and retest highlighting. The session logic runs on each TF natively for accurate bar counts.
How to use
EMA lines: Six colored lines (15m yellow, 1H red, 4H green, 1D blue, 3D purple, 1W orange). Adjust lengths in EMA Settings.
Cross labels (S/L): S = price crossed from below EMA up; L = from above down. Number shows bars in the completed session. Enable per TF in Cross Labels.
Final labels (right side): Show deviation %, Avg S/L, Cur S/L, event counts. Enable per TF in Final Labels.
Projected lines: Horizontal lines extend from last cross; vertical ETA lines show estimated next cross. Limit with "Max bars ahead for projections."
Candle coloring: Select slow EMA (default 4H) and fast EMA (default 1H) in Candle Coloring.
Colors indicate:
Settings: EMA lengths (default 16/24/42/29/30/52), average window (200), label toggles, candle color scheme.
Limitations
Projected ETA lines are based on historical average session lengths and do not predict future price. Use them as context, not as entry signals. Session statistics require sufficient history within the averaging window.
BoaBias: Multi-Timeframe EMA Analysis displays Exponential Moving Averages (EMAs) across six timeframes (15m, 1H, 4H, 1D, 3D, 1W) on a single chart and tracks session statistics: how long price stays above or below each EMA, average session lengths, and deviation from the EMA. It marks crossover and crossunder events with labels and projects estimated time to the next cross based on historical averages. Candles are colored by position relative to configurable slow and fast EMAs.
How it works
The indicator uses EMA crossover logic: price above EMA = bullish session (L), price below EMA = bearish session (S). For each timeframe, it counts consecutive bars in each state and detects crosses when the state flips. Session lengths are computed natively on each timeframe (via request.security with barmerge.lookahead_off to avoid repainting). Average session length is calculated over a rolling window (default 200 bars). Deviation is the percentage distance of price from the EMA: (EMA - close) / close * 100. Projected lines extend from the last cross by the average session length in chart bars, scaled to the current chart timeframe—these are estimates, not guarantees.
Originality
This combines multi-timeframe EMA display with session-run statistics and deviation metrics in one overlay. Unlike simple MTF EMA scripts, it adds: (1) average and current session lengths per TF, (2) deviation percentages, (3) cross labels with session length at cross, (4) projected ETA lines based on average session duration, (5) configurable candle coloring by EMA position with entry and retest highlighting. The session logic runs on each TF natively for accurate bar counts.
How to use
EMA lines: Six colored lines (15m yellow, 1H red, 4H green, 1D blue, 3D purple, 1W orange). Adjust lengths in EMA Settings.
Cross labels (S/L): S = price crossed from below EMA up; L = from above down. Number shows bars in the completed session. Enable per TF in Cross Labels.
Final labels (right side): Show deviation %, Avg S/L, Cur S/L, event counts. Enable per TF in Final Labels.
Projected lines: Horizontal lines extend from last cross; vertical ETA lines show estimated next cross. Limit with "Max bars ahead for projections."
Candle coloring: Select slow EMA (default 4H) and fast EMA (default 1H) in Candle Coloring.
Colors indicate:
- Lime — price above slow EMA (bullish)
- Red — price below slow EMA (bearish)
- Gray — price between fast and slow EMA (correction from fast toward slow)
- Teal — entry long (price crosses slow EMA up)
- Maroon — entry short (price crosses slow EMA down)
- Aqua — retest of fast EMA in uptrend, continuation
- Orange — retest of fast EMA in downtrend, continuation
Settings: EMA lengths (default 16/24/42/29/30/52), average window (200), label toggles, candle color scheme.
Limitations
Projected ETA lines are based on historical average session lengths and do not predict future price. Use them as context, not as entry signals. Session statistics require sufficient history within the averaging window.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
BoaBias / Goldfinch_song
Swing trader · bar-close systematic book
800+ TRADES · WR 60% · AVG HOLD 7D · AVG PNL 7% · MAX DD -3.4%
CRYPTO · STOCKS · INDICES · METALS
📈Sharing Ideas · indicators · strategies with honest stats · Educational only NFA
Swing trader · bar-close systematic book
800+ TRADES · WR 60% · AVG HOLD 7D · AVG PNL 7% · MAX DD -3.4%
CRYPTO · STOCKS · INDICES · METALS
📈Sharing Ideas · indicators · strategies with honest stats · Educational only NFA
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
BoaBias / Goldfinch_song
Swing trader · bar-close systematic book
800+ TRADES · WR 60% · AVG HOLD 7D · AVG PNL 7% · MAX DD -3.4%
CRYPTO · STOCKS · INDICES · METALS
📈Sharing Ideas · indicators · strategies with honest stats · Educational only NFA
Swing trader · bar-close systematic book
800+ TRADES · WR 60% · AVG HOLD 7D · AVG PNL 7% · MAX DD -3.4%
CRYPTO · STOCKS · INDICES · METALS
📈Sharing Ideas · indicators · strategies with honest stats · Educational only NFA
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.