OPEN-SOURCE SCRIPT

Custom MA + Parabolic SAR + AC

Description:
This trading strategy is designed for traders who want a systematic and rule-based approach to identifying potential buy and sell opportunities. It combines three popular technical analysis tools—Exponential Moving Averages (EMAs), Parabolic SAR, and the Accelerator Oscillator (AC)—to provide clear signals for entry and exit points. The strategy operates on the 4-hour timeframe by default but can be adjusted to suit different trading styles and timeframes.

Entry Rules for Long Trades:
1. The price must close above the EMA(120), indicating a strong upward trend.
2. The price must also close above EMA(14 High), confirming bullish momentum.
3. The Parabolic SAR must be positioned below the candle, signaling upward support.
4. The Accelerator Oscillator (AC) must be green and have a positive value, reflecting bullish acceleration.
5. The candle must close as a bullish candle (close > open), confirming buyer dominance.

Entry Rules for Short Trades:
1. The price must close below the EMA(120), indicating a strong downward trend.
2. The price must also close below EMA(14 Low), confirming bearish momentum.
3. The Parabolic SAR must be positioned above the candle, signaling downward pressure.
4. The Accelerator Oscillator (AC) must be red and have a negative value, reflecting bearish acceleration.
5. The candle must close as a bearish candle (close < open), confirming seller dominance.

Exit Rules:
• Stop loss is calculated dynamically based on key support and resistance levels:
• For long trades, the stop loss is set at EMA(14 Low).
• For short trades, the stop loss is set at EMA(14 High).
• Take profit is set using a Risk-Reward Ratio, which is customizable (default is 1:2).
• This ensures that risk is managed effectively, and rewards are maximized over time.

Additional Features:
• Trade Mode Selection: Traders can choose to trade Long Only, Short Only, or Both, depending on their market outlook.
• Visual Signals: Buy and sell signals are clearly displayed as labels on the chart, making it easy to identify trading opportunities at a glance.
• Customizable Parameters: All key settings, including EMA periods, Parabolic SAR parameters, and risk-reward ratio, are fully adjustable to suit different market conditions and preferences.
• Multi-Timeframe Compatibility: While optimized for the 4-hour timeframe, this strategy can be adapted to other timeframes for swing or intraday trading.

This script is ideal for traders who value a structured approach to trading and want to leverage the power of multiple indicators in a unified strategy. Whether you’re a beginner or an experienced trader, this tool provides clear rules and flexibility to help you make informed trading decisions.
Accelerator Oscillator (AC)Exponential Moving Average (EMA)

Skrip sumber terbuka

Dalam semangat sebenar TradingView, penulis telah menerbitkan kod Pine ini sebagai sumber terbuka supaya pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda boleh menggunakan perpustakaan ini secara percuma, tetapi penggunaan semula kod dalam penerbitan ini adalah dikawal oleh Peraturan dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Ingin menggunakan skrip ini pada carta?

Penafian