OPEN-SOURCE SCRIPT

ParabolicSAR+EMA[TS_Indie]

280
🚀 EMA + Parabolic SAR Reversal Trading Strategy
This trading system effectively combines the use of Exponential Moving Averages (EMA) with the Parabolic SAR to identify both price trends and key reversal points. The EMA Fast is used to signal the primary short-term trend, while the EMA Slow acts as a filter for the long-term trend direction. The Parabolic SAR then helps to confirm the reversal signals.

🛠️ Tools Used
1.EMA Fast – Primary Short-Term Trend
2.EMA Slow – Long-Term Trend Filter
3.Parabolic SAR – Reversal Confirmation

🎯 Entry Rules
cuplikan
📈 Buy Setup
1.Trend Filter: EMA Fast > EMA Slow → Uptrend
2.Pullback: Price pulls back and closes below the EMA Fast line.
3.Reversal: Price reverses/pulls back up and closes above the EMA Fast line.
4.SAR Confirmation: The previous Parabolic SAR dot is above the high, and the dot in the current candle is below the low → Reversal signal confirmed.
5.Entry: Enter Buy immediately.

cuplikan
📉 Sell Setup
1.Trend Filter: EMA Fast < EMA Slow → Downtrend
2.Pullback: Price pulls back and closes above the EMA Fast line.
3.Reversal: Price reverses/pulls back down and closes below the EMA Fast line.
4.SAR Confirmation: The previous Parabolic SAR dot is below the low, and the dot in the current candle is above the high → Reversal signal confirmed.
5.Entry: Enter Sell immediately.

💰 Exit Management (Entry, Stop Loss, Take Profit)
1.Entry: Enter the order at the closing price of the signal candle.
2.Stop Loss (SL): Set the Stop Loss at the Parabolic SAR dot.
3.Take Profit (TP): Calculated from the Entry and Stop Loss points, multiplied by the Risk Reward Ratio.

⚙️ Optional Parameters
cuplikan
➭ Custom Risk/Reward Ratio for Take Profit.
➭ Option to add an ATR buffer to the Stop Loss.
➭ Adjustable EMA Fast period.
➭ Adjustable EMA Slow period.
➭ Adjustable Parabolic SAR parameters.
➭ Option to enable Long-only / Short-only positions.
➭ Customizable Backtest start and end date.
➭ Customizable trading session time.

🔔 Alert Function
Alerts display:
➭ Entry Price
➭ Stop Loss Price
➭ Take Profit Price

💡 This strategy allows for many parameter adjustments, such as the MA type, adding/subtracting from the Stop Loss using ATR, and selecting specific sessions for backtesting. If you find interesting or profitable results after adjusting the parameters, please share your comments with other traders!

⚠️ Disclaimer
This indicator is designed for educational and research purposes only. It does not guarantee profits and should not be considered financial advice. Trading in financial markets involves significant risk, including the potential loss of capital.

Pernyataan Penyangkalan

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.