OPEN-SOURCE SCRIPT
已更新 Investment Analysis Bar v2

What It Does
A comprehensive analysis bar combining fundamental metrics with technical signals, designed for long-term investors who prioritize quality over momentum.
Core Philosophy: Quality companies trading below their 200 EMA in accumulation zones = opportunities, not warnings.
Tier 1 Bar Metrics
Margins: GM, OM, NIM, FCF Margin
Returns: ROCE, ROE
Growth: Revenue YoY, EPS YoY
Valuation: PE TTM, Forward PE, PEG
Zone: Accumulate / Hold / Trim / Exit
Signal: PRIME / BUY / TRIM / SELL / NEUTRAL
Performance: 1W to 1Y returns
Two Strategy Modes
Value Accumulator (Default) - For long-term position building. Treats below-200-EMA as an opportunity when fundamentals are intact. PRIME signals require: RSI bounce + Volume + Accumulate Zone + All Quality Gates Pass + Below 200 EMA.
Trend Follower - Traditional momentum approach. Prefers entries above 200 EMA.
Quality Gates System
Four fundamental checkpoints:
Gross Margin ≥ 40%
ROCE ≥ 15%
Debt/Equity ≤ 50%
SBC/Revenue ≤ 15%
Strong signals require quality confirmation. PRIME signals require ALL gates to pass.
Zone System
Three calculation methods:
52W Range: Accumulate in bottom 25%, Trim in top 25%
Manual Levels: Set your own price targets
ATR-Based: Dynamic zones from EMA ± ATR
Signal Hierarchy (Value Mode)
SignalMeaning
PRIME 💎Optimal entry - all conditions aligned
BUY 🔼Strong accumulation signal
BUY? ↗Decent entry, not ideal zone
ACCUM 🎯In accumulation zone, quality OK
WAIT ⏳Setup forming, no bounce yet
TRIM 📤Consider taking profits
Alerts Included
Zone transitions (Accumulate, Trim, Exit)
PRIME Entry Signal
Strong Buy / Sell signals
Quality Gate failures
Quality Accumulation Setup
Best Used On
US stocks with fundamental data available. Technical features work on all symbols.
Settings
Fully customizable:
Toggle each metric category
Adjust quality gate thresholds
Choose zone calculation method
Configure RSI/volume parameters
Position bar and panel anywhere
A comprehensive analysis bar combining fundamental metrics with technical signals, designed for long-term investors who prioritize quality over momentum.
Core Philosophy: Quality companies trading below their 200 EMA in accumulation zones = opportunities, not warnings.
Tier 1 Bar Metrics
Margins: GM, OM, NIM, FCF Margin
Returns: ROCE, ROE
Growth: Revenue YoY, EPS YoY
Valuation: PE TTM, Forward PE, PEG
Zone: Accumulate / Hold / Trim / Exit
Signal: PRIME / BUY / TRIM / SELL / NEUTRAL
Performance: 1W to 1Y returns
Two Strategy Modes
Value Accumulator (Default) - For long-term position building. Treats below-200-EMA as an opportunity when fundamentals are intact. PRIME signals require: RSI bounce + Volume + Accumulate Zone + All Quality Gates Pass + Below 200 EMA.
Trend Follower - Traditional momentum approach. Prefers entries above 200 EMA.
Quality Gates System
Four fundamental checkpoints:
Gross Margin ≥ 40%
ROCE ≥ 15%
Debt/Equity ≤ 50%
SBC/Revenue ≤ 15%
Strong signals require quality confirmation. PRIME signals require ALL gates to pass.
Zone System
Three calculation methods:
52W Range: Accumulate in bottom 25%, Trim in top 25%
Manual Levels: Set your own price targets
ATR-Based: Dynamic zones from EMA ± ATR
Signal Hierarchy (Value Mode)
SignalMeaning
PRIME 💎Optimal entry - all conditions aligned
BUY 🔼Strong accumulation signal
BUY? ↗Decent entry, not ideal zone
ACCUM 🎯In accumulation zone, quality OK
WAIT ⏳Setup forming, no bounce yet
TRIM 📤Consider taking profits
Alerts Included
Zone transitions (Accumulate, Trim, Exit)
PRIME Entry Signal
Strong Buy / Sell signals
Quality Gate failures
Quality Accumulation Setup
Best Used On
US stocks with fundamental data available. Technical features work on all symbols.
Settings
Fully customizable:
Toggle each metric category
Adjust quality gate thresholds
Choose zone calculation method
Configure RSI/volume parameters
Position bar and panel anywhere
版本注释
### What It DoesA comprehensive analysis bar combining fundamental metrics with technical signals, designed for long-term investors who prioritize quality over momentum.
**Core Principle**: Quality Gates determine buy/avoid. EMA 200 is a sizing enhancer — not a buy signal.
```
Quality Gates Pass → BUY
├── Below 200 EMA → Scale UP (enhanced opportunity)
└── Above 200 EMA → Normal size (still a buy)
Quality Gates Fail → AVOID (EMA irrelevant)
```
---
### Tier 1 Bar Metrics
• **Margins**: GM, OM, NIM, FCF Margin
• **Returns**: ROCE, ROE
• **Growth**: Revenue YoY, EPS YoY
• **Valuation**: PE TTM, Forward PE, PEG
• **Zone**: Accumulate / Hold / Trim / Exit
• **Signal**: PRIME / BUY+ / BUY / AVOID / TRIM / NEUTRAL
• **Performance**: 1W to 1Y returns
---
### Two Strategy Modes
**Opportunity Enhancement** (Default)
Gates = Direction, EMA = Sizing. Quality companies are buyable above or below 200 EMA — you just size differently.
| Setup | Signal | Action |
|-------|--------|--------|
| Gates Pass + Below EMA | BUY+ / PRIME | Scale UP |
| Gates Pass + Above EMA | BUY | Normal size |
| Gates Fail | AVOID ⛔ | Don't buy |
**Trend Follower**
Traditional momentum approach. Prefers entries above 200 EMA.
---
### Quality Gates System
Four fundamental checkpoints — gates determine if you buy, not EMA:
• Gross Margin ≥ 40%
• ROCE ≥ 15%
• Debt/Equity ≤ 50%
• SBC/Revenue ≤ 15%
Gates Pass = Proceed. Gates Fail = AVOID regardless of technicals.
---
### Zone System
Three calculation methods:
• **52W Range**: Accumulate in bottom 25%, Trim in top 25%
• **Manual Levels**: Set your own price targets
• **ATR-Based**: Dynamic zones from EMA ± ATR
---
### Signal Hierarchy (Opportunity Enhancement Mode)
| Signal | Meaning | Sizing |
|--------|---------|--------|
| PRIME 💎 | All gates + Below EMA + Accum Zone + RSI bounce | Maximum conviction |
| BUY+ 🔼 | All gates + Below EMA + RSI bounce | Enhanced (scale up) |
| BUY 🔼 | Quality OK + Above EMA + RSI bounce | Normal |
| BUY? ↗ | Quality OK + RSI bounce | Smaller position |
| ACCUM+ 🎯 | In zone + Quality + Below EMA | Watch for trigger |
| WAIT+ ⏳ | Oversold + Quality + Below EMA | Setup forming |
| AVOID ⛔ | Gates failing | Do not buy |
| TRIM 📤 | Overbought in Trim/Exit zone | Take profits |
---
### Key Insight
A quality company above its 200 EMA is still buyable — you just don't get the discount. Don't wait forever for a pullback that may never come.
---
### Alerts Included
• PRIME Entry Signal
• Enhanced Buy (BUY+) - Scale UP
• Normal Buy - Standard size
• AVOID - Gates Failing
• Trim Signal
• Zone transitions
---
### Best Used On
US stocks with fundamental data available. Technical features work on all symbols.
---
### Settings
Fully customizable:
• Toggle each metric category
• Adjust quality gate thresholds
• Choose zone calculation method
• Configure RSI/volume parameters
• Adjustable text size (Tiny/Small/Normal/Large)
---
**Note**: For educational purposes only. Not financial advice.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。