OPEN-SOURCE SCRIPT

Smart Signals [Vdubus]

314
Smart Signals [Vdubus]
Concept & Philosophy
Smart Signals is a "Regime-Filtered" oscillator designed to solve the biggest problem with standard indicators: Counter-trend noise.

Most oscillators (like Stochastic or RSI) are "dumb" to market context—they will signal "Sell" continuously during a strong uptrend simply because the price is high. Smart Signals fixes this by first determining the Market Regime (Bullish or Bearish) and then strictly filtering out any signal that contradicts that trend.

It creates a "Tiered" trading system that separates standard trend-following entries from high-probability "Sniper" entries (Hidden Divergence), all presented in a clean, color-blind-friendly visual interface.

Core Functions
1. The "Sheriff" (Trend Filter)
At the heart of the indicator is a heavy, modified Hull Moving Average (HMA 200) that acts as the trend baseline.

Bullish Regime: When the baseline is sloping UP, the indicator enters "Buy Only" mode. All Sell signals are mathematically deleted.

Bearish Regime: When the baseline is sloping DOWN, the indicator enters "Sell Only" mode. All Buy signals are mathematically deleted.

The Math: It uses a custom difference-weighted formula (wmaHalf = Length / 1) to create a stable, chop-resistant trend anchor.

2. Dual-Signal Engine
The indicator scans for two distinct types of entries simultaneously:

♦ Standard Signals (Blue/Red Diamonds):

Logic: A classic Stochastic pullback (Cross 20/80) aligned with the trend.

Use Case: These are frequent "Bread and Butter" trend entries. They are excellent for scaling into a position or adding to a winner as the trend continues.

Location: Plotted at the top (Sell) and bottom (Buy) edges of the panel.

+ Sniper Signals (Gold Crosses):

Logic: Hidden Divergence. The script detects when Price holds structure (Higher Low) while Momentum resets (Lower Low). This is a "Slingshot" setup.

Use Case: These are rare, high-conviction entries. They often mark the end of a complex correction and the resumption of the main trend.

Location: Plotted on the Zero Line to indicate structural strength.

3. Smart Momentum Histogram
The histogram visualizes the "Energy" of the move (MACD 21, 34, 7), but with a twist. It is color-coded to the signal priority:

Gold Bars: A Sniper (Divergence) setup is active.

Solid Blue/Red Bars: A Standard Signal is active.

Faded Blue/Red Bars: The trend is active, but momentum is resetting (waiting mode).

Gray Bars: Counter-trend noise (Ignore).

How to Trade It
Check the "Road": Look at the general color of the histogram columns.

Blue Columns: Look for Longs.

Red Columns: Look for Shorts.

The "Sniper" Entry: Wait for a Gold Cross (+) on the zero line. This is your primary signal to enter a trade with normal risk.

The "Pyramid" Entry: If the trend continues and you see Blue/Red Diamonds (♦) appear at the edges, these are safe places to add to your position.

The Exit: Since this is a trend-following tool, exit when the histogram color flips (e.g., from Blue to Red/Gray), or use your own support/resistance targets.

Alerts Configuration
The indicator comes with a full suite of alerts for automation:

Gold Buy / Gold Sell: Notifies you only for the high-probability Hidden Divergence setups.

Standard Buy / Standard Sell: Notifies you for every trend pullback.

ANY BUY / ANY SELL: A combo alert that triggers on either signal type (useful for simplifying your alert limits).

Accessibility
Color Blind Friendly: The default palette uses High-Contrast Blue (#2962FF) and Soft Red (#FF5252) instead of standard Green/Red, ensuring visibility for all users.

Zero Clutter: No text labels or confusing lines. Just clear, distinct shapes (Diamonds and Crosses) at fixed locations.

Отказ от ответственности

Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.