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.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน