OPEN-SOURCE SCRIPT
Cập nhật Dragon Oscillation Reversal v1 is a range-reversal strategy

Dragon Oscillation Reversal v1 is a range-reversal strategy designed for sideways and oscillating market conditions.
The core idea is simple:
The strategy first looks for a flat Bollinger Band basis, which suggests that the market is not strongly trending. After the market enters this flat condition, the strategy waits for price to touch the upper or lower Bollinger Band. Once a valid band touch appears, it opens a configurable signal window and waits for a reversal signal.
Supported reversal signals include:
- Pinbar
- Engulfing pattern
- Fractal top / bottom
A long setup requires:
1. The Bollinger Band basis to be flat.
2. Price to touch the lower Bollinger Band during the flat condition.
3. A bullish reversal signal to appear within the configured signal window.
4. The distance to the opposite band must provide enough profit potential based on the minimum R filter.
A short setup requires:
1. The Bollinger Band basis to be flat.
2. Price to touch the upper Bollinger Band during the flat condition.
3. A bearish reversal signal to appear within the configured signal window.
4. The distance to the opposite band must provide enough profit potential based on the minimum R filter.
Risk management:
- Position size is calculated from account equity and the selected risk percentage.
- Stop-loss is placed beyond the recent reversal extreme with an optional tick offset.
- The strategy uses partial profit-taking:
- 50% of the position is closed at 2R.
- The remaining position targets 4R.
- Once price moves 1R in favor of the trade, the stop is moved to breakeven plus a configurable tick offset.
- If price reaches the opposite Bollinger Band, the strategy performs an emergency exit.
This strategy is designed for range-bound markets. It is not intended for strong trending conditions. Users should test and adjust parameters according to the symbol, timeframe, and market environment.
Important:
This script is for educational and research purposes only. It does not provide financial advice. Past performance does not guarantee future results. Please use proper risk management and test thoroughly before using it in live trading.
The core idea is simple:
The strategy first looks for a flat Bollinger Band basis, which suggests that the market is not strongly trending. After the market enters this flat condition, the strategy waits for price to touch the upper or lower Bollinger Band. Once a valid band touch appears, it opens a configurable signal window and waits for a reversal signal.
Supported reversal signals include:
- Pinbar
- Engulfing pattern
- Fractal top / bottom
A long setup requires:
1. The Bollinger Band basis to be flat.
2. Price to touch the lower Bollinger Band during the flat condition.
3. A bullish reversal signal to appear within the configured signal window.
4. The distance to the opposite band must provide enough profit potential based on the minimum R filter.
A short setup requires:
1. The Bollinger Band basis to be flat.
2. Price to touch the upper Bollinger Band during the flat condition.
3. A bearish reversal signal to appear within the configured signal window.
4. The distance to the opposite band must provide enough profit potential based on the minimum R filter.
Risk management:
- Position size is calculated from account equity and the selected risk percentage.
- Stop-loss is placed beyond the recent reversal extreme with an optional tick offset.
- The strategy uses partial profit-taking:
- 50% of the position is closed at 2R.
- The remaining position targets 4R.
- Once price moves 1R in favor of the trade, the stop is moved to breakeven plus a configurable tick offset.
- If price reaches the opposite Bollinger Band, the strategy performs an emergency exit.
This strategy is designed for range-bound markets. It is not intended for strong trending conditions. Users should test and adjust parameters according to the symbol, timeframe, and market environment.
Important:
This script is for educational and research purposes only. It does not provide financial advice. Past performance does not guarantee future results. Please use proper risk management and test thoroughly before using it in live trading.
Phát hành các Ghi chú
Dragon Oscillation Reversal v1 is a range-reversal strategyMã 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.