INVITE-ONLY SCRIPT

Sniper-2025

56
Sniper-2025 Indicator Explanation

Overview
The Sniper-2025 indicator is a versatile technical analysis tool designed for TradingView, combining a Hyper Wave oscillator, Smart Money Flow analysis, divergence detection, reversal signals, confluence visualization, and a machine learning-based k-Nearest Neighbors (k-NN) prediction model. It provides traders with actionable buy and sell signals, trend insights, and confluence indicators to enhance decision-making across various trading strategies. The indicator is highly customizable, allowing users to adjust sensitivity, colors, and display options to suit their preferences.

Key Features
1. Hyper Wave Oscillator: A normalized oscillator based on price data, smoothed with either a Simple Moving Average (SMA) or Exponential Moving Average (EMA), highlighting momentum and potential reversal points.
2. Smart Money Flow: Tracks bullish and bearish money flow using a smoothed Money Flow Index (MFI), providing insights into market strength and direction.
3. Divergence Detection: Identifies bullish and bearish divergences between price and the oscillator, with optional labels displaying price levels.
4. Reversal Signals: Detects major and minor reversal conditions based on volume, oscillator values, and RSI, visualized as triangles and circles on the chart.
5. Confluence Meter and Areas: Visualizes alignment between the oscillator and MFI, indicating bullish or bearish confluence with customizable colors and shaded areas.
6. Signal and Divergence Labels: Displays labels for key oscillator levels (e.g., Z-Buy, Z-V-Sell) and money flow conditions (e.g., C-Buy, T-Sell) with customizable visibility and sizes.
7. Trend and Control Table: Shows the current trend (Bullish/Bearish) and control (Bull/Bear) in a customizable table positioned on the chart.
8. k-NN Prediction: Uses a k-Nearest Neighbors algorithm to predict price movement direction based on RSI indicators, with adjustable prediction sensitivity.
9. Gradient Fills and Alerts: Visualizes overbought and oversold zones with gradient fills and provides alert conditions for key crossovers and crossunders.

How It Works
- Hyper Wave Oscillator: The oscillator is calculated by normalizing the close price relative to the highest, lowest, and average prices over a user-defined length (default: 15). It is smoothed using SMA or EMA (default: SMA, length 3) to generate a signal line. Crossovers and crossunders of the oscillator and signal line are plotted as circles, indicating potential buy or sell signals.
- Smart Money Flow: The MFI is calculated over a user-defined length (default: 10) and smoothed (default: 6). It tracks bullish (positive) or bearish (negative) money flow, with colors changing based on direction (blue for bullish, red for bearish). The indicator compares current MFI to its historical average to identify strong trends.
- Divergence Detection: The script identifies divergences by comparing oscillator peaks/troughs with price highs/lows. Bullish divergences (price makes lower lows, oscillator does not) and bearish divergences (price makes higher highs, oscillator does not) are plotted as lines, with optional labels showing the divergence type and price.
- Reversal Signals: Major reversals are detected when volume exceeds a threshold (based on a 7-period SMA and reversal factor, default: 4) and the oscillator exceeds ±4. Minor reversals consider RSI (±20) and oscillator crossovers. Signals are plotted as triangles (major) or circles (minor), with blue for bullish and red for bearish.
- Confluence Meter and Areas: The confluence meter, displayed on the right, shows alignment between the oscillator and MFI using a gradient from red (bearish) to blue (bullish). Shaded areas at ±55 highlight strong bullish or bearish confluence when both indicators align.
- Signal and Divergence Labels: Labels are plotted on the candlestick chart when the oscillator crosses key levels (±20, ±40) or when money flow conditions are met (e.g., MFI crossing 0 or ±20/±40). Users can toggle label visibility and adjust sizes (Small, Normal, Large, Huge).
- Trend and Control Table: A table displays the trend (based on oscillator SMA) and control (based on MFI direction), with customizable position (default: Top Right), text color, and background color. Sensitivity for trend and control calculations can be adjusted.
- k-NN Prediction: The k-NN algorithm predicts price movement direction by comparing current RSI values (5-period and 20-period WMAs) to historical data. The number of neighbors (default: 200) and trend length (default: 20) control prediction sensitivity. A green line shows the prediction, with gradient fills indicating overbought (lime) and oversold (red) zones.
- Gradient Fills and Alerts: Gradient fills highlight the prediction's position relative to overbought/oversold zones, calculated using a 2000-period lookback and standard deviation. Alerts are triggered for crossovers/crossunders of the prediction line with its WMA, overbought/oversold levels, or the zero line.

Usage Instructions
1. Add the Sniper-2025 indicator to your TradingView chart.
2. Interpret signals:
- Z-Buy/Z-V-Buy (green labels): Potential buy signals when the oscillator crosses below -20/-40.
- Z-Sell/Z-V-Sell (red labels): Potential sell signals when the oscillator crosses above 20/40.
- C-Buy/C-Sell (green/red labels): Money flow shifts to bullish/bearish when MFI crosses 0.
- T-Buy/T-Sell (green/red labels): Money flow crosses ±20, indicating stronger trends.
- T-V-Buy/T-V-Sell (green/red labels): Money flow crosses ±40, indicating very strong trends.
- Divergence Labels: Green (D-Bullish) or red (D-Bearish) labels indicate potential reversals.
- Reversal Signals: Blue triangles/circles for bullish reversals, red for bearish.
- Confluence Meter: Blue (bullish) or red (bearish) gradient indicates alignment strength.
- Table: Check "Trend" and "Control" for market direction (🟩/🟥 for trend, 🟢/🔴 for control).
- k-NN Prediction: Green line above 0 suggests bullish momentum; below 0 suggests bearish. Watch for crossovers with the WMA or overbought/oversold zones.
3. Set alerts for crossovers/crossunders of the prediction line, oscillator, or MFI to automate trading signals.

Customization Options
- Hyper Wave: Adjust Main Length (mL, default: 15) for oscillator sensitivity, Signal Type (sT, SMA/EMA), and Signal Length (sLHW, default: 3). Customize colors and transparency.
- Smart Money Flow: Set Money Flow Length (mfL, default: 10) and Smooth (mfS, default: 6) for MFI sensitivity. Choose bullish/bearish colors.
- Divergence: Modify Divergence Sensibility (dvT, default: 20) for short-term (lower) or long-term (higher) divergences. Toggle visibility and price display on labels.
- Reversal: Adjust Reversal Factor (rsF, default: 4) for signal strength (higher = fewer, stronger signals). Set colors for bullish/bearish signals.
- Confluence: Toggle Confluence Meter (sCNF) and Areas (sCNB), and customize colors.
- Labels: Enable/disable specific signal labels (e.g., showZBuy, showHSell) and adjust Label Size (default: Normal).
- Table: Toggle Trend and Control display, adjust sensitivities, and set position and colors.
- k-NN Prediction: Adjust Prediction Data (numNeighbors, default: 200) for sensitivity and Trend Length (momentumWindow, default: 20) for responsiveness.

Conclusion
The Sniper-2025 indicator is a powerful tool for traders seeking a comprehensive analysis of price momentum, money flow, divergences, reversals, and predictive signals. Its customizable settings and clear visualizations make it suitable for both novice and experienced traders. Use the indicator to identify high-probability trading opportunities, monitor market trends, and refine strategies with its machine learning-driven predictions.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.