OPEN-SOURCE SCRIPT
Trade Manager + Divergence

Trade Manager + Divergence — Smart Entry & Automated Risk Control
Trade Manager + Divergence is a versatile trading strategy that combines automated RSI divergence detection, manual level entries, and a multi‑layered safety‑order system with advanced risk management.
It is designed for traders who want precise technical entries supported by fully automated position handling.
🔍 Key Features
1. RSI Divergence Entry Module
The strategy automatically detects:
Bullish divergence (Higher Low on RSI + Lower Low on price)
Bearish divergence (Lower High on RSI + Higher High on price)
Additional options include:
Divergence strength filtering
MA200 trend filter
Visual divergence markers on the chart
2. Manual Entry Levels
You can define:
A manual LONG entry price
A manual SHORT entry price
Automatic removal of the level after entry
Perfect for traders who prefer to work from key zones they identify themselves.
3. Multi‑Level Safety Order System
The strategy supports:
Initial base order
Up to 8 safety orders
Volume scaling
Step scaling
All parameters are fully customizable:
Order size
Distance between orders
Scaling coefficients
Maximum number of safety orders
4. Automated Take Profit
Take profit is calculated from the average position price:
Separate TP settings for LONG and SHORT
TP levels displayed directly on the chart
5. Breakeven Mechanism
After a specified number of safety orders, the strategy can:
Automatically close the position at breakeven
Include exchange fees in the calculation
6. Mini Status Panel
A compact table in the top‑right corner shows:
Position size
Position value
Number of open trades
Current PnL
Equity
This makes monitoring your position simple and intuitive.
⚙️ Clean and Organized Settings
All inputs are grouped into clear sections:
General
Entry Mode
Divergence Settings
Manual Levels
Risk Management
Each parameter includes a tooltip explaining its purpose.
📌 Disclaimer
This script does not guarantee profits and is not financial advice.
Always test strategies on historical data and use proper risk management.
Trade Manager + Divergence is a versatile trading strategy that combines automated RSI divergence detection, manual level entries, and a multi‑layered safety‑order system with advanced risk management.
It is designed for traders who want precise technical entries supported by fully automated position handling.
🔍 Key Features
1. RSI Divergence Entry Module
The strategy automatically detects:
Bullish divergence (Higher Low on RSI + Lower Low on price)
Bearish divergence (Lower High on RSI + Higher High on price)
Additional options include:
Divergence strength filtering
MA200 trend filter
Visual divergence markers on the chart
2. Manual Entry Levels
You can define:
A manual LONG entry price
A manual SHORT entry price
Automatic removal of the level after entry
Perfect for traders who prefer to work from key zones they identify themselves.
3. Multi‑Level Safety Order System
The strategy supports:
Initial base order
Up to 8 safety orders
Volume scaling
Step scaling
All parameters are fully customizable:
Order size
Distance between orders
Scaling coefficients
Maximum number of safety orders
4. Automated Take Profit
Take profit is calculated from the average position price:
Separate TP settings for LONG and SHORT
TP levels displayed directly on the chart
5. Breakeven Mechanism
After a specified number of safety orders, the strategy can:
Automatically close the position at breakeven
Include exchange fees in the calculation
6. Mini Status Panel
A compact table in the top‑right corner shows:
Position size
Position value
Number of open trades
Current PnL
Equity
This makes monitoring your position simple and intuitive.
⚙️ Clean and Organized Settings
All inputs are grouped into clear sections:
General
Entry Mode
Divergence Settings
Manual Levels
Risk Management
Each parameter includes a tooltip explaining its purpose.
📌 Disclaimer
This script does not guarantee profits and is not financial advice.
Always test strategies on historical data and use proper risk management.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.