IPDA
IPDA stores the full TradingView IPDA_Full Pine indicator and ports the Buy Chance / Sell Chance reversal entry into a Python signal service that submits market orders to MT5 Trader.
The live trigger is RSI crossing out of oversold / overbought (Pine Section 11). The Supertrend ▲/▼ entry (Section 5) is also ported but does not fire orders unless the service is switched back in code. There are no confluence overlays or vetoes.
What it does
- Polls a market-data endpoint for 1-minute OHLC candles (one or more
quotes fromSYMBOLS_FILE, or a singleQUOTEin legacy mode). - Aggregates those 1M candles into a configurable target timeframe
(
TARGET_TF_MINUTES, default 5 minutes), treating the still-forming target candle as a live bar. - Recomputes the RSI reversal entry on every poll, so a signal can fire mid-candle.
- Gates on configured trading sessions — executes inside them, notifies outside.
- Submits each executable entry to mt5-trader (
POST /v1/signals,X-API-Key). - Watches filled trades and notifies once when they reach the break-even MFE trigger.
1M candles ──▶ aggregate to 5M ──▶ RSI(14) cross 25 / 75
│
session gate (tokyo / new_york)
│
in session ──▶ fire once, lock ──▶ POST /v1/signals (source=ipda)
out of session ──▶ notify only (no order)
│
MFE break-even advisory (notification)Mid-candle signals can repaint before the bar closes. IPDA emits the first signal seen for a bucket and then locks that bucket — at most one entry per target candle. TradingView alerts on the same indicator use bar-close frequency, so a label that appears mid-bar and disappears before close still produces a live trade here. See Signal Logic.
Explore the docs
Install, configure .env, and run ipda against a paired mt5-trader instance.
Buy Chance / Sell Chance RSI crosses, mid-candle lock, and unused Supertrend port.
Signal LogicMandatory pip distances (40/50 forex) — RSI has no price-level stop.
Hard TargetsEnable Reversal Signal on the chart; 5M; sensitivity 14 and levels 25 / 75.
Pine ScriptSYMBOLS_FILE multi-instrument manifests and forex/deriv pairing with mt5-trader.
ProfilesTokyo and New York cash windows; empty TRADING_SESSIONS for 24/7 (Deriv).
SessionsOut-of-session and break-even events via notification-service.
NotificationsAdvisory MFE watcher — notifies once; never moves the stop.
Break-evenDATA_LOOKBACK, 5-minute bucket alignment, and chart vs MT5 divergence.
Warmup & AlignmentSame-host Windows pairing, startup checklist, logs, and restart behaviour.
Operator runbookFull environment variable reference (reversal, sessions, notifications, MFE).
ConfigurationReversal, indicators, sessions, notifier, tracker, and service coverage.
Tests