[TH] กลยุทธ์ SMC หลายกรอบเวลา (V5.2 - M15 Lead)English Explanation
This Pine Script code implements a multi-timeframe trading strategy based on Smart Money Concepts (SMC). It's designed to identify high-probability trading setups by aligning signals across three different timeframes.
The core logic is as follows:
High Timeframe (HTF) - M15: Determines the overall market direction or bias.
Medium Timeframe (MTF) - M5: Identifies potential Points of Interest (POI), such as Order Blocks or Fair Value Gaps, in alignment with the M15 bias.
Low Timeframe (LTF) - Current Chart: Looks for a specific entry trigger within the M5 POI to execute the trade.
Detailed Breakdown
## Part 1: Inputs & Settings
This section allows you to customize the indicator's parameters:
General Settings:
i_pivotLookback: Sets the lookback period for identifying pivot highs and lows on the LTF, which is crucial for finding the Change of Character (CHoCH).
M15 Bias Settings:
i_m15EmaFast / i_m15EmaSlow: These two EMA (Exponential Moving Average) values on the 15-minute chart determine the main trend. A bullish trend is confirmed when the fast EMA is above the slow EMA, and vice-versa for a bearish trend.
M5 Point of Interest (POI) Settings:
i_showM5Fvg / i_showM5Ob: Toggles the visibility of Fair Value Gaps (FVG) and Order Blocks (OB) on the 5-minute chart. These are the zones where the script will look for trading opportunities.
i_maxPois: Limits the number of POI zones drawn on the chart to keep it clean.
LTF Entry Settings:
i_entryMode:
Confirmation: The script waits for a Change of Character (CHoCH) on the LTF (your current chart) after the price enters an M5 POI. A CHoCH is a break of a recent pivot high (for buys) or pivot low (for sells), suggesting a potential reversal. This is the safer entry method.
Aggressive: The script triggers an entry as soon as the price touches the 50% level of the M5 POI, without waiting for a CHoCH. This is higher risk but can provide a better entry price.
i_showChoch: Toggles the visibility of the CHoCH confirmation lines.
Trade Management Settings:
i_tpRatio: Sets the Risk-to-Reward Ratio (RRR) for the Take Profit target. For example, a value of 2.0 means the Take Profit distance will be twice the Stop Loss distance.
i_slMode: (New in V5.2) Provides four different methods to calculate the Stop Loss:
POI Zone (Default): Places the SL at the outer edge of the M5 POI zone.
Last Swing: Places the SL at the most recent LTF swing high/low before the entry.
ATR: Uses the Average True Range (ATR) indicator to set a volatility-based SL.
Previous Candle: Places the SL at the high or low of the candle immediately preceding the entry. This is the tightest and riskiest option.
i_maxHistory: Sets the number of past trades to display on the chart.
## Part 2: Data Types & Variables
This section defines custom data structures (type) to organize information:
Poi: A structure to hold all information related to a single Point of Interest, including its price boundaries, direction (bullish/bearish), and whether it has been mitigated (touched by price).
Trade: A structure to store details for each trade, such as its entry price, SL, TP, result (Win/Loss/Active), and chart objects for drawing.
## Part 3: Core Logic & Calculations
This is the engine of the indicator:
Data Fetching: It uses request.security to pull EMA data from the M15 timeframe and candle data (high, low, open, close) from the M5 timeframe.
POI Identification: The script constantly scans the M5 data for FVG and OB patterns. When a valid pattern is found that aligns with the M15 bias (e.g., a bullish OB during an M15 uptrend), it's stored as a Poi and drawn on the chart.
Entry Trigger:
It checks if the price on the LTF enters a valid (unmitigated) POI zone.
Based on the selected i_entryMode, it either waits for a CHoCH or enters aggressively.
Once an entry condition is met, it calculates the SL based on the i_slMode, calculates the TP using the i_tpRatio, and creates a new Trade.
Trade Monitoring: For every active trade, the script checks on each new bar if the price has hit the SL or TP level. When it does, the trade's result is updated, and the visual boxes are finalized.
## Part 5: On-Screen Display
This part creates the Performance Dashboard table shown on the top-right of the chart. It provides a real-time summary of:
M15 Bias: Current market direction.
Total Trades: The total number of completed trades from the history.
Win Rate: The percentage of winning trades.
Total R-Multiple: The cumulative Risk-to-Reward multiple (sum of RRR from wins minus losses). A positive value indicates overall profitability.
🇹🇭 คำอธิบายและข้อแนะนำภาษาไทย
สคริปต์นี้เป็น Indicator สำหรับกลยุทธ์การเทรดแบบ Smart Money Concepts (SMC) ที่ใช้การวิเคราะห์จากหลายกรอบเวลา (Multi-Timeframe) เพื่อหาจุดเข้าเทรดที่มีความเป็นไปได้สูง
หลักการทำงานของ Indicator มีดังนี้:
Timeframe ใหญ่ (HTF) - M15: ใช้กำหนดทิศทางหลักของตลาด หรือ "Bias"
Timeframe กลาง (MTF) - M5: ใช้หาโซนสำคัญ หรือ "Point of Interest (POI)" เช่น Order Blocks หรือ Fair Value Gaps ที่สอดคล้องกับทิศทางจาก M15
Timeframe เล็ก (LTF) - กราฟปัจจุบัน: ใช้หาสัญญาณยืนยันเพื่อเข้าเทรดในโซน POI ที่กำหนดไว้
รายละเอียดของโค้ด
## ส่วนที่ 1: การตั้งค่า (Inputs & Settings)
ส่วนนี้ให้คุณปรับแต่งค่าต่างๆ ของ Indicator ได้:
การตั้งค่าทั่วไป:
i_pivotLookback: กำหนดระยะเวลาที่ใช้มองหาจุดกลับตัว (Pivot) ใน Timeframe เล็ก (LTF) เพื่อใช้ยืนยันสัญญาณ Change of Character (CHoCH)
การตั้งค่า M15 (ทิศทางหลัก):
i_m15EmaFast / i_m15EmaSlow: ใช้เส้น EMA 2 เส้นบน Timeframe 15 นาที เพื่อกำหนดเทรนด์หลัก หาก EMA เร็วอยู่เหนือ EMA ช้า จะเป็นเทรนด์ขาขึ้น และในทางกลับกัน
การตั้งค่า M5 (จุดสนใจ - POI):
i_showM5Fvg / i_showM5Ob: เปิด/ปิด การแสดงโซน Fair Value Gaps (FVG) และ Order Blocks (OB) บน Timeframe 5 นาที ซึ่งเป็นโซนที่สคริปต์จะใช้หาโอกาสเข้าเทรด
i_maxPois: จำกัดจำนวนโซน POI ที่จะแสดงผลบนหน้าจอ เพื่อไม่ให้กราฟดูรกเกินไป
การตั้งค่า LTF (การเข้าเทรด):
i_entryMode:
ยืนยัน (Confirmation): เป็นโหมดที่ปลอดภัยกว่า โดยสคริปต์จะรอให้เกิดสัญญาณ Change of Character (CHoCH) ใน Timeframe เล็กก่อน หลังจากที่ราคาเข้ามาในโซน POI แล้ว
เชิงรุก (Aggressive): เป็นโหมดที่เสี่ยงกว่า โดยสคริปต์จะเข้าเทรดทันทีที่ราคาแตะระดับ 50% ของโซน POI โดยไม่รอสัญญาณยืนยัน CHoCH
i_showChoch: เปิด/ปิด การแสดงเส้น CHoCH บนกราฟ
การตั้งค่าการจัดการเทรด:
i_tpRatio: กำหนด อัตราส่วนกำไรต่อความเสี่ยง (Risk-to-Reward Ratio) เพื่อตั้งเป้าหมายทำกำไร (Take Profit) เช่น 2.0 หมายถึงระยะทำกำไรจะเป็น 2 เท่าของระยะตัดขาดทุน
i_slMode: (ฟีเจอร์ใหม่ V5.2) มี 4 รูปแบบในการคำนวณ Stop Loss:
โซน POI (ค่าเริ่มต้น): วาง SL ไว้ที่ขอบนอกสุดของโซน POI
Swing ล่าสุด: วาง SL ไว้ที่จุด Swing High/Low ล่าสุดของ Timeframe เล็ก (LTF) ก่อนเข้าเทรด
ATR: ใช้ค่า ATR (Average True Range) เพื่อกำหนด SL ตามระดับความผันผวนของราคา
แท่งเทียนก่อนหน้า: วาง SL ไว้ที่ราคา High/Low ของแท่งเทียนก่อนหน้าที่จะเข้าเทรด เป็นวิธีที่ SL แคบและเสี่ยงที่สุด
i_maxHistory: กำหนดจำนวนประวัติการเทรดที่จะแสดงย้อนหลังบนกราฟ
## ส่วนที่ 2: ประเภทข้อมูลและตัวแปร
ส่วนนี้เป็นการสร้างโครงสร้างข้อมูล (type) เพื่อจัดเก็บข้อมูลให้เป็นระบบ:
Poi: เก็บข้อมูลของโซน POI แต่ละโซน เช่น กรอบราคาบน-ล่าง, ทิศทาง (ขึ้น/ลง) และสถานะว่าถูกใช้งานไปแล้วหรือยัง (Mitigated)
Trade: เก็บรายละเอียดของแต่ละการเทรด เช่น ราคาเข้า, SL, TP, ผลลัพธ์ (Win/Loss/Active) และอ็อบเจกต์สำหรับวาดกล่องบนกราฟ
## ส่วนที่ 3: ตรรกะหลักและการคำนวณ
เป็นหัวใจสำคัญของ Indicator:
ดึงข้อมูลข้าม Timeframe: ใช้ฟังก์ชัน request.security เพื่อดึงข้อมูล EMA จาก M15 และข้อมูลแท่งเทียนจาก M5 มาใช้งาน
ระบุ POI: สคริปต์จะค้นหา FVG และ OB บน M5 ตลอดเวลา หากเจ้ารูปแบบที่สอดคล้องกับทิศทางหลักจาก M15 (เช่น เจอ Bullish OB ในขณะที่ M15 เป็นขาขึ้น) ก็จะวาดโซนนั้นไว้บนกราฟ
เงื่อนไขการเข้าเทรด:
เมื่อราคาใน Timeframe เล็ก (LTF) วิ่งเข้ามาในโซน POI ที่ยังไม่เคยถูกใช้งาน
สคริปต์จะรอสัญญาณตาม i_entryMode ที่เลือกไว้ (รอ CHoCH หรือเข้าแบบ Aggressive)
เมื่อเงื่อนไขครบ จะคำนวณ SL และ TP จากนั้นจึงบันทึกการเทรดใหม่
ติดตามการเทรด: สำหรับเทรดที่ยัง "Active" อยู่ สคริปต์จะคอยตรวจสอบทุกแท่งเทียนว่าราคาไปถึง SL หรือ TP แล้วหรือยัง เมื่อถึงจุดใดจุดหนึ่ง จะบันทึกผลและสิ้นสุดการวาดกล่องบนกราฟ
## ส่วนที่ 5: การแสดงผลบนหน้าจอ
ส่วนนี้จะสร้างตาราง "Performance Dashboard" ที่มุมขวาบนของกราฟ เพื่อสรุปผลการทำงานแบบ Real-time:
M15 Bias: แสดงทิศทางของตลาดในปัจจุบัน
Total Trades: จำนวนเทรดทั้งหมดที่เกิดขึ้นในประวัติ
Win Rate: อัตราชนะ คิดเป็นเปอร์เซ็นต์
Total R-Multiple: ผลตอบแทนรวมจากความเสี่ยง (R) ทั้งหมด (ผลรวม RRR ของเทรดที่ชนะ ลบด้วยจำนวนเทรดที่แพ้) หากเป็นบวกแสดงว่ามีกำไรโดยรวม
📋 ข้อแนะนำในการใช้งาน
Timeframe ที่เหมาะสม: Indicator นี้ถูกออกแบบมาให้ใช้กับ Timeframe เล็ก (LTF) เช่น M1, M3 หรือ M5 เนื่องจากมันดึงข้อมูลจาก M15 และ M5 มาเป็นหลักการอยู่แล้ว
สไตล์การเทรด:
Confirmation: เหมาะสำหรับผู้ที่ต้องการความปลอดภัยสูง รอการยืนยันก่อนเข้าเทรด อาจจะตกรถบ้าง แต่ลดความเสี่ยงจากการเข้าเทรดเร็วเกินไป
Aggressive: เหมาะสำหรับผู้ที่ยอมรับความเสี่ยงได้สูงขึ้น เพื่อให้ได้ราคาเข้าที่ดีที่สุด
การเลือก Stop Loss:
"Swing ล่าสุด" และ "โซน POI" เป็นวิธีมาตรฐานตามหลัก SMC
"ATR" เหมาะกับตลาดที่มีความผันผวนสูง เพราะ SL จะปรับตามสภาพตลาด
"แท่งเทียนก่อนหน้า" เป็นวิธีที่เสี่ยงที่สุด เหมาะกับการเทรดเร็วและต้องการ RRR สูงๆ แต่ก็มีโอกาสโดน SL ง่ายขึ้น
การบริหารความเสี่ยง: Indicator นี้เป็นเพียง เครื่องมือช่วยวิเคราะห์ ไม่ใช่สัญญาณซื้อขายอัตโนมัติ 100% ผู้ใช้ควรมีความเข้าใจในหลักการของ SMC และทำการบริหารความเสี่ยง (Risk Management) อย่างเคร่งครัดเสมอ
การทดสอบย้อนหลัง (Backtesting): ควรทำการทดสอบ Indicator กับสินทรัพย์และตั้งค่าต่างๆ เพื่อให้เข้าใจลักษณะการทำงานและประสิทธิภาพของมันก่อนนำไปใช้เทรดจริง
Media mobile esponenziale (EMA)
Intermarket Analysis ProIntermarket Analysis Pro Indicator
Overview
The Intermarket Analysis Pro is a sophisticated trading indicator designed for forex traders, integrating technical analysis with comprehensive macroeconomic insights. This tool features Exponential Moving Averages (EMA 10/20) for trend detection, a consolidated table combining timeframe biases, trading signals, and intermarket data, delivering a holistic view to optimize decision-making in volatile markets.
Usage Instructions
Installation: Access TradingView, navigate to the Pine Editor, paste the script, and save it as "Intermarket_Analysis_Pro". Apply it to your desired forex chart (e.g., EURUSD on a 5-minute timeframe).
Configuration:
EMA Settings: Select EMA Source as "close" for precise alignment with candle closes, adjust EMA 10 Period (default 10) and EMA 20 Period (default 20) to suit your strategy, and toggle Show EMA Value Labels or Show (B)/(S) Signal Labels for enhanced visibility.
Table Settings: Enable Show Combined Table, select Combined Table Position (e.g., "Bottom Right"), and choose Text Size (e.g., "Small") for optimal display.
Intermarket Parameters: Fine-tune Bias Threshold (default 0.3) and Score Change Threshold (default 10) to refine intermarket bias sensitivity.
Display Options: Switch between "Light" or "Dark" themes to match your chart environment.
Signal Interpretation:
EMA Indicators: A crossover of EMA 10 (orange) above EMA 20 (blue) signals a potential BUY, while a crossunder indicates a SELL. Confirm with "(B)" or "(S)" labels on the chart.
Combined Table: Analyze timeframe biases (e.g., "BULLISH" on 1m), logic signals (e.g., "BUY" on 5m), and intermarket trends (e.g., "EUR Rise (+30)") to align with market conditions.
Strategic Application: Utilize on lower timeframes (1m, 5m) for scalping or higher timeframes (1h, 4h) for swing trading. Ensure smooth scrolling to verify EMA and table synchronization with candles.
Alert Setup: Configure alerts for "Buy Signal" or "Sell Signal" on your preferred timeframe to receive real-time notifications.
Key Features
EMA 10/20: Provides customizable short-term trend analysis with optional value labels.
Unified Table: Merges SimpleBias (timeframe trends), Logic (trading signals), and Intermarket (global currency, index, and bond movements) into a single, scrollable interface.
Intermarket Insights: Evaluates 18 assets (e.g., DXY, SPX500, EUR, XAUUSD) for macroeconomic sentiment, updated hourly with color-coded change indicators.
Customization: Offers adjustable positions, sizes, and thresholds to adapt to individual trading preferences.
Market Context: Reflects current sentiment, such as a bullish EURUSD trend supported by weak NFP data and hawkish ECB policies (as of July 2025).
Best Practices
Timeframe Alignment: Match the chart timeframe with your analysis to ensure accurate EMA and table data representation.
Optimal Trading Hours: Maximize effectiveness during the NY session (08:00-17:00 EST) when intermarket activity is most pronounced.
Troubleshooting: If EMA lags during scrolling, disable labels or reduce additional indicators. Report discrepancies (e.g., "EMA 10 at 1.08840, candle at 1.08850") for further optimization.
Additional Notes
The Intermarket Analysis Pro is tailored for traders seeking to integrate global sentiment with technical signals. Test thoroughly on a demo account and adjust settings to align with your trading strategy. As of July 5, 2025, 04:04 AM WIB, the market indicates a bullish EURUSD outlook, with intermarket data reinforcing BUY opportunities on lower timeframes.
The SignalThe Signal — 9/21 EMA Cloud Indicator
“The Signal” is a clean, no-nonsense trend-following tool designed for traders who value clarity and precision.
This indicator plots a cloud between the 9-period and 21-period Exponential Moving Averages (EMAs), giving you immediate visual cues on trend direction and momentum. When the 9 EMA crosses above the 21 EMA, the cloud turns green — signaling bullish momentum. When the 9 EMA crosses below the 21 EMA, the cloud turns red — indicating potential bearish pressure.
🔍 Features:
- Minimalist design focused on the two most critical EMAs used by professional traders.
- Dynamic color-coded cloud: green for bullish, red for bearish.
- Optional EMA lines to fine-tune entries/exits.
- Offset control to project the EMAs forward and visualize leading momentum.
🧠 Strategy Recommendations
Basic Strategy:
- Buy Entry: When 9 EMA crosses above 21 EMA and the cloud turns green.
- Sell Entry: When 9 EMA crosses below 21 EMA and the cloud turns red.
- Use a trailing stop-loss or recent swing low/high for exits.
- CME_MINI:NQ1! Combine with volume confirmation or RSI divergence for higher confidence setups.
EMA/DEMA_group_stdThis indicator is like its sister indicator in that it measures dispersion but instead of being cumulative it measures distance between moving averages in each group.
Group 1:11, 13, 18, 21
Group 2:18, 21, 29, 34
Group 3: 29, 34, 47, 55
Group 4: 47, 55, 76, 89
Group 5: 76, 89 123, 144
Group 6: 123, 144, 199, 233
Group 7: 199, 233, 322, 377
How to use
1. Divergences
2. Moving average crosses
3. Momentum
Plotshape colors show when moving averages are nearing a crossover and level can be manually set in menu.
Price Extension from 8 EMAOverview
This indicator can be used to see how far away the price is from the 8 EMA. It compares this to the Average Daily Range % to see if the stock may be overextended. The "Extension Multiplier" represents how far the stock is extended away from the 8 EMA.
Core Concept
This indicator is best used for breakout trades that are trying to make sure they are not chasing the stock.
How to Use This Indicator
This tool is primarily intended for analyzing daily charts of individual stocks and is often used by breakout traders to evaluate potential entry areas.
If the stock is far away from the 8 EMA, it is likely not ready to break out. If it is close to the 8ema, it could be ready to move higher.
This indicator can also be used in the opposite way. For example, shorting or puts.
Understanding the colors
Green (Not Extended): Indicates the price is close to the 8 EMA. This often corresponds to periods of consolidation.
Yellow (Slightly Extended): The price is beginning to move away from the 8 EMA.
Orange (Extended): The price has moved a considerable distance from the 8 EMA.
Red (Very Extended): The price is at an extreme distance from the 8 EMA, historically increasing the likelihood of a pullback or consolidation.
Settings
Info Row Position: Adjusts the vertical position of the display table on the chart. Useful when using other indicators.
ADR Length: Sets the lookback period for calculating the Average Daily Range. Or the average range % for different timeframes.
Timeframe: Determines the timeframe for the EMA and ADR calculation (the default is Daily).
ema/dema_cum_stdThis indicator measures distance between moving averages by first calculating the variance of a group of moving averages the converting to standard deviation by taking the square root of the variance and then normalized by dividing by price (close) and multiplying by 100 ( percent). Here are the groups
Group 1 :11,13, 18, 21
Group 2: 11, 13, 18, 21, 29, 34
Group 3: 11, 13, 18, 21, 29, 34, 47, 55
Group 4: 11, 13, 18, 21, 29, 34, 47, 55, 76, 89
Group 5: 11, 13, 18, 21, 29, 34, 47, 55, 76, 89, 123, 144
Group 6: 11, 13, 18, 21, 29, 34, 47, 55, 76, 89, 123, 144, 199, 233
Group 7: 11, 13, 18, 21, 29, 34, 47, 55, 76, 89, 123, 144, 199, 233, 322, 377
Group 8: 11, 13, 18, 21, 29, 34, 47, 55, 76, 89, 123, 144, 199, 233, 322, 377, 521, 610
Great for showing compression and expansion levels and showing divergences. I try to only use Groups 1-4 or Groups 1-5
Shows when moving average groups squeeze below the set level you set using plot shape function. Shape colors are color coordinated to match moving average dispersion plots
Uses DEMA and EMA
Auto-Length Anchored Multiple EMA (Hour-Based)# Auto-Length Anchored Multiple EMA (Hour-Based)
## Overview
This advanced EMA indicator automatically calculates Exponential Moving Average lengths based on the time elapsed since user-defined anchor dates. Unlike traditional fixed-length EMAs, this indicator dynamically adjusts EMA periods based on actual trading hours, making it ideal for event-based analysis and time-sensitive trading strategies.
## Key Features
### 🎯 **Dual Mode Operation**
- **Auto Mode**: EMA length automatically calculated from anchor date to current time
- **Manual Mode**: Traditional fixed-length EMA calculation
- Switch between modes independently for each EMA
### 📊 **Multiple EMA Support**
- Up to 4 independent EMAs with individual configurations
- Each EMA can have its own anchor date and settings
- Individual enable/disable controls for each EMA
### ⏰ **Smart Time Calculation**
- Accounts for actual trading hours (customizable)
- Weekend exclusion with Saturday trading option (for markets like NSE/BSE)
- Hour multiplier for fine-tuning EMA sensitivity
- Minimum EMA length protection to prevent calculation errors
### 🎨 **Visual Enhancements**
- **Dynamic Fill Colors**: Fill between EMA1 and EMA3 changes color based on price position
- **Customizable Colors**: Individual color settings for each EMA
- **Anchor Visualization**: Optional vertical lines and labels at anchor dates
- **Real-time Table**: Shows current EMA lengths, modes, and values
## Configuration Options
### Trading Session Settings
- **Trading Hours Per Day**: Set your market's trading hours (1-24)
- **Trading Days Per Week**: Configure for different markets (5 for Mon-Fri, 6 for Mon-Sat)
- **Include Saturday**: Enable for markets that trade on Saturday
- **Hour Multiplier**: Fine-tune EMA sensitivity (0.1x to 10x)
### EMA Configuration
- **Anchor Dates**: Set specific start dates for each EMA calculation
- **Manual Lengths**: Override with traditional fixed periods when needed
- **Enable/Disable**: Individual control for each EMA
- **Color Customization**: Personalize appearance for each EMA
### Visual Options
- **Fill Settings**: Toggle and customize fill colors between EMAs
- **Anchor Lines**: Show vertical lines at anchor dates
- **Anchor Labels**: Display formatted anchor date information
- **Length Table**: Real-time display of current EMA parameters
## Use Cases
### 📈 **Event-Based Analysis**
- Anchor EMAs to earnings announcements, policy decisions, or market events
- Track price behavior relative to specific time periods
- Analyze momentum changes from key market catalysts
### 🕐 **Time-Sensitive Trading**
- Perfect for intraday strategies where timing is crucial
- Automatically adjusts to market hours and trading sessions
- Eliminates manual EMA length recalculation
### 🌍 **Multi-Market Support**
- Configurable for different global markets
- Saturday trading support for Asian markets
- Flexible trading hour settings
## Technical Details
### Calculation Method
The indicator calculates trading bars elapsed since anchor date using:
```
Total Trading Bars = (Days Since Anchor × Trading Days Per Week ÷ 7) × Trading Hours Per Day × Hour Multiplier
```
### EMA Formula
Uses standard EMA calculation with dynamically calculated alpha:
```
Alpha = 2 ÷ (Current Length + 1)
EMA = Alpha × Current Price + (1 - Alpha) × Previous EMA
```
### Weekend Handling
- Automatically excludes weekends from calculation
- Optional Saturday inclusion for specific markets
- Accurate trading day counting
## Installation & Setup
1. **Add to Chart**: Apply the indicator to your desired timeframe
2. **Set Anchor Dates**: Configure anchor dates for each EMA you want to use
3. **Adjust Trading Hours**: Set your market's trading session parameters
4. **Customize Appearance**: Choose colors and visual options
5. **Enable Features**: Turn on fills, anchor lines, and information table as needed
## Best Practices
- **Anchor Selection**: Choose significant market events or technical breakouts as anchor points
- **Multiple Timeframes**: Use different anchor dates for short, medium, and long-term analysis
- **Hour Multiplier**: Start with 1.0 and adjust based on market volatility and your trading style
- **Visual Clarity**: Use contrasting colors for different EMAs to improve readability
## Compatibility
- **Pine Script Version**: v6
- **Chart Types**: All chart types supported
- **Timeframes**: Works on all timeframes (optimal on intraday charts)
- **Markets**: Suitable for stocks, forex, crypto, and commodities
## Notes
- Indicator starts calculation from the anchor date forward
- Minimum EMA length prevents calculation errors with very recent anchor dates
- Table display updates in real-time showing current EMA parameters
- Fill colors dynamically change based on price position relative to EMA1
---
*This indicator is perfect for traders who want to combine the power of EMAs with event-driven analysis and precise time-based calculations.*
VMATOR v1VMATOR
Originally based on a personal strategy that i designed as i'm not familiar with every candlestick pattern and other strategies. This indicator is a something i created for my self trying to get better entries with lower risk. In my research and test back i found out that the lowest risk is found when entering to a position when price is close to VWAP and EMA 50 and 200. Hence the name of this indicator: VMATOR.
The indicator looks for the closest price to VWAP and those EMAs and generates a signal. It also makes an attempt to estimate exits based on the amount of times price retracts to the closest EMA.
This indicator works best if there are defined uptrends or downtrends. It may not work well during consolidations or accumulations.
If you trade Options consider that when the market opens you may have already a signal before. If by the time market opens price has not retracted to EMA 50 is safe to enter but it's up to you to define your risk.
Contact me if you have any questions.
Sandy MTF Clouds07/04/2025 it uses Ripster MTF cloud and which will display labels of buy/sell signal on chart and send alerts to discord(private to my discord)
Only Break and Retest StrategyCombines various strategies of Break and Retest along with VWAP and 9 MA.
MPS v3.2 – MicroStructure Pulse Scalper📌 MPS v3.2 – MicroStructure Pulse Scalper
Description:
MPS v3.2 is an advanced scalping strategy tailored for precision entries on low timeframes. Built around microstructure theory and volatility behavior, it integrates a fusion of institutional-grade filters for trade validation, including:
• VWAP Z-Score Deviation – mean-reversion logic from anchored value
• Volume Spike Detection – identifies aggressive orderflow surges
• Volatility Expansion – signals breakouts using dynamic ATR range
• Liquidity Sweeps (Stop-Hunts) – detects market maker traps
• Bullish/Bearish Pin Bar Confirmation – filters false sweeps
• Signal Clustering Memory – boosts signal reliability via AI-style memory
• Trend, Session, and Risk Filters – optional layers for alignment
• Visual Enhancements – gradient candles, entry zone heatmap, and stats panel
Key Features:
Risk/Reward-based exit OR VWAP take profit
Trailing stop functionality
Adaptive “Aggressive Mode” for early entries
Clean, minimal dashboard with live performance stats
Built for 1m–5m scalping, optimized for BTC/ETH and other liquid pairs
200 EMA Touch DetectorThis indicator give a alert when price touches the 200 ema that help for long entry.
EMA signalsEMA Signals Indicator
This indicator displays key EMAs from multiple timeframes simultaneously, helping you quickly spot where they cluster. EMA clusters often act as strong support or resistance zones and can indicate potential price reversals.
It calculates four EMAs (20, 50, 100, and 200 periods) on several timeframes, ranging from 1 month down to 5 minutes.
You can adjust two proximity thresholds in the settings:
1. Appear Threshold: How close the price must be to an EMA before it shows the EMA line and label.
2. Disappear Threshold: How far away the price must move from an EMA before the line and label are removed.
These settings let you control how much information appears on the chart, helping reduce clutter while keeping important EMA zones visible.
When the price is near an EMA within the appear threshold, the indicator draws a dashed line and label showing the EMA and its timeframe.
This makes it easy to spot important zones where multiple EMAs line up, which are often key areas for price reversals or strong support/resistance.
You can toggle the visibility of EMAs from any timeframe to focus on what matters most for your trading style.
Why use it?
By showing EMAs from all timeframes in one place, this tool helps you quickly identify clustered EMA zones without switching charts or timeframes. The adjustable appearance and disappearance thresholds keep your chart clean and focused, making it easier to find high-probability trading areas.
EMA 20 – Yellow DotsA simple EMA 20 designed for high visibility to easily stand out amongst other indicators.
EMA Cross PThis is 20 , 50 , 200 ema line , display, you can also edit to any ema of your choice, you can also mark their crossover and highlight them at any time. so this is not for just the 20 50 or 200 , it can be 10 20 30 40 50 60 80 90 100 150 200 any ema of your choice, you can plot upto 3 ema with a single indicator. Thanks for your support.
Dual SMA/EMA Strategy with Alerts200 SMA 9/21 EMA with EMA Golden Crossover warning. Helps with detecting when a GoldenCross has been triggered.
FinhedgesFinhedges is a professional-grade trend analysis tool designed for precision trading. Built for traders who demand clarity, accuracy, and reliability, this indicator empowers users with real-time market insights while maintaining a clean and user-friendly visual interface.
✅ Key Features:
📈 Advanced Trend Detection: Accurately identifies prevailing market trends to guide directional bias.
🟢🔴 Intelligent Signal System: Displays high-quality Buy and Sell signals optimized for both swing and intraday trading.
🧠 Smart Filtering Logic: Reduces noise and false signals for higher conviction entries.
📊 Customizable Trend Line: Visualizes trend direction clearly across all timeframes.
⏰ Built-in Alerts: Real-time notifications so you never miss a key opportunity.
📋 Optional Market Status Table: Provides a quick overview of trend and price data directly on the chart.
Strategy with DI+/DI-, ADX, RSI, MACD, EMA + Time Stop [EXP. 1]🧠 Concept & Purpose
This strategy combines several time-tested technical indicators—DI+/DI-, ADX, RSI, MACD, and long-term EMAs—to filter trend strength, momentum, and timing precision. The goal was to develop a multi-layered trend-following system suitable for low timeframes (tested on BTCUSDT 5m) while controlling risk with tight stop-losses, a high reward ratio, and a time-based exit to avoid long exposure in sideways markets.
⚙️ Components & Logic
• ADX + DI+/DI-: Confirm the presence and direction of a strong trend.
• RSI: Used to filter momentum bias. Buy signals require RSI > 55, sell signals < 45.
• MACD Histogram: Ensures entry is aligned with short-term momentum shifts.
• Strong Candle Filter: Filters out weak entries using candle body % strength.
• EMA 600 & EMA 2400: Define long-term trend bias. Entries only occur within 25 bars after EMA crossover in trend direction.
• Time-Based Stop: If a trade doesn’t move at least 0.75% in favor within 85 bars, it is closed to minimize stagnation.
• Reward-Risk Management: 1% stop-loss, 7.5:1 reward-to-risk ratio.
• One Signal Per Trend Shift: Only takes the first entry after each EMA cross.
📊 Strategy Settings & Backtest Conditions
• Initial Capital: $10,000
• Commission: 0.1% per trade
• Timeframe: 5-minute
• Test Range: Jan–Apr 2023
• Sample Size: Limited (⚠️ <10 trades – experimental phase)
Backtest Results (v1.0)
This version showed:
• ✅ 66.7% win rate on 3 trades
• 📉 P/L: +11,257.46 USDT (+112.57%)
• 🔻 Max drawdown: 5.03%
• 📈 Profit factor: 11.01
In an earlier test configuration:
• ❌ 5 trades, 0 wins
• 📉 -14.45% total P&L
• ⚠️ All losses hit the 1.5% stop
• ⚠️ Profit factor: 0.00
This contrast shows how sensitive the logic is to market context and parameter tuning.
💡 Purpose of Publication
This strategy is experimental and educational. It is open-sourced for transparency and to help other traders learn how complex indicator stacking may or may not work in real environments. The failed and improved tests are both part of the process.
⚠️ Disclaimer
This script is not financial advice. Please do your own research, forward-test it thoroughly, and adjust parameters based on your asset and timeframe.
EMA Trend Dashboard
Trend Indicator using 3 custom EMA lines. Displays a table with 5 rows(position configurable)
-First line shows relative position of EMA lines to each other and outputs Bull, Weak Bull, Flat, Weak Bear, or Bear. EMA line1 should be less than EMA line2 and EMA line 2 should be less than EMA line3. Default is 9,21,50.
-Second through fourth line shows the slant of each EMA line. Up, Down, or Flat. Threshold for what is considered a slant is configurable. Also added a "steep" threshold configuration for steep slants.
-Fifth line shows exhaustion and is a simple, configurable calculation of the distance between EMA line1 and EMA line2.
--Lines one and five change depending on its value but ALL other colors are able to be changed.
--Default is somewhat set to work well with Micro E-mini Futures but this indicator can be changed to work on anything. I created it to help get a quick overview of short-term trend on futures. I used ChatGPT to help but I am still not sure if it actually took longer because of it.