INVITE-ONLY SCRIPT
Updated

Trinity Gate: Triple-Engine Trend & Breakout Strategy

199
WHAT IT DOES

Trinity Gate runs three independent signal engines and only takes a trade when the gate confirms direction:

[H] Heikin-Ashi Flip: catches the moment momentum turns, computed causally on closed bars (no repainting)
[K] Keltner Breakout: price breaking the EMA +/- 2xATR channel
[D] Donchian Breakout: break of the highest high / lowest low lookback

Each engine fires on its own, but every position passes the same gate: strict direction agreement, a maximum of 3 concurrent positions, and every entry ships with a hard stop, an R-multiple take-profit ladder (1R/2R/3R or 2R/4R) and a time-based exit. Choppy conditions get filtered out instead of traded.

RISK MANAGEMENT

Stops are ATR-based (3x ATR). Position size is computed from the % of equity risked per trade (default 1%), not from fixed contracts. The internal leverage cap keeps the liquidation price always beyond the stop.

BACKTEST PROPERTIES (DEFAULTS, SHOWN ON THE CHART)

Initial capital $10,000, commission 0.055% (taker), slippage 2 ticks, 1% of equity risked per trade. On ADAUSDT.P 4h from March 2021 to August 2026 this produces 884 trades with a profit factor of 1.14 and a 39.6% win rate. The win rate is deliberately below 50%: this is a trend system that pays for many small losers with fewer large winners. Test your own symbol and timeframe before using it, results vary by market.

NO REPAINTING

Signals fire strictly on closed bars, and the previous bar is used for the Heikin-Ashi computation. What you see in the backtest is what fires live.

Works on any symbol and any timeframe. Clean chart output: entry arrows, stop and take-profit lines, and alert signals in a copy-trading-compatible format (entry, stop, targets, leverage).

This is a trading tool, not financial advice. Never risk money you cannot afford to lose. Past performance does not guarantee future results.
Release Notes
v1.1 - Smarter time stop (copy-trading safe)

The ~16-day time stop now waits until every open trade of the pair is past its time limit, then closes them all together with a single CLOSE message. Why: stacked same-pair trades form one DCA position at the broker, and a partial close cannot be executed selectively. A fresh trade therefore blocks the time stop while the overdue trade keeps its stop loss and targets.

Backtested across all live pairs: equal or better returns with lower drawdown than the hard time stop. No other logic changed. Entries, exits, stops and targets are identical to v1.0.
Release Notes
v1.6 - Cleaner charts and honest tester numbers (no logic changes)

Everything in this update is cosmetic and quality-of-life. Entries, exits, stops, targets and the v1.1 time-stop logic are unchanged.

- Stable script title: style settings you save now survive future updates.
- Clean order labels: markers read Long, Short, Stop Loss, TP1-TP3, Exit.
- Time exits draw their own orange X marker on the chart.
- Strategy Tester: broker-emulator margin simulation disabled, so tester results match the published validation model. Tester numbers shift slightly versus v1.1; the new numbers are the honest ones.
- One-time tip: TradingView itself paints order markers from the Strategy Tester. To hide them: script Settings, Style tab, untick Orders.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.