Taiji Realm Pro MT5 Source Code

Taiji Realm Pro MT5 Source Code

Pinned Monthly Influencer MT5v9.4

Multi-indicator signals + martingale / smart averaging + advanced dynamic spacing model + multi-layer filtering + tail-order floating-profit hedge + time switch + triple panels. Suits ranging and pullback markets.

Views 1168 Downloads 211 File 149.5 KB Updated 2026-10-10

Details & Usage Instructions

Taiji Realm Pro V9.4 is a multi-indicator grid trading system for MT5.
Signals come from MA + RSI + MACD + ATR + momentum confluence; supports both martingale averaging and smart averaging.
Built in: advanced dynamic spacing model, MA-deviation limit, RSI averaging limit, MACD divergence filter, tail-order floating-profit hedge, time switch, triple panels and more.
Suits markets alternating between range and trend — a feature-complete all-round EA.

Core Features
1. Multi-Indicator Signal System

First entries are driven by MA + RSI directional confluence:

Price above MA + RSI rising → open long.

Price below MA + RSI falling → open short.

Optional MACD divergence filter (top divergence blocks longs, bottom divergence blocks shorts).

RSI overbought (default 65) blocks longs; oversold (default 35) blocks shorts.

2. Martingale Averaging + Smart Averaging

Martingale averaging (default):

Adds when floating loss reaches the spacing.

Lots increase as first lot × multiplier^layer.

Smart averaging (Ib_00E4):

Auto-switches after 3 consecutive trend mismatches (price moving against MA).

Uses its own averaging spacing and lot multiplier.

Bypasses the RSI averaging limit to pull the average price down fast.

3. Advanced Dynamic Spacing Model (core)

Optional weighted-volatility spacing:

Formula
Spacing = (current ATR × 0.8 + H1_ATR × 0.05 + D1_ATR × 0.01 + momentum × 0.14) / Point
× ATR multiplier
× trend adjustment factor
× high-volatility multiplier
Weights are adjustable and auto-normalized.

Trend >70 counts as a strong trend, factor 1.5;<30 counts as ranging, factor 0.8. D1 ATR / current ATR >2 counts as a high-volatility period, extra ×1.5.

Spacing is automatically clamped within the min / max range.

4. Multi-Layer Filtering

MA-deviation limit: blocks the first entry when price is more than N points from MA.

RSI averaging limit: RSI< 45 blocks adding longs; RSI >55 blocks adding shorts.

RSI overbought/oversold filter.

MACD divergence filter.

Spread filter.

Max order count limit.

Max lot limit.

5. Tail-Order Floating-Profit Hedge

Hedges a profitable tail order against losing orders:

Enabled once order count ≥ threshold (default 10).

Triggered when tail-order profit ≥ threshold (default 460 points).

Uses 50% of the tail order's profit to hedge several losing orders.

Configurable start order, max hedges per round, and close-earliest-only.

After hedging, the tail order and the losing orders close together.

6. Multi-Layer Exit System

Profit-amount exit: closes all when profit reaches N USD.

Average-profit-points exit: closes all when the lot-weighted average profit in points hits target.

Max-floating-loss exit: closes all when floating loss exceeds the limit.

Protective stop: max loss in points based on ATR × multiplier, adjusted dynamically by order count.

7. Trading Time Switch

No-open period configurable (default 19:00-00:30).

Allow closing during the no-open period (optional).

Allow averaging during the no-open period (optional).

Auto-computes the next switch time and shows the remaining time.

8. Account and Time Licensing

Account whitelist; separate multiple accounts with commas.

Expiry date limit with an automatic reminder once expired.

Checked every 10 minutes to avoid frequent recalculation.

Triple Panels
Main Panel

Account info, account status, account number

Time limit, expiry date, remaining time

Trading status: order count, total lots, current P/L, max floating loss

Direction read: signal, trend strength, price / MA, RSI level

Averaging status: long / short state, averaging count, next lot

Averaging reason / block reason

Smart averaging mode: current mode, trend agreement, averaging spacing, lot multiplier, status

MA-deviation limit: status, limit points, current deviation

RSI filter status, MACD divergence status

Status Panel

Spacing model info: model type, market state, trend factor, combined volatility

Technical indicators: averaging spacing, ATR, momentum volatility, RSI

Advanced model params: ATR weights, momentum weight, trend adjustment factor, high-volatility multiplier / threshold

RSI averaging limit: limit state, RSI value, long / short limit, current limit

MA-deviation limit: status, limit points, current deviation

Hedge Panel

Tail-order hedge: status, trigger conditions, hedge ratio, start order

Tail-order profit, hedge amount, hedge order count, max hedges

Hedge stats: total hedges, total hedge profit, last hedge time, hedge efficiency

Trading time switch: status, no-open period, allow close / average

Current time, next switch, remaining time

All three panels are draggable.

Suitable Market Conditions
Suits markets that alternate between range and trend with pullbacks.
Not suited to extreme one-way moves, markets without pullbacks, or frequent gaps.

2.jpg

Risk Warning:Resources on this site are for learning, research and technical exchange only, and do not constitute any investment advice. Before running any EA on any account, please do thorough forward-testing on a demo account first; no strategy can guarantee profits.