EMA RSI MACD Confluence Strategy Hybrid ATR Exit by PopsPineDev
By PopsPineDev
Performance Metrics
- Author: PopsPineDev
- Symbol: BINANCE:ETHUSDT
- Timeframe: 4 hours
- Win Rate: 26.1%
- Profit Factor: 1.357
Description
A role-based confluence strategy for crypto swing trading, validated on 4H charts of liquid majors (BTC, ETH, SOL).Why "role-based"? Most multi-indicator scripts stack three oscillators and fire when they agree — three lagging versions of the same information. Here, each component has one distinct job:EMA (21/50) — trend regime. The master filter. Longs only while fast EMA is above slow EMA (optionally with rising slope); shorts in the mirror condition.MACD (12/26/9) — entry trigger. A signal-line cross fires the entry, only in the direction the regime allows.RSI (14) — confirmation and guardrail. Momentum must agree (above/below the 50 midline), and entries chasing into overbought/oversold extremes are blocked.ATR (14) — risk engine. Stops, targets, and the trail all scale with volatility.The hybrid exit (what makes this version different). The initial stop and take-profit are anchored to the ATR captured at entry, so the risk-per-trade sizing stays honest even when volatility expands mid-trade. The trailing stop, however, deliberately uses live ATR — it widens as volatility expands, which lets winners run in accelerating trends. In testing, freezing the trail at entry ATR destroyed the edge; adapting it restored it. Both behaviours are documented in the input tooltips.Higher-timeframe regime filter. An optional daily-EMA filter permits longs only in a higher-TF uptrend and shorts only in a downtrend — the single biggest chop filter in testing.Non-repainting by construction: all logic uses closed-bar values, orders process on bar close, the HTF filter requests the last closed daily bar with lookahead off, and alerts fire on bar close matching the backtest exactly.Risk management: each trade is sized so a full stop-out loses a fixed % of equity (default 1%); a hard leverage cap (default 1.0 = none) prevents notional from exceeding equity; commission (0.05%) and slippage (2 ticks) are included so results reflect realistic costs.Honest usage notes: this is a trend-following system — expect a low win rate with larger winners, and flat-to-negative stretches in ranging markets. It is validated on 4H; on 5m/15m, trading costs typically consume the edge. Adjust commission/slippage to your venue and forward-test before trading anything live.Open-source so you can audit every line. Feedback welcome in the comments.Past performance does not guarantee future results. This script is a tool, not financial advice.