OPEN-SOURCE SCRIPT
Cập nhật AlgoWay GRSIM

🧭 What this strategy tries to do
This strategy detects when a market move is losing strength and prepares for a potential reversal, but it waits for fresh momentum confirmation before acting.
It combines:
________________________________________
⚙️ When it takes trades
Long (Buy):
Short (Sell):
• A bearish RSI divergence appears (buying pressure fading);
• Within a short time window, the Impulse MACD turns strongly negative;
• Optionally, the impulse line must be falling (if the Impulse Direction Filter is enabled).
If momentum confirmation happens too late, the divergence “expires” and the signal is ignored.
________________________________________
🧩 How entries work
________________________________________
🚪 How exits work
Two main exit styles:
Conservative (default):
✅ Keeps trades as long as momentum agrees.
Color-change (fast):
⚡ Faster and more defensive.
Plus:
________________________________________
📊 What you’ll see on the chart
________________________________________
🔧 What you can tune
________________________________________
💪 Strengths
________________________________________
⚠️ Things to keep in mind
________________________________________
💡 Practical tips
“AlgoWay GRSIM” is a reversal-with-confirmation strategy: it spots likely turns, demands real momentum alignment (optionally verified by impulse direction), and manages exits with clear momentum cues plus built-in protective limits.
This strategy detects when a market move is losing strength and prepares for a potential reversal, but it waits for fresh momentum confirmation before acting.
It combines:
- • RSI-based divergence (to spot exhaustion and potential turning points),
- • Impulse MACD (to verify that the new direction actually has force behind it).
________________________________________
⚙️ When it takes trades
Long (Buy):
- • A bullish RSI divergence appears (a clue that selling pressure is fading);
- • Within a short time window, the Impulse MACD turns strongly positive;
- • Optionally, the impulse line itself must be rising (if the Impulse Direction Filter is
Short (Sell):
• A bearish RSI divergence appears (buying pressure fading);
• Within a short time window, the Impulse MACD turns strongly negative;
• Optionally, the impulse line must be falling (if the Impulse Direction Filter is enabled).
If momentum confirmation happens too late, the divergence “expires” and the signal is ignored.
________________________________________
🧩 How entries work
- 1. Reversal clue:
- The strategy detects disagreement between price and RSI (price makes a new high/low, RSI doesn’t).
- That suggests a shift in underlying strength.
- 2. Momentum confirmation:
- Before entering, the Impulse MACD must agree — showing real push in the same direction.
- 3. Impulse direction filter (optional):
- When enabled, the impulse itself must accelerate (rise for longs, fall for shorts), avoiding fake signals where price diverges but momentum is still fading.
- 4. No stacking:
- It opens only one position at a time.
________________________________________
🚪 How exits work
Two main exit styles:
Conservative (default):
- Longs close when impulse crosses below its signal line.
- Shorts close when impulse crosses above its signal line.
✅ Keeps trades as long as momentum agrees.
Color-change (fast):
- Longs close immediately when impulse flips bearish.
- Shorts close immediately when impulse flips bullish.
⚡ Faster and more defensive.
Plus:
- Stop Loss (%) and Take Profit (%) act as fixed-distance protective exits (set to 0 to disable either one).
________________________________________
📊 What you’ll see on the chart
- A thick Impulse MACD line and thin signal line (oscillator view).
- Diamonds — detected bullish/bearish divergence points.
- Circles — where impulse crosses its signal (momentum change).
- A performance panel (top-right) showing Net Profit, Trades, Win Rate, Profit Factor, Pessimistic PF, and Max Drawdown.
________________________________________
🔧 What you can tune
- Signal Lifetime (bars): how long a divergence remains valid.
- Impulse Direction Filter: ensure the impulse itself is moving in the trade’s direction.
- Stop Loss / Take Profit (%): risk and target in percent.
- Exit Style: conservative cross or faster color-change.
- RSI / MA / Signal Lengths: adjust responsiveness (defaults are balanced).
________________________________________
💪 Strengths
- Confirms reversals using momentum direction, not just divergence.
- Avoids “early” signals where momentum is still fading.
- Works symmetrically for longs and shorts.
- Built-in stop/target protection.
- Clear, visual confirmation of all logic components.
________________________________________
⚠️ Things to keep in mind
- In sideways markets, the impulse can flip often — prefer conservative exits.
- Too small SL/TP → constant stop-outs.
- Too wide SL/TP → deep drawdowns.
- Always test with different timeframes and markets.
________________________________________
💡 Practical tips
- Start with default settings.
- Enable “Use Impulse Direction Filter” in trending markets, disable it in very choppy ones.
- Focus on Profit Factor, Win Rate, and Max Drawdown after several dozen trades.
- Keep SL/TP roughly aligned with typical swing size.
“AlgoWay GRSIM” is a reversal-with-confirmation strategy: it spots likely turns, demands real momentum alignment (optionally verified by impulse direction), and manages exits with clear momentum cues plus built-in protective limits.
Phát hành các Ghi chú
Added alert part for Algoway ConnectorPhát hành các Ghi chú
Updated alerts onlyPhát hành các Ghi chú
Update wrong qty calculation in alert partMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.