PROTECTED SOURCE SCRIPT

Powell's Brain Mk.4.4 [Scalper Edition]

42
Title: Powell's Brain Mk.4.4 [Scalper System]

Description

Powell's Brain is a mechanical scalping system designed for volatile assets (like SPY, QQQ, NVDA, and TSLA) on 1-minute and 5-minute timeframes.

Unlike standard indicators that spam signals at every crossover, this script uses a "Subtractive" Philosophy. It starts with a trend crossover signal and then runs it through a squad of 6 distinct filters. If any filter detects low probability (chop, low volume, weak momentum), the trade is blocked.

This is the Scalper Edition, tuned to catch V-Shape reversals while still protecting capital during sideways chop.

🧠 How It Works

The system relies on the confluence of four market forces: Momentum, Energy, Trend Strength, and AI Confirmation.

1. The Core Strategy (The Engine)

Dual EMA Crossover: Uses a Fast (9) and Slow (50) EMA to identify immediate trend changes.

Slope Detection: A trade is only considered if the EMAs are separating with sufficient velocity (0.04% slope threshold). This prevents trading when lines are flat/tangled.

2. The "No" Squad (Filters)

A signal is rejected unless it passes these checks:

Volume Gate: Volume must be at least 80% (0.8x) of the 20-period average. This filters out pre-market noise or lunch-hour apathy.

ADX Shield: The Average Directional Index must be > 20. If ADX is lower, the market is chopping, and the script forces you to sit on your hands.

Time-of-Day: By default, it targets "Prime Hours" (09:30–11:00 & 14:00–16:00 EST) to avoid the "lunchtime trap."

Cooldown: Enforces a 3-bar wait period between signals to prevent signal flickering in high-volatility zones.

3. The AI Engine (k-NN Machine Learning)

Included is a k-Nearest Neighbors (k-NN) implementation that analyzes historical RSI and Relative Volume patterns.

It compares the current market state to the last ~1,000 bars.

It calculates a "Confidence %" based on how often similar past setups resulted in a bullish or bearish move.

AI Gating: You can enable a "Strict Mode" in settings where the script will block any trade that the AI does not agree with (Confidence < 55%).

4. The Squeeze Filter (TTM Logic)

An optional filter allows you to trade only on volatility expansion (Bollinger Bands exiting Keltner Channels). This is disabled by default to allow for standard trend scalping but can be enabled for breakout hunting.

🚦 How to Use

The Signals:

Green "CALL" Label: Bullish Momentum + Volume + Trend Strength.

Red "PUT" Label: Bearish Momentum + Volume + Breakdown.

The HUD (Heads-Up Display):

Monitor the top-right panel for Market Flow, Squeeze Status, and AI Confidence.

If the AI text is Orange ("INITIALIZING"), wait for more data to load.

The Debugger:

If you see a crossover but NO signal, turn on "Show Debug Labels" in settings.

The chart will print exactly why the trade was skipped (e.g., Vol❌ means volume was too low, Slope❌ means the trend was too flat).

⚙️ Settings Guide

Strategy Core: Adjust Min EMA Separation to tune sensitivity. Higher = Fewer, safer trades. Lower = Faster entries.

Filters:

Trade with 200 EMA Trend: Keep OFF for scalping reversals. Turn ON for strict trend following.

Gate Entries with AI: Turn ON if you want the Machine Learning engine to veto low-confidence setups.

Visuals: Toggle Dark/Light themes to match your chart.

Disclaimer

This script is a tool for identifying high-probability setups based on historical data and technical analysis. It does not guarantee future performance. Always use proper risk management (Stop Losses are included in the logic visuals). In less words DON'T BE AN IDIOT.

By FallenAngel666

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน