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.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
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
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
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
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.