OPEN-SOURCE SCRIPT
Apex System

**Apex System – Market Structure & Smart Money Entry Indicator**
Apex System is a market structure–based indicator designed to help traders identify high-probability trade opportunities using a combination of higher-timeframe bias, structural breaks, displacement, and inefficiency detection.
The script focuses on aligning multiple confirmations before generating a signal, helping filter out low-quality setups and improve trade timing.
---
### Core Concepts Used
**Higher Timeframe Bias**
The system determines overall market direction using a higher timeframe EMA and RSI. Trades are only taken in the direction of the dominant trend.
**Market Structure (Fractals & BOS)**
Fractal highs and lows are used to track market structure. When price breaks a key fractal level, a **Break of Structure (BOS)** is marked on the chart.
**Displacement Detection**
Strong impulsive candles are identified using ATR. These candles indicate potential institutional participation and momentum.
**Fair Value Gaps (FVG)**
The script highlights inefficiencies in price delivery where the market moves too quickly, leaving gaps that often act as areas of interest.
**Order Blocks**
Potential supply and demand zones are drawn based on key reversal candles.
---
### How Trade Signals Are Generated
A signal appears only when multiple conditions align:
**BUY Signal**
* Higher timeframe trend is bullish
* Bullish break of market structure occurs
* Strong bullish displacement candle appears
* A bullish fair value gap forms
**SELL Signal**
* Higher timeframe trend is bearish
* Bearish break of market structure occurs
* Strong bearish displacement candle appears
* A bearish fair value gap forms
When these conditions align, the indicator prints **BUY or SELL labels** on the chart.
---
### How to Use the Indicator
1. Use the indicator on your preferred timeframe.
2. Observe the higher timeframe bias to understand market direction.
3. Wait for a **BOS** confirmation.
4. Look for **BUY/SELL signals** that align with the bias.
5. Use the highlighted **FVG and Order Blocks** as areas for entries, stop placement, or profit targets.
This tool is designed to assist traders who incorporate **Smart Money Concepts (SMC)** or **market structure analysis** in their trading approach.
---
### Key Features
• Higher timeframe trend filter
• Market structure break detection (BOS)
• Displacement detection using ATR
• Fair Value Gap visualization
• Order Block zones
• Automatic BUY/SELL signal labels
• Alert conditions for automated notifications
---
### Notes
This indicator is intended as a **decision-support tool** and should be used alongside proper risk management and trading discipline.
Apex System is a market structure–based indicator designed to help traders identify high-probability trade opportunities using a combination of higher-timeframe bias, structural breaks, displacement, and inefficiency detection.
The script focuses on aligning multiple confirmations before generating a signal, helping filter out low-quality setups and improve trade timing.
---
### Core Concepts Used
**Higher Timeframe Bias**
The system determines overall market direction using a higher timeframe EMA and RSI. Trades are only taken in the direction of the dominant trend.
**Market Structure (Fractals & BOS)**
Fractal highs and lows are used to track market structure. When price breaks a key fractal level, a **Break of Structure (BOS)** is marked on the chart.
**Displacement Detection**
Strong impulsive candles are identified using ATR. These candles indicate potential institutional participation and momentum.
**Fair Value Gaps (FVG)**
The script highlights inefficiencies in price delivery where the market moves too quickly, leaving gaps that often act as areas of interest.
**Order Blocks**
Potential supply and demand zones are drawn based on key reversal candles.
---
### How Trade Signals Are Generated
A signal appears only when multiple conditions align:
**BUY Signal**
* Higher timeframe trend is bullish
* Bullish break of market structure occurs
* Strong bullish displacement candle appears
* A bullish fair value gap forms
**SELL Signal**
* Higher timeframe trend is bearish
* Bearish break of market structure occurs
* Strong bearish displacement candle appears
* A bearish fair value gap forms
When these conditions align, the indicator prints **BUY or SELL labels** on the chart.
---
### How to Use the Indicator
1. Use the indicator on your preferred timeframe.
2. Observe the higher timeframe bias to understand market direction.
3. Wait for a **BOS** confirmation.
4. Look for **BUY/SELL signals** that align with the bias.
5. Use the highlighted **FVG and Order Blocks** as areas for entries, stop placement, or profit targets.
This tool is designed to assist traders who incorporate **Smart Money Concepts (SMC)** or **market structure analysis** in their trading approach.
---
### Key Features
• Higher timeframe trend filter
• Market structure break detection (BOS)
• Displacement detection using ATR
• Fair Value Gap visualization
• Order Block zones
• Automatic BUY/SELL signal labels
• Alert conditions for automated notifications
---
### Notes
This indicator is intended as a **decision-support tool** and should be used alongside proper risk management and trading discipline.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.