PROTECTED SOURCE SCRIPT

Bullish Bearish Move Forecast with RSI & Volume Confirmation

78
🎯 Purpose
This strategy is designed to generate high-confidence long and short entries by combining:

Trend confirmation from moving averages

Momentum via MACD-like divergence

Stochastic oscillator conditions

Optional filters: RSI and Volume

⚙️ How It Works
✅ Trend Detection:
Uses 3 Simple Moving Averages (10, 30, 100 periods)

Looks for price crossing above (bullish) or below (bearish)

✅ Momentum Signal:
A custom MACD-style crossover of medians identifies momentum shifts

✅ Stochastic Confirmation:
Confirms entries when the market is emerging from oversold (for longs) or overbought (for shorts)

✅ Signal Agreement:
Each of the 3 components gives a +1 or -1

Entry only occurs if all 3 agree (i.e., total score = +3 or -3)

✅ Additional Filters (Toggleable):
RSI: Must be > 50 for long, < 50 for short (default = ON)

Volume: Volume must be greater than its 20-period average (default = ON)

🟢 Long Entry Requirements
All 3 core signals align bullishly

RSI filter passes (if enabled)

Volume filter passes (if enabled)

No recent long signal on previous bar

🔴 Short Entry Requirements
All 3 core signals align bearishly

RSI < 50 and high volume (if filters enabled)

No recent short signal on previous bar

💼 Backtesting & Risk Management
✅ Customizable Settings
Go to settings (⚙️ icon in the strategy pane):

Take Profit (%) – Default: 3%

Stop Loss (%) – Default: 2%

Toggle RSI and Volume filters on/off

✅ Built-in Trade Logic
Longs exit at +TP or -SL

Shorts exit at -TP or +SL

📊 Visual Features
Green “LONG” labels below bars

Red “SHORT” labels above bars

Triangle markers indicate entry candles

🧪 How to Use in TradingView
Click on the Pine Editor tab

Paste the script and click Add to Chart

Go to the Strategy Tester tab to view performance

Use the gear icon ⚙️ to customize parameters

Toggle filters and adjust TP/SL for optimization

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.