PROTECTED SOURCE SCRIPT
Aggiornato

HTF EMA Ribbon Bias by HammerGeek

36
This indicator displays a higher-timeframe EMA-ribbon bias directly on any lower-timeframe chart. It uses four EMAs (5, 9, 13, 21) computed on the selected higher timeframe and detects the directional “stacking” of those EMAs to determine trend bias:

Bullish: EMAs are strictly stacked 5 > 9 > 13 > 21 (fully separated, no overlap)

Bearish: EMAs are strictly stacked 5 < 9 < 13 < 21

Neutral: Any overlap, crossing, or mixed order between the four EMAs

The indicator shades the background to show the bias: green for bullish, red for bearish, yellow for neutral. A built-in toggle lets you choose whether the bias should update live from the current higher-timeframe candle (faster, but may repaint) or only after the higher-timeframe candle closes (slower, but non-repainting).

Designed for traders who want clean, instantly readable higher-timeframe context—especially when working on lower-timeframe charts such as 30m, 15m, or 5m.

All settings can be modified to suit users' desires.
Note di rilascio
The most recent updates add several major improvements focused on flexibility, clarity, and cleaner charting.

1. Dynamic Higher-Timeframe Selection

You can now define a threshold timeframe that determines which higher timeframe the indicator should use for bias calculations:

If your current chart timeframe is less than or equal to the threshold → it uses Bias Timeframe 1
If your chart timeframe is greater than the threshold → it uses Bias Timeframe 2

This allows automatic behavior such as:

  • 15m and below → use 4H
  • 30m–4H → use 1D
  • 1D and above → use 1W


The indicator switches seamlessly as you change charts.

2. Bias Display Panel (Text Box Overlay)

A floating text panel shows:

• The current bias (Bullish / Bearish / Neutral)
• The higher timeframe being used (e.g., 4H, 1D, 1W)
• A solid background color matching the bias (ignores transparency)
• White text for maximum readability

This panel is crucial if you want a clean chart without background shading—you can completely turn shading off and rely on this box as your sole HTF bias indicator.

You can position it anywhere: top/bottom, left/right, or centered.

3. Color and Transparency Control via the Color Picker

Shading now relies 100 percent on the color picker’s transparency slider, not external transparency inputs.

This provides:

• Intuitive transparency control from TradingView’s standard color UI
• Cleaner settings menu
• Matching behavior across the shading and indicator palette

Shading is applied directly using the chosen color and alpha from the picker.

Meanwhile, the Bias Display Panel stays solid (no transparency) to maintain visibility.
Note di rilascio
HTF EMA Ribbon Bias now includes a visual current timeframe bias signal and an expanded bias panel so you can see HTF and LTF alignment at a glance.

Updates in this version:

1. Current timeframe bias indicator

Adds a "Current TF Bias" series that plots symbols on each bar at the top or bottom of the chart.

Symbol style (dots, arrows, diamonds, etc.) and color are controlled from the Style tab, so you can match your chart theme.

Uses the same EMA ribbon stacking logic on the current chart timeframe: Bullish (5 > 9 > 13 > 21), Bearish (5 < 9 < 13 < 21), Neutral otherwise.

Colors automatically match your Bullish/Bearish/Neutral palette, with an option to ignore transparency so symbols stay solid even if background shading is very light.

Lets you quickly read the lower timeframe bias even if you turn off all background shading.

2. Dual-bias information panel (HTF + current TF)

The bias panel now shows two lines under a small “Bias” header.

First line: higher timeframe bias (e.g., 4H | Bullish) using the HTF ribbon logic and HTF bias color.

Second line: current chart timeframe bias (e.g., 15m | Bearish) using the same rules and LTF bias color.

When both lines are aligned (both Bullish or both Bearish), it gives a clear visual confirmation that your HTF and current TF are in sync.

Helps you quickly spot when you are trading with or against the higher-timeframe trend without having to inspect the EMAs directly.

Declinazione di responsabilità

Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.