OPEN-SOURCE SCRIPT
Atualizado 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.
Notas de Lançamento
Added alert part for Algoway ConnectorNotas de Lançamento
Updated alerts onlyNotas de Lançamento
Update wrong qty calculation in alert partScript de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.