OPEN-SOURCE SCRIPT

Dr.Oat SEPA Command

813
# Dr.Oat SEPA Command Center V2

**Developed by Dr.Kor Endo**

Dr.Oat SEPA Command Center V2 is a technical analysis and stock-screening tool inspired by the principles of SEPA (Specific Entry Point Analysis), Stage 2 trend analysis, and volatility contraction concepts.

The indicator is designed to help traders identify stocks that are showing strong trend characteristics, constructive price contraction, proximity to a potential pivot, and breakout confirmation with volume expansion.

## Main Features

### 1. Stage 2 Trend Template

The script evaluates seven technical conditions using:

* SMA 50
* SMA 150
* SMA 200
* SMA 200 rising trend
* Distance above the 52-week low
* Proximity to the 52-week high
* Price position relative to SMA 50

A stock passing all seven conditions is considered to have passed the Stage 2 Trend Template.

### 2. Quantitative VCP Engine

The VCP Score is a quantitative proxy designed to identify characteristics associated with volatility contraction.

The score evaluates:

* Base depth
* Short-term range contraction
* Medium-term range contraction
* ATR contraction
* Volume dry-up
* Right-side price tightness

The VCP Score ranges from **0 to 100**.

Higher scores indicate a tighter and potentially more constructive setup.

### 3. Pivot Detection

The indicator automatically calculates an active pivot using the highest price of the previous configurable lookback period.

The current bar is excluded from the pivot calculation.

The dashboard also displays the percentage distance between the current price and the active pivot.

### 4. Setup Classification

The system classifies each stock into five possible states:

**BREAKOUT**
Trend Template passed, VCP conditions satisfied, price has moved above the pivot within the permitted breakout zone, and relative volume confirms the move.

**READY**
Trend Template passed, VCP conditions satisfied, and price is approaching the pivot from below.

**DEVELOPING**
The stock is in a valid Stage 2 trend, but the setup has not yet reached READY or BREAKOUT conditions.

**EXTENDED**
The stock has moved too far above the active pivot and may no longer offer an attractive entry point according to the configured maximum chase distance.

**SKIP**
The stock does not currently meet the required Stage 2 trend conditions.

Signal Codes:

* `0 = SKIP`
* `1 = DEVELOPING`
* `2 = READY`
* `3 = BREAKOUT`
* `4 = EXTENDED`

### 5. SEPA Score

The indicator calculates a composite **SEPA Score from 0–100** using:

* Trend Template — 30 points
* VCP characteristics — 30 points
* Volume characteristics — 15 points
* Pivot positioning — 15 points
* Breakout confirmation — 10 points

The score is intended as a ranking and screening tool rather than a standalone buy or sell signal.

### 6. Volume Analysis

The system evaluates both:

**Volume Dry-Up**

and

**Relative Volume (RVOL)**

Low relative volume during consolidation can help identify contraction, while expanding relative volume is used as confirmation during potential breakouts.

### 7. Daily RSI

Daily RSI is displayed for additional momentum context.

**Important:** RSI is informational only.

RSI is **not included in the Stage 2 Trend Template** and is **not included in the SEPA Score**.

### 8. Visual Dashboard

The on-chart dashboard provides a compact overview of:

* Current Status
* SEPA Score
* Trend Template Score
* VCP Score
* Daily RSI
* Active Pivot
* Distance to Pivot
* RVOL
* Base Depth
* Volume Dry-Up
* Range Contraction
* ATR Contraction
* Distance from 52-Week High
* Suggested Action

### 9. TradingView Pine Screener Support

The script exposes several numerical outputs that can be used as columns or filters within TradingView Pine Screener, including:

* SEPA Score
* Trend Template Score
* VCP Score
* Daily RSI
* Pivot Distance %
* RVOL
* Signal Code
* Base Depth %
* Volume10 / Volume50
* Trend Template PASS

For screening purposes, the **Daily timeframe (1D)** is recommended.

## Suggested Interpretation

Rather than treating the indicator as an automatic trading system, it can be used as a workflow:

**Market Universe → Stage 2 Trend → VCP → READY → BREAKOUT → Risk Management**

Stocks classified as READY may deserve closer monitoring around their pivot.

BREAKOUT indicates that the configured breakout and volume conditions have been satisfied.

EXTENDED is intended to warn against chasing a stock that has already moved significantly beyond its pivot.

## Important Notes

This indicator uses quantitative approximations of technical concepts such as VCP and SEPA.

Pattern recognition in financial markets is inherently subjective, and no numerical model can perfectly reproduce discretionary chart reading.

The tool should therefore be used as a **screening, ranking, and decision-support system**, not as a replacement for independent analysis.

Users are encouraged to evaluate:

* Overall market conditions
* Liquidity
* Fundamental quality
* Earnings growth
* Relative strength
* Risk/reward
* Position sizing
* Stop-loss strategy

before making any trading decision.

## Disclaimer

This script is provided for educational, research, and technical-analysis purposes only.

It does not constitute investment advice, financial advice, or a recommendation to buy or sell any security.

Past performance and historical technical patterns do not guarantee future results.

Users are solely responsible for their own trading and investment decisions.

---

**Developed by Dr.Kor Endo**

*Quantitative SEPA / Stage 2 / VCP Screening & Decision Support*

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.