OPEN-SOURCE SCRIPT

Obsidian Trend Relay [JOAT]

1 722
Obsidian Trend Relay [JOAT]

Introduction

Obsidian Trend Relay is an open-source multi-timeframe trend and risk-ladder indicator. It combines zero-lag EMA logic, SuperTrend, an EMA ribbon, three higher-timeframe confirmation votes, prediction threshold rails, proximity warnings, candle coloring, risk ladder boxes, right-side price labels, and a top-right dashboard.

The script is built for users who want a directional trend context layer with structured visual planning. It does not claim to forecast price. Instead, it shows when local trend, ribbon structure, SuperTrend, and higher-timeframe votes align or conflict.

istantanea

Core Concepts

1. Zero-Lag EMA Core

The zero-lag component reduces the smoothing delay of a standard EMA by comparing the first EMA against a second smoothing pass. This creates a responsive trend anchor used for reclaim and rejection logic.

Pine Script®
// Conceptual summary // zlema = 2 * ema(source, length) - ema(ema(source, length), length)


2. SuperTrend and EMA Ribbon

SuperTrend provides an ATR-based directional rail. The EMA ribbon checks whether fast, mid, slow, and base averages are stacked in directional order. Both must be read together with the zero-lag line.

3. Multi-Timeframe Relay Votes

Three higher-timeframe checks compare zero-lag and EMA structure using request.security() with lookahead off. The dashboard displays each vote and the total confluence score.

4. Prediction and Proximity Rails

The prediction engine creates upper/lower threshold rails around the trend anchor. Proximity warnings identify when price is near a key transition rail and may be close to a directional decision point.

5. Risk Ladder

When a relay signal appears, the script can draw a reward box, risk box, warning zone, entry, stop, and T1/T2/T3 rails. These are visual planning tools only.

Features

  • Zero-lag trend anchor: Responsive baseline for reclaim and rejection context
  • SuperTrend filter: ATR-based directional rail
  • EMA ribbon: Visual trend stack using multiple moving averages
  • Three HTF votes: Higher-timeframe confluence with lookahead off
  • Prediction rails: Upper/lower threshold bands around the zero-lag engine
  • Proximity warning: Highlights price near key trend rails
  • Risk ladder boxes: Draws risk, warning, reward, entry, stop, and T1/T2/T3 levels
  • Gradient candle tinting: Colors candles from confluence and trend state
  • Top-right dashboard: Shows local trend, ribbon, HTF votes, prediction, proximity, and ladder state
  • Confirmed-bar logic: Relay and ladder events use confirmed bars


Input Parameters

Trend Engine:
  • Source
  • Zero Lag Length
  • SuperTrend ATR Length
  • SuperTrend Factor
  • Ribbon Fast, Mid, Slow, and Base lengths


MTF and Risk:
  • Higher Timeframe 1, 2, and 3
  • Minimum Confluence Votes
  • Stop ATR Mult
  • Target ATR Mult
  • Show Risk Ladder


How to Use This Indicator

Step 1: Check confluence
Use the dashboard to see whether the local trend and higher timeframes agree.

Step 2: Read the ribbon
A clean stacked ribbon provides stronger trend context than a mixed ribbon.

Step 3: Watch proximity rails
Proximity warnings indicate price is near a transition threshold.

Step 4: Treat the ladder as a visual plan
The risk ladder maps possible risk and reward levels, but it does not execute trades or ensure outcomes.

Indicator Limitations

  • Higher-timeframe values can update during an unfinished higher-timeframe candle
  • Trend tools can lag during sharp reversals
  • Risk ladder levels are visual only
  • Sideways markets may generate mixed confluence readings


Originality Statement

Obsidian Trend Relay combines zero-lag trend anchoring, SuperTrend, EMA ribbon stacking, three higher-timeframe votes, prediction thresholds, proximity warnings, and managed risk ladders into one open-source Pine v6 trend relay. Its purpose is to organize trend alignment and risk visualization in one coherent chart layer.

Disclaimer

This script is for educational and informational use only. It is not financial advice or a promise of future results. Always use independent judgment and risk management.

-Made with passion by jackofalltrades

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.