OPEN-SOURCE SCRIPT
تم تحديثه

Stan Weinstein Power Zone Screener

260
Sure — here's the short version:

**What it does:** A Pine v6 indicator that checks price against Stan Weinstein's classic 30-period MA (default: weekly timeframe). If price is above the MA → **Power Zone**. Below it → **No Power Zone**.

**Screener part:** You paste a comma-separated list of stocks (up to 39 per copy) into an input box. The script loops through all of them using `request.security()` — something only possible in Pine v6 — pulls each stock's price and MA, and sorts them into a table with Power Zone stocks on top.

**Alerts:** Fires automatically whenever a stock newly crosses into (or out of) the Power Zone. You just set up one TradingView alert on "Any alert() function call" and it covers every stock in your list.

**Bonus:** Also plots the MA and tints the chart background green/red for whatever symbol you're currently viewing.


ملاحظات الأخبار
Sure — here's the short version:

**What it does:** A Pine v6 indicator that checks price against Stan Weinstein's classic 30-period MA (default: weekly timeframe). If price is above the MA → **Power Zone**. Below it → **No Power Zone**.

**Screener part:** You paste a comma-separated list of stocks (up to 39 per copy) into an input box. The script loops through all of them using `request.security()` — something only possible in Pine v6 — pulls each stock's price and MA, and sorts them into a table with Power Zone stocks on top.

**Alerts:** Fires automatically whenever a stock newly crosses into (or out of) the Power Zone. You just set up one TradingView alert on "Any alert() function call" and it covers every stock in your list.

**Bonus:** Also plots the MA and tints the chart background green/red for whatever symbol you're currently viewing.

ملاحظات الأخبار
**What changed:** Added two explicit conditions — `Above Stan Indicator` and `Below Stan Indicator` — as separate plot columns, alongside your existing entry/exit crossover alerts.

**Why:** Your crossover alerts (`bullCross`/`bearCross`) only fire the moment a stock flips zones. These new ones are **state-based** — true on every bar a stock currently sits above or below the MA — so you can filter/count them in the Pine Screener.

**How to use it:** In the Screener, add these as columns, filter `Above Stan Indicator = 1` to see (and count) every stock in your index currently in the Power Zone, and `Below Stan Indicator = 1` for the rest.
ملاحظات الأخبار
**What changed:** Renamed/added two new alert conditions — **"In Power Zone"** and **"In No Power Zone"** — separate from your existing "Entered"/"Exited" ones.

**Why:** Entered/Exited only fire the moment a stock flips. These new ones fire on **every bar** a stock is already sitting above or below the MA — so they catch all stocks currently in that state, not just new flips.

**Result:** In the Screener/alert dropdown you'll now see 4 conditions total: Entered Power Zone, Exited Power Zone, In Power Zone, In No Power Zone. Use the last two to see/count everything already in each zone.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.