已更新
Stan Weinstein Power Zone Screener

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 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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。