Parabolic RSI Strategy + MA Filter + TP/SL 【PakunFX】

This strategy combines a **custom Parabolic SAR applied to the RSI** (momentum-based trend reversal detection) with a **price-based moving average filter** to create a clear and responsive trend-following system.
Additionally, it **automatically draws Take Profit (TP) and Stop Loss (SL) levels** on the chart based on a fixed risk-reward ratio, providing visual risk clarity and supporting consistent trade planning.
---
## 🔍 What This Script Does
- **RSI-Based Trend Detection:**
A custom Parabolic SAR is applied to RSI rather than price, enabling detection of **momentum reversals** instead of just price swings. - **MA Directional Filter:**
Entries are filtered by a moving average (EMA or SMA). The strategy only allows trades **in the direction of the trend**—longs above the MA, shorts below. - **Auto-Drawn TP/SL Levels:**
Each trade includes auto-calculated TP and SL lines using a configurable risk-reward ratio (e.g., 2.0), helping traders maintain consistency and discipline. - **Clear Entry Triggers:**
Positions are opened **when the RSI-based Parabolic SAR flips direction**, but only if the price is on the correct side of the MA filter.
→ This ensures trades are made **at the moment of momentum shift**, but only **in the direction of the dominant trend**.
---
## 🧮 Core Logic Breakdown
✅ Entry Conditions
- **Long Entry:**
RSI-based SAR flips below the RSI (bullish signal) **and** price is **above** the moving average. - **Short Entry:**
RSI-based SAR flips above the RSI (bearish signal) **and** price is **below** the moving average.
✅ Exit Conditions (Position Reversal)
- When an opposite signal occurs, the current position is **closed immediately**, and a new one is **opened in the opposite direction**.
✅ TP / SL Setup
- SL is placed at a **virtual buffer distance** (e.g., 100 pips from entry).
- TP is calculated using the **risk-reward ratio** (e.g., 2.0 → TP at 200 pips if SL = 100).
→ Delivers consistent, risk-defined trades.
---
## 💰 Risk Management Parameters
- **Asset / Timeframe:** Any (Backtested on 10-minute chart)
- **Account Size (Virtual):** $3,000
- **Commission:** 0.02% per trade
- **Slippage Buffer:** Equivalent to 100 pips
- **Risk Per Trade:** Approximately 5% of account balance
- **Number of Trades (Backtest Period):** 125 trades
---
## 📈 Recommended Usage
- **Timeframes:** 5m to 30m (scalping to intraday)
- **Market Conditions:** Best in trending markets; responsive even in mild ranges
- **Assets:** Forex pairs, Gold, WTI Crude, Indexes with volatility
- **Discretionary Support:** Visual TP/SL allows for **pre-planned trades** and avoids impulsive decisions
---
## ⚠️ Notes & Considerations
- Positions are reversed on opposite signals (no simultaneous longs & shorts).
- Backtests do not include broker-specific execution factors—adjust for slippage and spreads if needed.
- Strategy is **originally developed**, inspired by “ChartPrime's RSI Parabolic SAR” idea, but fully standalone.
---
## 🖼 Chart Visuals & Features
- **MA Line (orange):** Shows trend direction
- **TP Line (green dashed):** Take Profit visualization
- **SL Line (red dashed):** Stop Loss boundary
- **RSI-SAR Flip Points:** Highlight entry timing visually
---
## ✅ Summary
Parabolic RSI Strategy + MA Filter + TP/SL【PakunFX】 is a
“Momentum Detection × Trend Filtering × Exit Visualization” strategy designed for consistent, visually guided decision-making.
With clearly structured logic and visual aids, it serves both discretionary and systematic traders looking for a **momentum-aligned, risk-controlled approach**.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.
Declinazione di responsabilità
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Per un accesso rapido a un grafico, aggiungi questo script ai tuoi preferiti: per saperne di più clicca qui.