OPEN-SOURCE SCRIPT

CORTEX MULTI-TIMEFRAME POI ENGINE

1 101
# CORTEX MULTI-TIMEFRAME POI ENGINE

The CORTEX MULTI-TIMEFRAME POI ENGINE is a rules-based TradingView indicator designed to identify, qualify, and manage supply-and-demand Points of Interest across multiple structural timeframes.

Rather than marking every pivot, opposing candle, or conventional order block, CORTEX applies a structured qualification process built around confirmed market structure, consolidation quality, displacement, retracement depth, imbalance, liquidity proxies, and breaker-block behavior.

## Multi-Timeframe Market Structure

CORTEX organizes market location into three distinct layers:

- **Daily POIs** establish higher-timeframe macro location.
- **H4 POIs** identify intermediate structural areas.
- **M15 and M5 AM-session POIs** support intraday refinement on NQ and ES.

Daily, H4, M15, and M5 layers are independently controlled, allowing traders to reduce chart clutter and focus only on the context relevant to their current workflow.

## POI Qualification

A standard CORTEX POI progresses through an objective detection pipeline:

1. Meaningful retracement
2. Compressed base formation
3. Institutional Footprint Candle refinement
4. Directional displacement
5. Mandatory break of structure
6. Liquidity and imbalance evaluation
7. Width and location validation
8. Transparent quality scoring
9. Confirmed zone creation

Break of structure is mandatory. Additional characteristics contribute to a configurable quality score rather than relying on unexplained probability claims.

Available qualification modes include:

- **Loose** for broader structural identification
- **Balanced** for the recommended combination of quality and frequency
- **Strict** for selective, higher-confluence zones
- **Custom** for complete user control

## Breaker-Block Fusion

The engine includes an independently developed ICT breaker-block module.

A potential order block becomes a breaker only after a later confirmed candle closes through its opposite boundary. Wick-only violations do not qualify.

Breaker blocks may:

- Create standalone breaker POIs
- Add confluence to existing supply or demand zones
- Merge with overlapping, same-direction POIs
- Refine the final area to the valid price intersection
- Increase the zone’s score without exceeding 100

Merged areas are classified as **Breaker-Confluent POIs**, helping distinguish ordinary structural zones from areas supported by a confirmed failed-block transition.

## CORTEX AM Session POI Layer

The intraday module is designed specifically for NQ and ES during the default **08:00–11:00 America/New_York** session.

It provides:

- M15 POIs on M15 and M5 charts
- M5 POIs on M5 charts
- Automatic daylight-saving adjustment
- Automatic NQ and ES futures-root recognition
- Optional manual instrument override
- Confirmed post-session BOS allowance
- Independent demand, supply, timeframe, and display controls

Mandatory default width limits are:

- **NQ: 250 ticks**
- **ES: 40 ticks**

Zone width is calculated using the instrument’s native minimum tick size. Candidates exceeding the applicable limit are rejected before publication.

## Transparent Scoring

Each POI receives an objective score from 0 to 100. Depending on the selected mode and timeframe, the score may incorporate:

- Confirmed BOS
- Base quality
- Retracement depth
- Departure strength
- Liquidity sweep
- Fair-value gap or imbalance
- Resting-liquidity proxy
- Breaker-block confluence

Scores and classifications can be displayed directly on zone labels and in the Data Window.

## Zone Lifecycle Management

Every confirmed POI is actively managed through the following lifecycle:

- **Fresh**
- **Tested**
- **Mitigated**
- **Invalidated**
- **Expired**

Users can configure mitigation and invalidation behavior, retain invalidated zones for historical review, and control how long intraday zones remain available.

## Non-Repainting Design

CORTEX uses confirmed source-timeframe information for zone creation.

Higher-timeframe results are transported using confirmed historical offsets, preventing unfinished Daily, H4, M15, or M5 candles from publishing premature zones. A confirmed POI may be anchored to its original footprint candle, but it does not become logically active before its qualifying structure is complete.

This deliberate confirmation delay is intended to support stable behavior across:

- Historical charts
- Realtime execution
- TradingView Bar Replay

## Diagnostics and Alerts

The CORTEX diagnostics dashboard reports:

- Latest qualification stage
- Signals detected
- Candidates awaiting BOS
- Width-filter rejections
- Breaker flips
- Zones retained
- Session status
- Detected instrument
- Applicable tick limit
- Chart-timeframe compatibility

Alerts are available for new POIs, breaker zones, confluence, first tests, mitigation, and invalidation. Alerts should be configured for **Once Per Bar Close**.

## Intended Workflow

CORTEX is designed to support a top-down process:

1. Use Daily zones to establish macro location.
2. Use H4 zones to refine structural context.
3. Use M15 zones for intraday directional areas.
4. Use M5 zones for lower-timeframe refinement.
5. Evaluate price behavior at qualified zones rather than treating every zone as an automatic entry.

CORTEX does not claim to identify actual institutional orders. Supply, demand, liquidity, imbalance, and breaker classifications are objective technical proxies derived from price action.

This indicator is an analytical framework—not financial advice or a guarantee of future performance. Traders should combine it with appropriate confirmation, risk management, and independent judgment.

免责声明

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