CPR + SR Breaks with OBV DivergenceCore Features
Central Pivot Range (CPR)
Plots daily pivot (CP), bottom central (BC), and top central (TC) levels.
Key for intraday support/resistance. Price reactions near these levels signal opportunities.
Support/Resistance Tools
S/R: Auto-detects swing highs/lows as dynamic support/resistance.
S/R Re-Test: Highlights retest zones with customizable aging/deletion rules.
CISD: Marks intraday structural levels (breakout points).
Trend Indicators
SuperTrend: Follows trend direction (green = uptrend, red = downtrend).
Moving Averages: Multiple EMAs/SMAs (e.g., 20, 50, 100, 200) for confluence.
VWAP: Volume-weighted average price for dynamic support/resistance.
Advanced MAs
SALMA: Adaptive moving average with volatility filter (colored by trend).
VIDYA: Smooth trend-following MA with liquidity zones.
OBV Divergence
Detects hidden divergences between price and On-Balance Volume (OBV):
Bullish Divergence: Price makes lower lows, OBV makes higher lows (green labels).
Bearish Divergence: Price makes higher highs, OBV makes lower highs (red labels).
Table at bottom-right shows divergence strength and frequency.
Trend Strength Table
Top-right table summarizes:
Trend direction (Bullish/Bearish/Sideways)
Strength (Strong/Weak)
EMA Crosses & ADX momentum
How to Trade
Breakouts:
Enter trades when price breaks S/R levels with high volume (blue/green arrows).
Confirm with CPR/TC (resistance) or CPR/BC (support) breaks.
Reversals:
Watch for OBV divergences at key S/R levels (CISD or CPR).
Combine with SuperTrend flip (e.g., green to red = sell signal).
Trend Confluence:
Trade in the direction of the trend table (e.g., "Strong Bull" + EMA cross up).
Use SALMA/VIDYA as dynamic support in uptrends (or resistance in downtrends).
Moving Averages
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.
Vasyl Ivanov | Volatility with MAThis indicator calculates and displays the volatility value for each bar.
The main line shows the relative range (spread) of the current bar compared to its closing price.
This allows you to quickly assess how much the price fluctuated within the bar relative to where it closed.
The Simple Moving Average (SMA) with a length of 9 smooths the main indicator values, helping to identify volatility trends and filter out random spikes.
Practical Application:
The indicator can be useful for assessing current market volatility and identifying periods with unusually wide or narrow ranges.
The smoothed line helps track medium-term changes in volatility and can be used to confirm trading signals related to range expansion or contraction.
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)
Sarim Breakout Strategy with Position Size and Stop LossThis strategy is based on breakouts using ATR with Position Size and Stop loss based upon risk
Superfui - AintLenFuiSuperfui - AintLenFui: A Multi-Strategy Trading Framework
It can work as great as your brain can process and throw your creative on it.
The name tributed to my friends who always support me.
Thank you so much for others' code. I use them to build this.
// --- Credits ---
// @veryfid for ATR SL
// @TradesLuci1 for Breakouts
// @Dreadblitz for Follow Line Indicator - ORC Crypto FLI_AAFLI
// @Misu for Range Detector
The "Superfui - AintLenFui" is not a single strategy but a comprehensive and adaptive trading framework. It intelligently combines three distinct sub-strategies into one powerful system, designed to perform across various market conditions—whether the market is trending, ranging, or transitioning.
The core strength of this framework lies in its versatility, robust risk management, and its non-repainting signal logic, ensuring that backtest results are reliable and align with live trading performance.
The Three Core Strategies (The Three Pillars)
This framework automatically identifies the market condition and deploys the most suitable strategy.
1.Breakout Strategy (Trend Following)
Objective: To capture momentum and ride strong trends.
How it Works: It identifies key support/resistance levels using Pivot Highs and Lows. A trade is triggered when the price decisively breaks through these levels, signaling the start or continuation of a trend.
Ideal Market: Strong trending markets (Uptrends or Downtrends).
2.Mean Reversion Strategy (Range Trading)
Objective: To profit from price fluctuations within a defined range.
How it Works: When the built-in "Range Detector" identifies a sideways market (indicated by orange bands), this strategy activates. It looks for buy opportunities when the price dips to the lower band (in an oversold RSI condition) and sell opportunities when the price rises to the upper band (in an overbought RSI condition).
Ideal Market: Sideways, choppy, or non-trending markets.
3.RD Signal Strategy (Momentum Ignition)
Objective: To catch the very beginning of a new trend as it emerges from a range.
How it Works: This strategy triggers a trade based on the Range Detector's color change. A signal is generated when the market state shifts from "Range" (Orange) to "Uptrend" (Green) for a long trade, or to "Downtrend" (Red) for a short trade.
Ideal Market: Market transitions from a range-bound state to a trending state.
Additional Advanced Filtering & Confirmation
To improve signal quality and reduce false entries, the framework employs a suite of professional-grade filters (Most of them are for Breakout):
Volatility Filter: Ensures trades are taken only when market volatility is within an optimal range.
Volume Confirmation: Validates breakout signals with a surge in trading volume.
ADX Filter: Confirms that a trend has sufficient strength before entering a Breakout trade.
Multi-Timeframe (MTF) Analysis: Aligns trades with the dominant trend on higher timeframes for increased probability.
MA & RSI Filters: Provide additional layers of confirmation for trade direction and momentum.
Robust Risk Management
Capital protection is a cornerstone of this strategy.
Flexible Stop Loss: Options for ATR-based, Candle-based, or fixed Points stop loss.
Breakeven: Automatically moves the stop loss to the entry point after a certain profit is reached, protecting the trade from turning into a loss.
Trailing Stop: Locks in profits by moving the stop loss as the price moves favorably.
Max Daily Drawdown: A critical safety feature that halts all trading for the day if a predefined equity loss percentage is hit, preventing catastrophic losses.
Key Feature: Non-Repainting Logic
The strategy is specifically coded to be non-repainting. It makes all trading decisions based on data from confirmed, closed candles. This means the signals you see in a backtest are exactly what you would have seen in real-time, providing a high degree of confidence in the strategy's historical performance.
CM EMA Crossover Price Probabilities customCM EMA Crossover Price Probabilities
This indicator combines Exponential Moving Average (EMA) crossovers with swing high/low detection to calculate and display the historical probability of price movements exceeding user-defined percentage thresholds. Unlike standard EMA crossover indicators, it quantifies the likelihood of specific price changes following bullish (fast EMA crossing above slow EMA) or bearish (fast EMA crossing below slow EMA) crossovers, providing traders with data-driven insights into potential price behavior.
How It Works:EMA Crossovers: Detects when the fast EMA crosses above (bullish) or below (bearish) the slow EMA, marking these events with chart labels.
Price Change Measurement: Measures the percentage price change from the crossover point to the next swing high (for bullish crossovers) or swing low (for bearish crossovers), using pivot point detection.
Probability Calculation: Analyses historical crossover data to compute the probability of price changes meeting or exceeding customizable percentage thresholds (e.g., 2.5%, 5%). Probabilities are displayed as labels on the last bar, showing both bullish and bearish outcomes.
Customization: Allows users to adjust EMA lengths, pivot lookback, historical data limit, and probability thresholds via inputs.
Inputs:Fast EMA Length (default: 20): Period for the fast EMA.
Slow EMA Length (default: 50): Period for the slow EMA.
Pivot Lookback (default: 15): Bars used to detect swing highs/lows.
Max Historical Crossovers (default: 100): Limits stored crossovers for performance.
Bin Thresholds (defaults: 2.5%, 4.6%, 8.4%, 21.0%, 100.0%): Five customizable percentage thresholds for probability calculations.
Usage:
Add the indicator to your chart and adjust inputs to match your trading style. Bullish and bearish crossover points are labeled on the chart, and probability labels appear in the top-right corner when sufficient data is available. Use these probabilities to assess the historical likelihood of price movements after EMA crossovers, aiding in trade planning or risk assessment.
Why It’s Useful:
By combining EMA crossovers with swing-based price change analysis, this indicator offers a unique perspective on market behaviour post-crossover. The customizable probability thresholds allow traders to focus on specific price movement targets, making it a versatile tool for studying trend strength and potential outcomes.
Notes:
Probabilities are based on historical data and do not predict future performance.
Set bin thresholds in ascending order for accurate probability calculations.
Designed for educational purposes to analyze EMA crossover patterns.
mwaipopo trendThis indicator has candle overlay and It has a selectable moving average but best used with ema
It can be used for:
1. Detecting Short/Long term trend direction, for short term use len 5 and len5 and for swing trading use len20 and len2 20 but for normal intraday trading leva ethe setting at len 10 in each
2. Dynamic support/resistance, not just a line, but it has a height
3. Trailing stop
4. Trend reversal detection, when price cross above/below candle
Timeframes
1. short term TF - 5min ( scalping )
2. medium TF - 15min ( intraday )
3. high TF- 1hr ( swing trading )
Ai.Trade Breakout PRO+ (powered by SEPA Logic//BETA version)Ai.Trade Breakout PRO+ (powered by SEPA Logic)
A smart multi-signal indicator for breakouts, early entries, exits & trend shifts – inspired by SEPA logic
Description:
Ai.Trade Breakout PRO+ is an advanced multi-signal indicator built on the logic of the SEPA strategy. It combines precise breakout entries with early strength detection, smart exit signals (including ATR filters), and trend recovery flags. Ideal for traders aiming to follow price strength with discipline and clarity.
Features:
✅ Breakout signal above 50-day high + EMA200 filter
🟠 Early signal with RSI/volume/strong-close logic
⛔ Smart exit detection: EMA21 cross, Swing-Low + ATR, or entry breach
🔁 Trend recovery signal via EMA crossover after a downtrend
📈 EMA trendlines (10, 21, 50, 150, 200)
🔔 Built-in alerts for all signals
Recommended use:
Primarily use on the daily timeframe. Early signals may appear in 4h or 1h charts for anticipation, but official entries should always be confirmed on the daily chart.
Exit Recommendation:
Exit is triggered when...
- price closes below EMA21 (loss of trend)
- or breaks below last swing low (with ATR buffer)
- or drops below entry (with ATR buffer)
Tip: You may combine or filter these exit signals to suit your risk preference.
📊 Optional Add-on:
To further enhance trend clarity, the Ai.Trade Trendpanel (HH2/LL2) is available as a separate module. It visualizes trend structure (Higher Highs & Lower Lows) and helps filter high-probability entries.
⚠️ Beta Version: This version is released for public testing. Access may be changed to invite-only soon.
📈 Ideal for traders looking for a complete and structured breakout system.
EMA Cross IndicatorHow to Use the Indicator
Interpreting Signals:
Bullish Crosses: Look for green triangles below the bars, indicating a shorter EMA crossing above a longer EMA (e.g., EMA 10 > EMA 20).
Bearish Crosses: Look for red triangles above the bars, indicating a shorter EMA crossing below a longer EMA (e.g., EMA 10 < EMA 20).
Setting Alerts: In TradingView, click the "Alerts" icon, select the condition (e.g., "Bullish Cross: EMA50 > EMA100"), and configure your notification preferences (e.g., email, popup).
Customization: Adjust the EMA lengths in the indicator settings to experiment with different periods if desired.
This indicator is designed to work on any timeframe and asset, including BTC/USDT, which you use to gauge trends for other coins. Let me know if you'd like to tweak it further or add more features!
Normalized Volume EMA FilterTrade towards volume at liquidity levels (Trend Liquidity Zones indi), unless value states otherwise.
Normalized Volume with Stripe FilterNvol with stripe function price chart ema defined. Trade the liquidity levels (trend liquidity zones indi) towards volume, unless your value says otherwise.
200 EMA Power Bounce Screenerthis indicator work on bullish reversal strategy. when stock is abov 200 ema and touch 200 ema for reversal. it will confirm that there is a revesal candle, stron support on 200 ema, primary trend is strong than secondary trand, have a strong volume, rsi cross 50 in upperside.
Two Poles Trend Finder MTF [BigBeluga]🔵 OVERVIEW
Two Poles Trend Finder MTF is a refined trend-following overlay that blends a two-pole Gaussian filter with a multi-timeframe dashboard. It provides a smooth view of price dynamics along with a clear summary of trend directions across multiple timeframes—perfect for traders seeking alignment between short and long-term momentum.
🔵 CONCEPTS
Two-Pole Filter: A smoothing algorithm that responds faster than traditional moving averages but avoids the noise of short-term fluctuations.
var float f = na
var float f_prev1 = na
var float f_prev2 = na
// Apply two-pole Gaussian filter
if bar_index >= 2
f := math.pow(alpha, 2) * source + 2 * (1 - alpha) * f_prev1 - math.pow(1 - alpha, 2) * f_prev2
else
f := source // Warm-up for first bars
// Shift state
f_prev2 := f_prev1
f_prev1 := f
Trend Detection Logic: Trend direction is determined by comparing the current filtered value with its value n bars ago (shifted comparison).
MTF Alignment Dashboard: Trends from 5 configurable timeframes are monitored and visualized as colored boxes:
• Green = Uptrend
• Magenta = Downtrend
Summary Arrow: An average trend score from all timeframes is used to plot an overall arrow next to the asset name.
🔵 FEATURES
Two-Pole Gaussian Filter offers ultra-smooth trend curves while maintaining responsiveness.
Multi-Timeframe Trend Detection:
• Default: 1H, 2H, 4H, 12H, 1D (fully customizable)
• Each timeframe is assessed independently using the same trend logic.
Visual Trend Dashboard positioned at the bottom-right of the chart with color-coded trend blocks.
Dynamic Summary Arrow shows overall market bias (🢁 / 🢃) based on majority of uptrends/downtrends.
Bold + wide trail plot for the filter value with gradient coloring based on directional bias.
🔵 HOW TO USE
Use the multi-timeframe dashboard to identify aligned trends across your preferred trading horizons.
Confirm trend strength or weakness by observing filter slope direction .
Look for dashboard consensus (e.g., 4 or more timeframes green] ) as confirmation for breakout, continuation, or trend reentry strategies.
Combine with volume or price structure to enhance entry timing.
🔵 CONCLUSION
Two Poles Trend Finder MTF delivers a clean and intuitive trend-following solution with built-in multi-timeframe awareness. Whether you’re trading intra-day or positioning for swing setups, this tool helps filter out market noise and keeps you focused on directional consensus.
SY_Quant_AI_Trend.2.0✅ English Description (Safe Minimal Version)
SY_Quant_AI_Trend 2.0 — Multi-Factor Trend Analysis Toolkit
This indicator combines trend detection, structure recognition, and visual overlays to assist traders in analyzing market dynamics.
It integrates common techniques in a simplified form for research and chart-based strategy development.
ZLMA Keltner ChannelThe ZLMA Keltner Channel uses a Zero-Lag Moving Average (ZLMA) as the centerline with ATR-based bands to track trends and volatility.
The ZLMA’s reduced lag enhances responsiveness for breakouts and reversals, i.e. it's more sensitive to pivots and trend reversals.
Unlike Bollinger Bands, which use standard deviation and are more sensitive to price spikes, this uses ATR for smoother volatility measurement.
Background:
Built on John Ehlers’ lag-reduction techniques, this indicator adapts the classic Keltner Channel for dynamic markets. It excels in trending (low-entropy) markets for breakouts and range-bound (high-entropy) markets for reversals.
How to Read:
ZLMA (Blue): Tracks price trends. Above = bullish, below = bearish.
Upper Band (Green): ZLMA + (Multiplier × ATR). Cross above signals breakout or overbought.
Lower Band (Red): ZLMA - (Multiplier × ATR). Cross below signals breakout or oversold.
Channel Fill (Gray): Shows volatility. Narrow = low volatility, wide = high volatility.
Signals (Optional): Enable to show “Buy” (green) on upper band crossovers, “Sell” (red) on lower band crossunders.
Strategies: Trade breakouts in trending markets, reversals in ranges, or use bands as trailing stops.
Settings:
ZLMA Period (20): Adjusts centerline responsiveness.
ATR Period (20): Sets volatility period.
Multiplier (2.0): Controls band width.
If you are still confused between the ZLMA Keltner Channels and Bollinger Bands:
Keltner Channel (ZLMA): Uses ATR for bands, which smooths volatility and is less reactive to sudden price spikes. The ZLMA centerline reduces lag for faster trend detection.
Bollinger Bands: Uses standard deviation for bands, making them more sensitive to price volatility and prone to wider swings in high-entropy markets. Typically uses an SMA centerline, which lags more than ZLMA.
MTX TP SLBest use for 5 minute timeframe
scalping mode
with stop loss and take profit prices
any currencies
use at your own risk in understanding chart.
Only Break and Retest StrategyCombines various strategies of Break and Retest along with VWAP and 9 MA.
YSR HEIKENASHI WITH SIGNALS s📌 Purpose:
This script is designed to generate Buy and Sell signals based on Heiken Ashi (HA) candles that:
Show a change in trend direction (color change),
Have no wicks (pure-bodied candles),
And optionally filter these signals using an EMA trend filter.
✅ Usage Tips
Works best on Heiken Ashi candles (enable in TradingView chart settings).
Choose a suitable timeframe (e.g., 5min or 15min) based on your strategy.
Adjust confirmBars to change how many same-colored HA candles must appear before a signal.
Use with trend-following strategies and optionally combine with price action or support/resistance.
🔍 Main Advantages
Eliminates noise with HA smoothing
Filters strong trend reversals using wickless HA logic
Signal confirmation using candle count
EMA filter prevents trading against the trend
Locking logic reduces repainting and over-signaling
[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 กับสินทรัพย์และตั้งค่าต่างๆ เพื่อให้เข้าใจลักษณะการทำงานและประสิทธิภาพของมันก่อนนำไปใช้เทรดจริง
Volatility Flow X – MACD + Ichimoku Hybrid Trail🌥️ Volatility Flow X – Hybrid Ichimoku Cloud Explained
This strategy combines Ichimoku’s cloud structure with real-time price position.
Unlike standard Ichimoku coloring, the cloud here reflects both trend direction and price behavior.
🔍 What the Cloud Colors Mean
🟢 Green Cloud
Senkou A > Senkou B
Price is above the cloud
→ Indicates strong uptrend; suitable for long entries
🔴 Red Cloud
Senkou A < Senkou B
Price is below the cloud
→ Indicates strong downtrend; suitable for short entries
⚪ Gray Cloud
Price contradicts trend, or price is inside the cloud
→ Represents indecision, low momentum; best to avoid entries
⚙️ Technical Features
Ichimoku Components: Tenkan-sen, Kijun-sen, Senkou Span A & B, Chikou Span
Cloud Transparency: 30%
MACD Filter: Optional momentum confirmation (customizable)
Trailing Stop: Optional dynamic trailing stop after trigger level
Directional Control: Long and short trailing rules can be set independently
📚 References
Ichimoku Charts – Nicole Elliott
Algorithmic Trading – Ernie Chan
TradingView Pine Script and hybrid trend models
⚠️ Disclaimer
This strategy is for educational and backtesting purposes only.
It is not financial advice. Always test thoroughly before applying to real trades.