OPEN-SOURCE SCRIPT

TriPack Rule Scanner

3 646
TriPack Rule Scanner

A table-based market scanner for up to 120 symbols on one chart. It is an indicator, not a strategy: it does not place orders, run a portfolio backtest, or report net profit.

TradingView allows a limited number of unique request.security() calls per script (40 on most plans). This script packs three symbols into one formula ticker, then unpacks close (and uses open / high / low inside rules). Oscillators are calculated inside each request on the scan timeframe you choose, not on the chart's bar size. That keeps RSI and the other metrics aligned with Daily (or whatever TF you set) even if the chart is 5-minute.

What you get
  • Up to 120 user-picked symbols (defaults can be changed; any exchange TradingView supports).
  • One metric column: RSI, StochRSI, Bollinger %B, ROC, PPO, distance from SMA, or CMO.
  • Up to eight scan rules. Each rule is Buy or Sell, compares two fields or a field vs a number, and can use greater/less, equality, or cross up / cross down.
  • Buy rules combine with AND or OR. Sell rules combine separately with AND or OR.
  • Table signals: BUY, SELL, BOTH. A star (*) means the signal is new on this scan bar.
  • Banner counts and optional alerts when enough new BUY or SELL names appear on a new scan-timeframe bar.
  • The chart's own symbol is marked in the table if it is in the list.


How to use it
  1. Set Timeframe (Daily is a sensible default for a swing scan).
  2. Load or edit the 40 packs. In each pack, put the highest-priced name in Expensive, then Mid, then Cheap. Wrong order can collide when values are unpacked.
  3. Turn on the rules you want. If no Buy rule is On, nothing will show BUY. Same for Sell.
  4. Use Show rows = New to keep only fresh signals, or Buy / Sell to hide the rest.
  5. Create a TradingView alert on this script if you want notifications. The script does not send alerts by itself until you create one.


This tool does not tell you what to trade. It lists names that match rules you defined. Past matches do not imply future results. You are responsible for risk, costs, and whether a setup fits your account.


What to watch (important)
  • Pack order. Expensive / Mid / Cheap are digit slots in one float, not labels of quality. Mix a very cheap name into the Expensive slot (or the reverse) and unpacking can fail or look like "Invalid".
  • Close is the reliable series. Oscillators use unpacked close. High and low of a spread / formula ticker are approximate. Prefer Close, RSI, StochRSI, %B, ROC, PPO, SMA distance, and CMO in rules. Treat High/Low rules as rough.
  • No volume. Spread volume is not three real volumes. There is no MFI, VWAP, or volume filter.
  • AND vs OR. AND on several Buy rules will show few rows. That is expected. OR will show many.
  • New vs still true. RSI still below 30 is BUY without a star. BUY* is the bar it became true. Alerts follow new counts on a new scan-timeframe bar, not every chart tick.
  • Plan limits. One copy of the script uses the 40-request budget. Adding the same script twice does not share settings; each copy has its own universe.
  • Memory / load. Heavy oscillator + rule work on 120 names can hitch on a weak machine or a very low chart timeframe. If TradingView reports a memory limit, reduce rules or stay on Daily.
  • Invalid rows. Delisted, halted, or badly packed names show Invalid on Close only. They are not signals.
  • Not a backtest. There is no commission, slippage, or equity curve. Do not treat the table as proof of a trading system.
  • Publication chart. If you publish, use a clean chart: this script only, table readable, no extra indicators unless the text says they are required.


Disclaimer
Information is for education and visual scanning only. It is not financial, investment, or trading advice. Securities and other instruments can result in loss of capital. TradingView and the author are not responsible for decisions you make with this script. Scripts, ideas, and third-party content on the platform are provided as-is.

免责声明

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