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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.