OPEN-SOURCE SCRIPT

TraxisLab - Reversal Engine

383
TraxisLab Reversal Engine is a precision-focused reversal and continuation framework designed to identify high-confluence long and short opportunities using trend, momentum, volume, multi-timeframe confirmation, VWAP context, vector candles, and smart trade management logic.

This version includes a stronger anti-repaint structure, confirmed-bar signal handling, EMA slope filtering, volume confirmation, score gap validation, pending entry previews, and multi-timeframe alignment.

The goal of the Reversal Engine is to provide a complete visual decision layer for traders who want cleaner signals, stronger filtering, and structured trade levels directly on the chart.

Core Concept

The script uses a scoring-based signal engine to evaluate both bullish and bearish conditions.

Instead of triggering signals from one single condition, it combines multiple layers of confirmation:

Trend direction
EMA alignment
EMA slope strength
RSI and stochastic momentum
ADX trend strength
Volume confirmation
VWAP context
Vector candle activity
Market structure signals
Multi-timeframe direction
Score gap between long and short conditions

A signal is only shown when the selected conditions reach the required threshold and pass the active filters.

Signal Modes

The indicator includes three signal modes:

Aggressive
More responsive signals with lower confirmation requirements.

Standard
Balanced signal logic for general use.

Conservative
Stricter filtering for higher-quality but fewer signals.

A manual score override is also available for users who want full control over the required signal threshold.

Anti-Repaint Logic

This version includes a confirmed-bar option to reduce repainting behavior.

When enabled, signals are only generated after the candle closes.
This helps avoid signals appearing and disappearing during live candle formation.

Multi-timeframe data is also requested with lookahead disabled to support cleaner, non-repainting confirmation behavior.

Multi-Timeframe Confirmation

The script can analyze multiple timeframes at once:

5-minute
15-minute
1-hour
4-hour
Daily

Each timeframe is evaluated using EMA structure and RSI bias.
The user can choose how many timeframes must agree before a long or short signal is allowed.

Optional MTF score bonuses can be used to strengthen signals when higher-timeframe alignment is present.

Trend & Momentum Filters

The Reversal Engine includes several filters designed to improve signal quality:

EMA Filter
Uses fast, mid, and slow EMAs to evaluate trend structure.

EMA Slope Filter
Measures the slope of the fast EMA relative to ATR, helping confirm that price has enough directional strength.

ADX Filter
Filters out weak or low-trend environments.

RSI & Stochastic Context
Adds momentum and exhaustion information to the signal engine.

Volume Filter
Requires volume to be above a moving average threshold before signals are allowed.

Vector Candles

The script includes integrated Vector Candle logic.

Vector candles highlight candles with unusually strong volume-spread force compared to recent average activity.

The indicator separates:

Regular bullish vector candles
Regular bearish vector candles
Extreme bullish vector candles
Extreme bearish vector candles
Normal bullish and bearish candles

This helps traders identify high-effort candles, potential exhaustion, strong participation, or aggressive directional moves.

VWAP Context

The indicator includes multiple VWAP references:

Daily VWAP
Weekly VWAP
Monthly VWAP
4H VWAP

These levels provide clean institutional-style reference points for price reaction, trend context, mean reversion, and continuation setups.

VWAP labels can be enabled to keep the chart easy to read.

Market Structure

The script includes optional structure visualization such as:

BOS signals
CHoCH signals
Liquidity pivot markers

These tools help traders understand where price may be breaking structure, shifting direction, or reacting around important swing areas.

Pending Warnings

Pending warnings act as entry previews.

They appear when the setup is close to reaching the required score threshold and the important entry gates are already aligned.

This can help traders prepare for a possible signal before the full confirmation appears.

Pending warnings include their own cooldown to avoid excessive chart noise.

Mutual Exclusion & Trade Lock

To avoid conflicting signals, the script includes mutual exclusion logic and trade locking.

This helps prevent rapid back-and-forth long and short signals during choppy conditions.

The trade lock setting controls how long the engine waits before allowing a new trade direction.

Targets, Stops & Smart Trail

The script includes visual trade management tools:

Stop-loss levels
Up to three take-profit levels
RR-based target calculation
ATR-based stop buffer
Optional smart trailing logic

This gives traders a structured way to visualize risk and potential reward directly after a signal.

Visual Features

The script includes a complete visual overlay with:

Buy and sell labels
Pending warning labels
Vector candle coloring
Vector dots and extreme vector labels
Multi-timeframe trend information
VWAP levels
BOS / CHoCH structure markers
Liquidity pivots
Smart trailing line
Entry, stop, and take-profit levels
Compact statistics panel

Most visual elements can be enabled, disabled, or customized in the settings.

Alerts

The indicator is designed for alert-based workflows and can be used to monitor potential reversal or continuation setups.

Typical alert use cases include:

Long signal
Short signal
Pending long warning
Pending short warning
Structure shift
VWAP reaction
Vector candle event
Trail or level-based management events
How to Use

Use the Reversal Engine as a confluence-based decision support tool.

It is best used to identify moments where several independent conditions align in the same direction.

Typical use cases include:

Finding possible reversal entries after exhaustion
Confirming continuation trades with trend and MTF alignment
Filtering trades with EMA slope and volume confirmation
Using VWAP levels as reaction or mean-reversion zones
Identifying high-effort vector candles near key levels
Managing trades visually with RR-based targets and ATR-based stops

For stronger setups, look for signals that appear near important structure, VWAP levels, liquidity pivots, or after clear momentum exhaustion.

Notes

This script is an analytical overlay and does not execute trades automatically.
Signals are based on configurable scoring and filter logic.
No signal should be treated as guaranteed.

The confirmed-bar option is designed to reduce intrabar repaint behavior, but all indicators using live market data can still change while a candle is open if confirmation is disabled.

Multi-timeframe values depend on the selected chart, symbol, and timeframe settings.

Disclaimer

This indicator is for educational and analytical purposes only.
It does not provide financial advice, trading recommendations, or guaranteed results. Always use proper risk management and perform your own analysis before entering any trade.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน