PROTECTED SOURCE SCRIPT

Alpha Signal AI Pro

110
Alpha Signal AI Pro

Short description:
A smart, ensemble-style indicator that blends trend, momentum, volume, volatility, and candle patterns into a score & star system that produces Buy/Sell signals confirmed by MACD crosses. After a signal, it projects smart targets (TP1/TP2/TP3) and a stop-loss derived from ATR, with forward drawings and a control panel for trade management.

Inputs

Minimum Score (min_score): default 6.0 — higher = fewer but stronger signals.

Minimum Stars (min_stars): default 2 — extra filter for strength.

Future Bars (future_bars): default 15 — how far targets/SL are drawn ahead.

Use AI Targets (use_ai_targets): toggle the AI multiplier for TP/SL.

How it works

Computes buy_score/sell_score from: EMA8/21/50/200, RSI & its MA, MACD & Histogram, Stochastic, ADX/DMI, VWAP, Volume, 15m MTF tilt, ROC/Momentum, Heikin Ashi, and candle patterns (engulfing/hammer/shooting star).

Converts scores into Stars (⭐⭐ to ⭐⭐⭐⭐⭐) via tiered thresholds.

Signals fire only when: Score ≥ minimum + Stars ≥ minimum + MACD cross (up = Buy, down = Sell).

On a signal, one active trade is managed until TP3 or SL is reached.

Targets & Stop (AI-driven)

Targets and SL are ATR-based, then adjusted by an AI multiplier derived from: ATR%, momentum (ROC), relative volume, trend strength (ADX), and star rating.

Approximate formulas:

TP1 ≈ 1.5×ATR × AI

TP2 ≈ 2.5×ATR × AI

TP3 ≈ 4.0×ATR × AI

SL ≈ 1.0×ATR ÷ AI

What you’ll see on chart

“Buy/Sell” markers with small Star labels, an Entry line (blue), SL (red dotted), TP1/TP2 (green), TP3 (gold) with shaded target boxes and a guide line towards the final target.

A central AI badge showing the multiplier % and star rating.

A top-right Panel showing status, strength, AI%, price, scores, and during trades: entry, TP1/TP2/TP3, and live P/L.

Alerts

Two ready-made conditions: Buy and Sell when the respective signal triggers.

Add alert: Right click → Add alert → choose the indicator → select condition.

Best practices

Match timeframe to instrument:

Scalping 5–15m: min_score 8, min_stars 3–4.

Swing H1–H4: min_score 7, min_stars 3.

Daily/Equities: min_score 6–7, min_stars 2–3.

Prefer trades with EMA200 and 15m MTF trend alignment.

De-risk around major news.

Use fixed risk per trade (e.g., 1%).

Important notes

Prefer bar close confirmation to avoid mid-bar MACD flips.

Single trade at a time via the in_trade state.

15m MTF uses request.security with lookahead_off; evaluate at close for consistency.

FAQ

Use it standalone? You can, but it’s stronger when combined with S/R zones/trendlines and solid risk management.

Why do targets vary? The AI multiplier adapts TP/SL to current market conditions.

Disclaimer

This is an analytical/educational tool, not financial advice. Always backtest and use appropriate risk management.

Developer note

Built in Pine Script v6, uses var for trade state, clears drawings on the last bar to keep the chart tidy, and raises drawing limits to avoid runtime errors.

免責事項

この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。