OPEN-SOURCE SCRIPT
Apex MTF Index Model

Apex MTF Index Model is a multi-timeframe (MTF) trading strategy designed specifically for index products like the SPDR S&P 500 ETF Trust.
It combines higher timeframe bias with intraday execution to identify high-probability trend continuation setups.
This model is built around a simple idea:
alignment across timeframes + volatility + timing = edge
🔍 Core Logic
🧭 Higher Timeframe Bias
Uses Monthly, Weekly, and Daily trends
Weighted to prioritize macro direction
Outputs a bullish/bearish probability score
⚡ Intraday Execution
Trades only during the New York session (9:30–11:30)
Uses:
EMA (trend)
VWAP (institutional positioning)
📈 Volatility Filter
Requires ATR expansion
Avoids low-volatility / choppy conditions
🎯 Entry Models
1. Pullback Continuation
Trend-aligned market
Price pulls back to EMA
Continuation in direction of bias
2. Opening Range Breakout (ORB)
Break of the first X minutes range
Confirms strong directional intent
Filtered by higher timeframe bias
🧱 Key Levels
Previous Day High (PDH)
Previous Day Low (PDL)
Used for context, liquidity, and breakout behavior
💰 Risk Management
ATR-based stop loss
Dual take-profit structure:
TP1: Partial at ~1.5R
TP2: Runner at configurable RR (default 2.5R)
Designed to balance:
Consistent base hits
Occasional extended trend capture
📊 What to Expect
Moderate win rate (~35–50%)
Positive expectancy via risk/reward structure
Best performance in:
Trending markets
High volatility sessions
Clear macro bias environments
⚠️ Notes
Not designed for:
Low volatility / range-bound days
Overnight or illiquid sessions
Works best on:
Indices (SPY, futures, major ETFs)
Liquid, trend-following instruments
🚀 Philosophy
This is not a prediction tool.
It is a probability alignment framework.
The goal is simple:
Trade less, but trade when multiple forces agree.
If you want, I can also:
Add a short version (for public library visibility)
Write a more aggressive marketing-style description
Or tailor it specifically if you plan to publish or sell it
It combines higher timeframe bias with intraday execution to identify high-probability trend continuation setups.
This model is built around a simple idea:
alignment across timeframes + volatility + timing = edge
🔍 Core Logic
🧭 Higher Timeframe Bias
Uses Monthly, Weekly, and Daily trends
Weighted to prioritize macro direction
Outputs a bullish/bearish probability score
⚡ Intraday Execution
Trades only during the New York session (9:30–11:30)
Uses:
EMA (trend)
VWAP (institutional positioning)
📈 Volatility Filter
Requires ATR expansion
Avoids low-volatility / choppy conditions
🎯 Entry Models
1. Pullback Continuation
Trend-aligned market
Price pulls back to EMA
Continuation in direction of bias
2. Opening Range Breakout (ORB)
Break of the first X minutes range
Confirms strong directional intent
Filtered by higher timeframe bias
🧱 Key Levels
Previous Day High (PDH)
Previous Day Low (PDL)
Used for context, liquidity, and breakout behavior
💰 Risk Management
ATR-based stop loss
Dual take-profit structure:
TP1: Partial at ~1.5R
TP2: Runner at configurable RR (default 2.5R)
Designed to balance:
Consistent base hits
Occasional extended trend capture
📊 What to Expect
Moderate win rate (~35–50%)
Positive expectancy via risk/reward structure
Best performance in:
Trending markets
High volatility sessions
Clear macro bias environments
⚠️ Notes
Not designed for:
Low volatility / range-bound days
Overnight or illiquid sessions
Works best on:
Indices (SPY, futures, major ETFs)
Liquid, trend-following instruments
🚀 Philosophy
This is not a prediction tool.
It is a probability alignment framework.
The goal is simple:
Trade less, but trade when multiple forces agree.
If you want, I can also:
Add a short version (for public library visibility)
Write a more aggressive marketing-style description
Or tailor it specifically if you plan to publish or sell it
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.