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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.