OPEN-SOURCE SCRIPT
已更新 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.
版本注释
Dragon Oscillation Reversal v1 is a range-reversal strategy开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。