OPEN-SOURCE SCRIPT

The Oracle: Dip & Top Adaptive Sniper [Hakan Yorganci]

87
█ OVERVIEW
The Oracle: Dip & Top Adaptive Sniper is a precision-focused trend trading strategy designed to solve the biggest problem in swing trading: Timing.
Most trend-following strategies chase price ("FOMO"), buying when the asset is already overextended. The Oracle takes a different approach. It adopts a "Sniper" mentality: it identifies a strong macro trend but patiently waits for a Mean Reversion (pullback) to execute an entry at a discounted price.
By combining the structural strength of Moving Averages (SMA 50/200) with the momentum precision of RSI and the volatility filtering of ADX, this script filters out noise and targets high-probability setups.

█ HOW IT WORKS
This strategy operates on a strictly algorithmic protocol known as "The Yorganci Protocol," which involves three distinct phases: Filter, Target, and Execute.
1. The Macro Filter (Trend Identification)
* SMA 200 Rule: By default, the strategy only scans for buy signals when the price is trading above the 200-period Simple Moving Average. This ensures we are always trading in the direction of the long-term bull market.
* Adaptive Switch: A new feature allows users to toggle the Only Buy Above SMA 200? filter OFF. This enables the strategy to hunt for oversold bounces (dead cat bounces) even during bearish or neutral market structures.
2. The Volatility Filter (ADX Integration)
* Sideways Protection: One of the main weaknesses of moving average strategies is "whipsaw" losses during choppy, ranging markets.
* Solution: The Oracle utilizes the ADX (Average Directional Index). It will BLOCK any trade entry if the ADX is below the threshold (Default: 20). This ensures capital is only deployed when a genuine trend is present.
3. The Sniper Entry (Buying the Dip)
* Instead of buying on breakout strength (e.g., RSI > 60), The Oracle waits for the RSI Moving Average to dip into the "Value Zone" (Default: 45) and cross back up. This technique allows for tighter stops and higher Risk/Reward ratios compared to traditional breakout systems.

█ EXIT STRATEGY
The Oracle employs a dynamic dual-exit mechanism to maximize gains and protect capital:
* Take Profit (The Peak): The strategy monitors RSI heat. When the RSI Moving Average breaches the Overbought Threshold (Default: 75), it signals a "Take Profit", securing gains near the local top before a potential reversal.
* Stop Loss (Trend Invalidated): If the market structure fails and the price closes below the 50-period SMA, the position is immediately closed to prevent deep drawdowns.

█ SETTINGS & CONFIGURATION
* Moving Averages: Fully customizable lengths for Support (SMA 50) and Trend (SMA 200).
* Trend Filter: Checkbox to enable/disable the "Bull Market Only" rule.
* RSI Thresholds:
* Sniper Buy Level: Adjustable (Default: 45). Lower values = Deeper dips, fewer trades.
* Peak Sell Level: Adjustable (Default: 75). Higher values = Longer holds, potentially higher profit.
* ADX Filter: Checkbox to enable/disable volatility filtering.

█ BEST PRACTICES
* Timeframe: Designed primarily for 4H (4-Hour) charts for swing trading. It can also be used on 1H for more frequent signals.
* Assets: Highly effective on trending assets such as Bitcoin (BTC), Ethereum (ETH), and high-volume Altcoins.
* Risk Warning: This strategy is designed for "Long Only" spot or leverage trading. Always use proper risk management.

█ CREDITS
* Original Concept: Inspired by the foundational work of Murat Besiroglu (muratkbesiroglu).
* Algorithm Development & Enhancements: Developed by Hakan Yorganci (hknyrgnc).
* Modifications include: Integration of ADX filters, Mean Reversion entry logic (RSI Dip), and Dynamic Peak Profit taking.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。