Martingale Grid BotMartingale Grid Bot (MGB)
The strategy is designed to test grid trading with a possible increase in the size of each subsequent order based on the martingale principle. The strategy itself does not contain any trade decision logic and is fully driven by external signals coming from indicators used on the chart. A new grid of orders is created when an entry signal is received, provided that there is no active grid.
❗ Warning
Trading with leverage and martingale involves increased risk. This strategy is a rather rough tool and is intended for testing purposes only. The author is not responsible for any possible discrepancies between the strategy results and real trading.
Settings
Direction - Trading direction. Possible values: Long and Short.
Entry Signal Source - Source of the entry signal that initiates the creation of a new order grid. If one of the price sources (open, high, low, close, etc.) is selected, a new grid will be created automatically after the previous grid is fully closed.
Start Time - Date and time when the strategy starts operating. Marked on the chart with a vertical dashed line.
No Repainting Mode - A mode intended to reduce discrepancies between historical and real-time strategy behavior (repainting).
Enabled — a new grid is created only after the bar is closed. The first order can be filled no earlier than on the next bar.
Disabled — in real-time, a new grid can be created immediately upon receiving a signal or after the previous grid is closed by take profit or stop loss.
❗ Attention
For correct real-time operation, recalculation on every tick must be enabled in the strategy settings.
GRID
Grid Depth % - The depth of the order grid, specified as a percentage of the closing price at the moment the grid is created.
Orders Count - The number of orders in the grid. The first order is placed at the current closing price at the time of grid creation.
Martingale Multiplier - Position size multiplier. Each subsequent order in the grid will be increased by this factor. The size of the first order is defined in the strategy settings.
Leverage - Leverage multiplier for margin trading. Used to check available funds when creating grid orders. It is recommended to use it together with the margin parameters in the strategy settings.
Take Profit % - Calculated on each strategy update based on the average entry price. If none of the grid orders have been filled yet, the take-profit level for the first order is displayed on the chart.
Stop Loss % - Calculated from the price of the first grid order and does not change during the strategy operation. Orders whose price exceeds the stop-loss level will be automatically canceled.
TABLE
Show Table - Controls the display of the table with all orders of the current grid. If there is no active grid, no order data is displayed. Text and background colors are determined automatically based on the chart background color.
Order Size - Determines how the grid order size is displayed: in contracts or in currency.
Table Size - Font size in the table.
Timezone - Used to correctly display the order fill time relative to the chart time. The order fill time (status: filled) can be seen by hovering over the corresponding status cell in the table.
VISUAL
Long Entry - Color of the dotted lines representing grid orders when trading long. Also defines the color of the vertical line indicating the strategy start time.
Short Entry - Color of the dotted lines representing grid orders when trading short. Also defines the color of the vertical line indicating the strategy start time.
Take Profit - Color of the solid line representing the take-profit level.
Stop Loss - Color of the solid line representing the stop-loss level.
Pine utilities
Pinescript Custom Performance BoostThis small script is a custom function that works similarly to the built-in calc_bars_count and max_bars_back functions, but can be used far more flexibly and significantly reduces the required computation time of Pine Script scripts.
The advantages over calc_bars_count are substantial.
The standard function works with a fixed value, e.g. calc_bars_count = 20000. The custom function, on the other hand, works on a percentage basis, e.g. with 20% of the total available chart bars.
In addition, calc_bars_count always affects the entire code, while the custom function can be applied selectively to specific parts of the script.
These two differences enable a much more flexible and efficient usage.
Fixed number of bars vs. percentage-based limitation:
The number of available bars varies greatly, not only depending on the ticker and timeframe used, but also on the TradingView subscription (approx. 5,000–40,000 historical bars).
For example, when using calc_bars_count = 20000, only charts that have more than 20,000 candles benefit. If the available number of bars is lower, there is no performance benefit at all until the value is changed after the first slow calculation.
When using the custom function with, for example, 50%, only 50% of the available bars are always calculated, regardless of how many bars are available. This results in a performance gain with shorter calculation times regardless of the chart.
Entire code vs. partial code sections:
calc_bars_count = 20000 affects the entire code globally, meaning the script processes data from only those 20,000 bars.
The custom function, however, can be used selectively for specific sections of the code. This makes it possible to continue accessing certain values across all available bars, while limiting only the truly computation-intensive parts of the script to a percentage-based range.
In this way, computation time can be drastically reduced without restricting the overall size of the data sets.
It is also possible to imitate max_bars_back and selectively limit specific values instead of limiting all of them.
I hope this is useful to some of you. Have fun with it!
SolQuant WatermarkSOLQUANT WATERMARK
The SolQuant Watermark is a professional-grade utility script designed for traders, educators, and content creators who want to keep their charts organized and branded. By utilizing Pine Script’s table functions, this indicator ensures your custom text and symbol data stay pinned to the screen, regardless of where you scroll on the price action.
KEY FEATURES
Customizable Branding: Display your community name, website, or social handles anywhere on the chart.
Automated Symbol Data: Dynamic tracking of the current Asset, Timeframe, and Date—perfect for keeping screenshots contextually accurate.
Precision Placement: Choose from 9 different anchor points (Top-Left, Bottom-Right, etc.) to ensure the UI never interferes with your technical analysis.
Visual Scaling: 5 different size settings (Tiny to Huge) to accommodate high-resolution displays or mobile viewing.
Aesthetic Control: Fully adjustable color palettes, background transparency, and border toggles.
WHY USE A TABLE-BASED WATERMARK?
Unlike standard chart labels which are tied to specific price/time coordinates, this tool uses the Table API . This means:
The watermark stays in place while you scroll through history.
It doesn't disappear when you "hide" other drawing tools.
It scales consistently across different devices.
INSTRUCTIONS
1. Branding: Open settings and type your link or handle into the "Quote Text" area.
2. Symbol Info: Toggle the "Symbol Info" section to automatically display asset names and dates for your records.
3. Layout: Use the X and Y position dropdowns to move the modules if they overlap with your current price action or other indicators.
Note: This is a visual utility tool only. It does not provide trade signals or financial advice.
Seasonality-by-Atrader
Seasonality Extended – Enhanced Historical Monthly Pattern Analysis
This script is a comprehensive extension of the original Seasonality concept, designed to analyze historical monthly returns of any asset on TradingView. It introduces advanced filtering, visualization, and usability features that significantly expand upon the capabilities of the original version.
Overview
The script calculates month-over-month percentage changes for each year, starting from a user-defined year. Results are displayed both on the chart as projected return boxes and in a data-rich heatmap table that highlights monthly trends, average returns, standard deviation, and the percentage of positive months.
Key Enhancements
Year-Based Filtering
Users can selectively include:
Only years ending in specific digits (e.g., 1, 3, 7)
Only every n-th year (e.g., every 4th year from a reference year)
Both filters can be combined for precise cycle isolation
Exclusion of Irregular Periods
Specific months can be excluded from the analysis using a date-based input (e.g., 2008-10, 2020-03)
This allows users to remove outliers or crisis periods from historical performance data
Enhanced Heatmap Display
Adapts to year filters automatically
Resizable via input fields for width and height
Table can be positioned (left, center, or right)
Optional summary rows for averages, standard deviations, and percentage of positive months
Custom Color Configuration
Separate color selection for positive and negative returns
Customizable gradient intensity threshold
Asset Compatibility
Works across all TradingView-supported asset classes (stocks, indices, futures, crypto, forex)
Supports multi-decade data where available (e.g., TVC:DXY from the 1970s)
On-Chart Seasonality Projection
Displays expected return zones for the current month based on historical data
Shows projected price range and statistical context (standard deviation, sample size)
Use Cases
Analyzing recurring seasonal behavior
Isolating macro or election-cycle influences
Informing strategic trade planning based on historical patterns
Limitations
Table size is adjusted via inputs only (no mouse drag-resize)
Analysis is based on monthly timeframes exclusively
Chart object count is limited by TradingView’s standard restrictions
Summary
This script offers a refined and practical approach to seasonality analysis by enabling deep historical filtering, cycle-specific inclusion, and comprehensive tabular and visual output. It is tailored for analysts and traders looking to integrate long-term seasonal tendencies into their decision-making framework.
Phoenix2.0's 2 EMA CrossThis indicator plots a dynamic 8 EMA vs 21 EMA ribbon with color-changing trend shading, plus optional VWAP, EMA108 (direction filter), and an EMA16 exit guide.
It triggers alerts on bull/bear EMA crossovers and flags low-separation “chop zones” to help avoid noisy entries, while showing a small table with EMA/close distance stats.
Phoenix 2.0's 2 Trade Window PainterTrade Window Painter help you understand which time of the day has high probablity where we should enter trades and times we need to avoid
Phoenix 2.0's SPY Sniper Scalp LevelsThis is automated level marking tools which marks various critical levels from Pre-Market, Previous Day, ORB, High and Low of the day
QUANTA - LAB GARCHInstitutional volatility modeling suite with GARCH estimation, VaR/CVaR risk metrics, and Basel III backtesting.
Models Available:
GARCH(1,1) — symmetric volatility clustering
GJR-GARCH(1,1) — asymmetric leverage effect
EGARCH(1,1) — log-variance specification
Risk Metrics:
VaR (95%/99%) with Student-t fat tails
CVaR/Expected Shortfall (coherent risk measure)
Multi-horizon VaR (1d, 5d, 10d) with persistence-adjusted scaling
DoF estimation via method of moments (±15-25% uncertainty)
Backtesting (Basel III Compliant):
Kupiec unconditional coverage test
Christoffersen independence test
Traffic light system (Green/Yellow/Red zones)
Diagnostics:
ARCH-LM test for residual effects
AIC/BIC information criteria
Structural break detection (CUSUM-based)
Jump/outlier detection
Model confidence score (0-100)
V3.6 Improvements:
Adaptive grid search (~60% faster)
High persistence warning (p > 0.98)
Persistence-adjusted multi-horizon scaling (better than √T)
Dashboard Includes:
Real-time conditional volatility (annualized)
Parameter estimates (α, β, γ, θ)
Persistence and half-life
Regime classification (Normal/Elevated/Crisis)
Important:
Grid search produces point estimates (no confidence intervals)
Parameters may differ ±3-5% from true MLE
NOT for illiquid assets or significant overnight gaps
Screening tool only — validate with Python arch / R rugarch
References: Bollerslev (1986), Nelson (1991), GJR (1993), Engle (1982), McNeil et al. (2015), Kupiec (1995), Christoffersen (1998)
QUANTA - LAB HMM REGIME DETECTION Two-state Hidden Markov Model for market regime detection based on Hamilton (1989) Markov-Switching framework.
Methodology:
Full Baum-Welch EM algorithm in log-space for numerical stability
Real-time Hamilton filtering (no lookahead) for trading use
Kim smoothing for historical analysis
Multiple random restarts to avoid local optima
Regime Classification:
Mean-based: R1 = Bearish (lower μ), R2 = Bullish (higher μ)
Volatility-based: R1 = Calm (lower σ), R2 = Turbulent (higher σ)
Key Features:
TRADING vs ANALYSIS mode (filtered vs smoothed probabilities)
Gaussian assumption diagnostics (kurtosis, skewness, outliers)
Data Quality Score (0-100)
Regime Certainty Index (RCI)
Mean separation t-statistic
Expected regime duration and ergodic probabilities
Degenerate model detection
Dashboard Includes:
Filtered probabilities (real-time, safe for trading)
Emission parameters (μ₁, μ₂, σ₁, σ₂)
Transition matrix (p₁₁, p₂₂)
Model fit metrics (LogL, AIC, BIC)
Critical Warnings:
Smoothed ≠ Real-time (smoothed uses future info)
Gaussian assumption: fat tails not captured
K=2 regimes only — may oversimplify dynamics
NOT for high-frequency (minimum 1H timeframe)
Validate with Python hmmlearn / R / MATLAB
References: Hamilton (1989) — Econometrica
QUANT - LAB ADF-GLS + COINT + VRT-WB [ERS] ADF-GLS + COINT + VRT-WB V9.2 INSTITUTIONAL
Institutional-grade econometric suite for unit root testing, cointegration analysis, and mean-reversion detection.
Unit Root Tests:
ADF-GLS (Elliott, Rothenberg & Stock, 1996) with MAIC lag selection
Phillips-Perron Z_t with Newey-West correction
KPSS stationarity test (confirmatory)
MZ-alpha test
Cointegration (Bivariate):
Engle-Granger two-step test (MacKinnon 2010 critical values)
Johansen Trace test (Osterwald-Lenum 1992 CVs)
Real-time spread Z-score with tick-by-tick updates
Mean-Reversion:
Variance Ratio Test (Lo-MacKinlay 1988)
Mammen Wild Bootstrap for heteroskedasticity robustness
Half-life estimation with 95% CI (delta method)
Diagnostics:
Ljung-Box Q(4) for residual autocorrelation
ARCH(4) test for heteroskedasticity
HAC standard errors (Newey-West)
Important:
Screening tool only — validate in Python/R/statsmodels
Beta SE is BIASED (generated regressor problem)
Johansen limited to bivariate systems
Bootstrap p-value resolution ~2-5%
NOT a trading system
References: ERS (1996), Lo & MacKinlay (1988), Engle & Granger (1987), Johansen (1988), MacKinnon (2010)
FRACTAL-LAB Advanced fractal analysis suite for detecting market memory and deviations from random walk behavior.
Features:
Hurst Exponent proxy via variance scaling with dynamic confidence intervals
DFA-Lite (two-scale Detrended Fluctuation Analysis)
Lo-MacKinlay Variance Ratio test
Volatility memory analysis on |returns|
Quality scoring system (A-F grades)
Regime classification: Persistent / Random Walk / Anti-Persistent
Interpretation:
H > 0.55 → Trending behavior (momentum)
H ≈ 0.50 → Random walk (no predictability)
H < 0.45 → Mean-reverting behavior
Important:
Screening tool only — validate results in Python/R
Does not test for short-range dependence (Lo, 1991)
Recommended sample size: N ≥ 300 bars
NOT a trading system — for research and education only
References: Hurst (1951), Lo & MacKinlay (1988), Peng et al. (1994)
Manual Fibonacci Retracement Levels [txt]Allows you to select points 0 and 100 to build a correction Fibonacci grid and receive notifications when levels are crossed
1H High/Low Break (Auto Color Change + Alert)Automatically plot hourly highs and lows, with the black line turning blue upon a breakout. Set an alarm to alert you when a breakout occurs
自动绘制每小时最高价和最低价,突破时黑线变为蓝色。设置警报,以便在突破发生时收到提醒。
ETH Multi-Strategy Hybrid SystemETH Multi-Strategy Hybrid System
This strategy is a multi-strategy composite trading system designed for the ETH perpetual futures market.
It integrates trend-based and range-based trading logic under a unified execution and risk management framework, aiming to present the overall structure and performance characteristics of a systematic trading approach.
The public version is provided for backtesting display and structural illustration only.
Core execution details and parameter optimization logic are not disclosed.
📌 System Structure
The system consists of three independent strategy modules and strictly follows the principle of holding only a single directional position at any given time:
Strategy A: Trend-Following Long Module
• Designed for medium- to long-term bullish trends
• Confirms trend validity through multiple layers of conditions
• Employs volatility-driven stop-loss mechanisms and multi-stage profit-taking
• Aims to capture trend continuation while controlling drawdowns
Strategy B: Trend-Following Short Module
• Designed for bearish trends or accelerated downside phases
• Combines trend confirmation with momentum filtering to avoid false rebounds
• Utilizes fixed risk control combined with dynamic exit mechanisms, including trailing exits and profit retracement protection
• Focuses on fast-moving and sentiment-driven downside volatility
Strategy C: Range-Based Long Module
• Activated only in non-trending, low trend-strength market conditions
• Applies mean-reversion logic based on price range and volatility structure
• Automatically exits or becomes inactive when trend strength increases
• Serves as a supplementary module during non-trending market phases
⚙️ Risk Management & Execution Principles
• The system prohibits holding positions in multiple directions simultaneously
• Position allocation follows a predefined and fixed structure
• All risk control is based on market volatility characteristics; no averaging down, pyramiding, or martingale logic is used
• Execution is fully rule-based with no discretionary intervention
🔍 Public Version Notes
• This script is intended solely for backtesting observation and structural reference
• Parameters are fixed and simplified and do not represent the full live-trading version
• Live trading results may differ from backtests due to fees, slippage, and latency
• Not recommended for direct live trading use
🔗 OKX Signal Strategy Follow Link
The live signal execution version of this system has been deployed on the OKX Signal Trading platform for reference and optional follow trading:
👉 OKX Signal Trading
www.okx.com
Please fully understand the strategy’s positioning, risk characteristics, and your own risk tolerance before following.
⚠️ Risk Disclaimer
This strategy does not guarantee profits.
Historical backtest results do not represent future performance.
Please carefully assess suitability and risks before use.
Pradip Divergence Pro - LIVE SIGNALSDivergence is one of the most powerful concepts because it acts like an early-warning system. It tells you when the market is "lying"—when the price is moving up or down, but the energy (momentum) behind it is dying.
Professor Algo Strategy-26I made this Strategy-26 is a price-action–based trading strategy focused on market structure, supply and demand zones, and trend confirmation. The strategy is designed to provide structured and rule-based trade signals while maintaining non-repainting behavior on historical data.
It combines swing-based structure analysis with adaptive moving averages and higher-timeframe bias to support both discretionary and systematic trading styles.
Automatic identification of supply and demand zones using swing highs and lows
Break of Structure (BOS) detection when price invalidates a zone
Non-repainting logic for reliable backtesting
Adaptive moving average crossover signals (ALMA, Hull MA, TEMA)
Optional higher-timeframe trend confirmation
Clear buy and sell signals plotted on the chart
Compatible with TradingView’s strategy backtesting engine
How the Strategy Works
Market structure is derived from pivot-based swing points.
Supply zones are created from significant swing highs, while demand zones are created from swing lows.
When price breaks a zone, it is marked as a Break of Structure, indicating a possible change in market direction.
Trade signals are generated when the selected moving average crosses in the direction of the prevailing trend. Higher-timeframe bias and momentum filters are used to reduce low-quality signals.
How to Use
This strategy can be applied to liquid markets such as Forex, cryptocurrencies, indices, and commodities.
Recommended timeframes:
Intraday trading: 5-minute to 15-minute charts
Swing trading: 30-minute to 1-hour charts
For best results, use supply and demand zones as contextual levels and trade in alignment with the higher-timeframe trend.
Risk Management
The strategy supports configurable stop-loss and take-profit settings. Pyramiding is disabled by default to control risk exposure. Users should always apply proper position sizing and risk management techniques.
Disclaimer
This script is provided for educational and research purposes only. It does not constitute financial advice. Trading involves risk, and past performance does not guarantee future results. Always test strategies using paper trading before applying them to live markets.
Thai Stock Trend Template (Minervini)Standard Criteria for Uptrend Stock Screening (Trend Template)
To ensure efficient security screening and accurate identification of stocks with structural strength (Stage 2 Uptrend), investors should prioritize securities that fully satisfy the following criteria:
1. Long-term Moving Average Alignment: The current security price must be positioned above both the 150-day Simple Moving Average (SMA 150) and the 200-day Simple Moving Average (SMA 200). Furthermore, the SMA 150 must be higher than the SMA 200.
2. Price Stability Duration: The security price must consistently maintain its level above the SMA 200 for a period of no less than one month (though a duration of 4-5 months or more is preferred for trend stability).
3. Short-to-Medium Term Slope and Momentum: The 50-day Simple Moving Average (SMA 50) must be positioned above both the SMA 150 and the SMA 200, respectively. Additionally, the current price must be trading above the SMA 50.
4. Recovery Rate from 52-Week Low: The current price must be at least 30% higher than its 52-week low. (A price increase of 100% to 300% or more is considered a hallmark of a high-performance stock).
5 .Proximity to 52-Week High: The current price must be within 25% of its 52-week high, indicating a high probability of establishing a new high.
6. Relative Strength (RS) Ranking: The security’s Relative Strength score must be at least 70. Scores within the 80 to 90 range (or higher) typically identify clear Market Leaders.
Additional Recommendations: These criteria are designed to identify stocks experiencing systematic accumulation and a clear state of demand exceeding supply. Investors should also incorporate Fundamental Analysis to ensure maximum security in risk management.
🛠️ How to Use in TradingView:
1. Open the TradingView application or website and select your desired Thai stock chart.
2. In the bottom panel, click on the "Pine Editor" tab.
3. Delete any existing code and paste the provided Pine Script.
4. Click "Save" (Title it: Thai Trend Template).
5. Click "Add to Chart".
💡 Visual Indicators:
Three-color Lines: SMA 50 (Blue), SMA 150 (Orange), and SMA 200 (Red).
Light Green Highlight: The background will turn green when the stock meets all Trend Template conditions simultaneously.
"TREND TEMPLATE" Label: This label will appear below the candle on the first day the stock qualifies, signaling the potential start of a major uptrend.
⚠️ Precautions:
RS Ranking: In this Pine Script, the calculation is based on the Raw Relative Strength (stock performance relative to its own past). Since Pine Script cannot pull rankings across the entire market directly like specialized scanning software, this serves as a technical proxy.
Thai Stock Market: It is highly recommended to use the Daily Timeframe only to maintain the accuracy and integrity of the original formula.
-----------------------------------------------------------------------------------------------
เกณฑ์มาตรฐานการคัดกรองหุ้นตามแนวโน้มขาขึ้น (Trend Template)
เพื่อให้การคัดกรองหลักทรัพย์เป็นไปอย่างมีประสิทธิภาพและสามารถระบุหุ้นที่มีความแข็งแกร่งเชิงโครงสร้าง (Stage 2 Uptrend) ได้อย่างแม่นยำ ผู้ลงทุนควรพิจารณาหลักทรัพย์ที่มีคุณสมบัติครบถ้วนตามหลักเกณฑ์ดังต่อไปนี้:
1. การเรียงตัวของเส้นค่าเฉลี่ยระยะยาว: ราคาหลักทรัพย์ปัจจุบันต้องอยู่เหนือเส้นค่าเฉลี่ยเคลื่อนที่ 150 วัน (SMA 150) และเส้นค่าเฉลี่ยเคลื่อนที่ 200 วัน (SMA 200) โดยที่เส้นค่าเฉลี่ย 150 วัน ต้องมีค่าสูงกว่าเส้นค่าเฉลี่ย 200 วัน
2. ระยะเวลาการยืนระยะของราคา: ราคาหลักทรัพย์ต้องสามารถรักษาระดับอยู่เหนือเส้นค่าเฉลี่ยเคลื่อนที่ 200 วัน มาอย่างต่อเนื่องเป็นระยะเวลาไม่น้อยกว่า 1 เดือน (โดยระยะเวลาที่เหมาะสมตามเกณฑ์ความมั่นคงของแนวโน้มคือ 4-5 เดือนขึ้นไป)
3. ความชันและโมเมนตัมระยะสั้นถึงกลาง: เส้นค่าเฉลี่ยเคลื่อนที่ 50 วัน (SMA 50) ต้องอยู่เหนือเส้นค่าเฉลี่ยเคลื่อนที่ 150 วัน และ 200 วัน ตามลำดับ อีกทั้งราคาปัจจุบันของหลักทรัพย์ต้องเคลื่อนไหวอยู่เหนือเส้นค่าเฉลี่ย 50 วัน
4. อัตราการฟื้นตัวจากจุดต่ำสุด: ราคาปัจจุบันของหลักทรัพย์ต้องปรับตัวสูงกว่าจุดต่ำสุดในรอบ 52 สัปดาห์ (1 ปี) อย่างน้อยร้อยละ 30 ขึ้นไป (หากราคาปรับตัวสูงขึ้นได้ร้อยละ 100 ถึง 300 จะถือเป็นสัญญาณของหุ้นที่มีประสิทธิภาพสูง)
5. กรอบการเคลื่อนไหวใกล้จุดสูงสุด: ราคาปัจจุบันต้องเคลื่อนไหวอยู่ในกรอบที่ไม่เกินร้อยละ 25 เมื่อเทียบกับจุดสูงสุดในรอบ 52 สัปดาห์ (1 ปี) เพื่อแสดงถึงสภาวะที่ราคาพร้อมจะสร้างระดับสูงสุดใหม่ (New High)
6. ค่าความแข็งแกร่งสัมพัทธ์ (Relative Strength Ranking): ค่าคะแนนความแข็งแกร่งสัมพัทธ์ของหลักทรัพย์ต้องไม่ต่ำกว่า 70 คะแนน โดยระดับที่บ่งชี้ถึงหุ้นผู้นำตลาด (Market Leader) ที่ชัดเจนควรมีคะแนนอยู่ในช่วง 80 ถึง 90 คะแนนขึ้นไป
ข้อแนะนำเพิ่มเติม : หลักเกณฑ์ดังกล่าวข้างต้นออกแบบมาเพื่อระบุหุ้นที่มีแรงซื้อสะสมอย่างเป็นระบบและอยู่ในสภาวะที่อุปสงค์มากกว่าอุปทานอย่างชัดเจน นักลงทุนควรใช้การวิเคราะห์ปัจจัยพื้นฐาน (Fundamental Analysis) ร่วมด้วยเพื่อความปลอดภัยสูงสุดในการบริหารความเสี่ยง
🛠️ วิธีใช้งานใน TradingView:
1. เปิดโปรแกรม/เว็บไซต์ TradingView แล้วเลือกกราฟหุ้นไทยตัวที่ต้องการ
2. ที่แถบด้านล่าง คลิกที่คำว่า "Pine Editor"
3. ลบโค้ดเก่าออกให้หมด แล้ว Copy โค้ดด้านบนไปวาง
4. กดปุ่ม "Save" (ตั้งชื่อว่า Thai Trend Template)
5. กดปุ่ม "Add to Chart"
💡 สิ่งที่คุณจะเห็น:
เส้น 3 สี: SMA 50 (น้ำเงิน), 150 (ส้ม), 200 (แดง)
แถบสีเขียวอ่อน: พื้นหลังจะเปลี่ยนเป็นสีเขียวเมื่อหุ้นตัวนั้นเข้าเงื่อนไข Trend Template ครบทุกข้อ ณ ขณะนั้น
ป้าย "TREND TEMPLATE": จะปรากฏใต้แท่งเทียนในวันแรกที่หุ้นเริ่มเข้าเกณฑ์ เพื่อบอกจุดเริ่มต้นของรอบขาขึ้น
⚠️ ข้อควรระวัง:
RS Ranking: ใน Pine Script ตัวนี้ ใช้การคำนวณ Performance ของตัวหุ้นเองเทียบกับอดีต (Relative Strength แบบดิบ) เนื่องจากระบบ Pine Script ไม่สามารถดึง Ranking ของหุ้นทั้งตลาดมาเปรียบเทียบกันได้โดยตรงเหมือนโปรแกรมสแกนเฉพาะทาง
ตลาดหุ้นไทย: แนะนำให้ใช้บน Timeframe Day เท่านั้นเพื่อให้แม่นยำตามสูตรต้นตำรับ
Enhanced Volume Pro v2.0 - Ultimate Edition# Enhanced Volume Pro v2.0 - Ultimate Edition
## Overview
**Enhanced Volume Pro v2.0** is the most comprehensive volume analysis indicator for serious traders. It combines institutional volume detection, smart money signals, climax volume identification, and advanced metrics — all in one powerful tool. Whether you're a swing trader, day trader, or investor, this indicator helps you understand what the "big money" is doing.
---
## 🔥 Key Features
### ⭐ Fresh Institutional Volume (IV) - NEW!
The **crown jewel** of this indicator. Detects when institutions are entering a position after a period of quiet accumulation.
**How it works:**
- Requires a "pause" period with no Pocket Pivots (customizable 3-10 bars)
- Volume must be 2x or higher than the highest volume in last 10 days
- Strong closing range confirms quality
- **This is often the BEST entry signal** for swing trades
### 🔵 Pocket Pivot Volume (PPV)
Classic institutional accumulation signal developed by Gil Morales and Chris Kacher.
**Detection Criteria:**
- Up day with volume greater than any down day volume in lookback period
- Strong closing range (closes in upper portion of bar)
- Indicates institutions are quietly accumulating shares
### 🐂 Bull Snort Candles
Explosive volume signals showing extreme institutional interest.
**Detection Criteria:**
- Volume at least 3x (300%) above the 50-day average
- Strong closing range (closes in upper 35% of the bar)
- Often marks the beginning of a powerful move
### 💥 Climax Volume Detection - NEW!
Identifies potential market turning points.
| Type | Signal | Meaning |
|------|--------|---------|
| **Selling Climax (SC)** | Massive down volume + large price drop | Potential Bottom |
| **Buying Climax (BC)** | Massive up volume + large price surge at highs | Potential Top |
### ⚠️ Volume Divergence - NEW!
Spots hidden weakness or strength in price moves.
- **Bearish Divergence:** Price making new highs but volume declining — warns of potential reversal
- **Bullish Divergence:** Price making new lows but selling volume declining — potential bottom forming
### 📊 Distribution Days Counter - NEW!
Tracks institutional selling pressure over time.
- Counts distribution days in customizable lookback period
- **Warning alert** when too many distribution days accumulate
- Helps identify when institutions are exiting positions
---
## 📈 Volume Event Labels
| Label | Color | Meaning |
|-------|-------|---------|
| **IV** | Gold | Fresh Institutional Volume - Best Entry |
| **HVE** | Magenta | Highest Volume Ever |
| **HVY** | Cyan | Highest Volume in Year |
| **HVQ** | Orange | Highest Volume in Quarter |
| **SC** | Red | Selling Climax - Potential Bottom |
| **BC** | Green | Buying Climax - Potential Top |
| **BD** | Red | Bearish Divergence Warning |
| **BuD** | Green | Bullish Divergence Signal |
| ■ | Purple | Bull Snort (at bar bottom) |
| **Y** | Orange | Lowest Volume in Year |
| **Q** | Orange | Lowest Volume in Quarter |
---
## 📊 Advanced Metrics Table
The information table displays real-time metrics:
| Metric | Description |
|--------|-------------|
| **Volume** | Current bar volume |
| **RVol** | Relative Volume (vs 50-day average) — Shows as % or multiplier |
| **Dist Days** | Distribution days count with warning indicator |
| **Proj Vol** | Projected end-of-day volume (intraday only) |
| **Avg ₹Vol** | Average Dollar/Rupee Volume |
| **1mL** | 1-Minute Liquidity — How much can be traded per minute |
| **U/D Vol** | Up/Down Volume Ratio — Above 1.5 = Accumulation, Below 0.8 = Distribution |
| **Vol Buzz** | Volume % above/below average |
| **Event** | Current special volume event detected |
---
## 🎨 Volume Bar Colors
| Color | Condition |
|-------|-----------|
| **Gold** | Fresh Institutional Volume |
| **Blue** | Pocket Pivot |
| **Purple** | Bull Snort |
| **Bright Red** | Selling Climax |
| **Bright Green** | Buying Climax / High Up Volume |
| **Red** | High Down Volume |
| **Orange** | Low/Dry Volume |
| **Dark Grey** | Normal Volume |
| **Magenta** | Highest Volume Ever |
| **Cyan** | Highest Volume in Year |
---
## ⚙️ Settings Guide
### Fresh IV Settings
| Setting | Default | Description |
|---------|---------|-------------|
| Pause Bars | 5 | Bars without PPV before IV can trigger |
| Volume Multiplier | 2.0x | Volume must be this much higher than 10-day high |
| Min Closing Range | 0.5 | Minimum close position (0.5 = upper half) |
### Pocket Pivot Settings
| Setting | Default | Description |
|---------|---------|-------------|
| Lookback Period | 10 | Days to check for highest down volume |
| Min Closing Range | 0.5 | Quality filter for PPV |
### Climax Volume Settings
| Setting | Default | Description |
|---------|---------|-------------|
| Volume Multiplier | 3.0x | Volume vs average for climax |
| Price Move % | 3.0% | Minimum price change for climax |
### Distribution Settings
| Setting | Default | Description |
|---------|---------|-------------|
| Lookback | 25 | Days to count distribution |
| Warning Level | 5 | Alert when this many dist days occur |
---
## 📖 How to Use
### For Swing Trading Entry:
1. **Wait for Fresh IV (⭐)** — This is your highest probability entry
2. **Confirm with Pocket Pivots** — Shows continued accumulation
3. **Check U/D Ratio** — Should be above 1.5 for accumulation
4. **Monitor Distribution Days** — Stay cautious if count is high
### For Identifying Tops/Bottoms:
1. **Selling Climax (SC)** at lows often marks bottoms
2. **Buying Climax (BC)** at highs often marks tops
3. **Bearish Divergence** warns of potential reversal
4. **High Distribution Days** suggest institutional selling
### For Position Management:
1. **Track RVol** — High RVol confirms move validity
2. **Watch Vol Buzz** — Sudden spikes indicate news/interest
3. **Monitor 1mL** — Ensures adequate liquidity for your size
---
## 🔔 Alerts Included
- ⭐ Fresh Institutional Volume (IV)
- 🔵 Pocket Pivot Detected
- 🐂 Bull Snort Detected
- 💥 Selling Climax (Potential Bottom)
- 🚀 Buying Climax (Potential Top)
- ⚠️ Bearish Divergence
- ✅ Bullish Divergence
- 🔥 Highest Volume Ever/Year/Quarter
- 💪 Power Volume
- ⚠️ Distribution Warning
- ✅ Strong Accumulation (U/D >= 1.5)
- ⚠️ Strong Distribution (U/D <= 0.8)
---
## 💡 Pro Tips
1. **Fresh IV is KING** — This signal has the highest win rate for entries
2. **Combine signals** — IV + Rising U/D Ratio = Strong setup
3. **Context matters** — Climax volumes work best at extremes
4. **Use Paint Bars** — Enable to color price candles for quick identification
5. **Set alerts** — Don't miss Fresh IV or Climax signals
6. **Check Distribution** — Even good stocks fail if institutions are selling
---
## 🎯 Best For
- **Swing Traders** — Fresh IV and PPV signals
- **Momentum Traders** — Bull Snort and Power Volume
- **Reversal Traders** — Climax Volume and Divergence signals
- **Position Traders** — Distribution Days and U/D Ratio tracking
- **Indian Market Traders** — Includes ₹ volume and Crore formatting
---
## ⚠️ Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Volume analysis should be combined with price action, fundamentals, and proper risk management. Always do your own research before making trading decisions. Past performance does not guarantee future results.
---
## 📝 Release Notes
**v2.0 - Ultimate Edition**
- 🆕 Added Fresh Institutional Volume (IV) detection
- 🆕 Added Volume Divergence (Bullish/Bearish)
- 🆕 Added Climax Volume (Selling/Buying)
- 🆕 Added Distribution Days Counter with warning
- 🆕 Added Projected Volume for intraday
- 🆕 Added Volume Buzz metric
- 🆕 Enhanced information table with all metrics
- 🆕 Added Paint Bars option for price candles
- 🆕 Multiple new alerts for all features
- Improved Pocket Pivot detection
- Added customizable marker styles
- Performance optimizations
**v1.0**
- Initial release with PPV, Bull Snort, HVE/HVY/HVQ
---
## 💬 Feedback
If you find this indicator valuable, please leave a like and comment! Share your trading results and suggestions for future improvements.
**Follow for updates and more trading tools!**
---
**Tags:** #Volume #InstitutionalVolume #PocketPivot #BullSnort #ClimaxVolume #SmartMoney #VolumeAnalysis #VolumeDivergence #Distribution #Accumulation #SwingTrading #TechnicalAnalysis #VolumeProfile #RelativeVolume
Accurate Dollar Risk & Position Size Manager⭐️ Product Title
Faceless Capital Manager - Smart Position Sizing & Risk Automation Tool
🤔 What is the general logic of this indicator:
A complete revolution in capital management.
No calculations. No headroom. Just smart trading.
Optionally plots several moving averages (20/50/100/200) and SMA 7
No manual spreadsheets, no extra risk-management knowledge required.
Everything is automated.
📌 This indicator does all the capital management calculations for you automatically.
📚 Why capital and risk management are important:
According to available sources, 90% of trading success depends on capital management, risk and market psychology, while correct analysis only accounts for about 10% of success.
Capital and risk management also play a very important role in your psychology in the market because when you open a position with your desired loss amount, you do not get scared and emotional and you manage your position easily.
The indicator does all the math and tells you how much volume you should enter in this trade, i.e. it calculates your position size.
The indicator places your stop loss and target levels on the chart based on the data above.
You can manage which data you see on your chart.
🤖 How this indicator works:
You enter seven simple data points.
1- Total trading capital volume
2- Leverage
3- Stop size based on percentage based on your analysis on the chart
4- Reward to risk in fixed R/R strategies
5- Number of daily trades
6- Maximum daily risk in percentage
7- Position type Short or Long
🔥 Competitive advantages:
• Without creating numerous labels (fully optimized)
• High readability and accuracy
• Minimum human error
• Special for scalping, day traders and swing
📦 This indicator includes the following features:
Automatic calculation of position size
Calculation of daily risk
Risk per trade
Dollar loss limit
Support for different leverages
Instant ID on Chart
Professionally managed Movenpick Forex
Minimal and high-quality design
Suitable for beginners to professional traders
⚙️ Default settings:
totalCap = 10000
leverage =1
stopLossPercentInput =2.0
rewardRatioInput = defval=3.0
numberOfTrades =3
maxRiskDailyPercent = 1.0
positionDirection =“Long"
🚨 Important Notes
This tool does not provide trading signals or financial advice .
All results are purely mathematical calculations based on user inputs.
Past performance or specific numbers displayed by the script do not guarantee any future outcomes.
Traders are responsible for evaluating their own risk tolerance and trading decisions.
Ozgur TELEK Elite ScalperBreakout Strategy: If the price breaks above the Red Resistance line with a high-volume candle and the “BUY” signal lights up at the same time, this is the trade with the highest success rate.
Support Reversal: If the price touches the Green Support line and bounces upward while the “BUY” signal is lit, you can enter the trade with a very short stop distance (just below the support).
False Signal Filter: If the “BUY” signal is lit but the price is just below the Red Resistance line, do not enter without waiting for the breakout. It may reverse from the resistance.
Translated with DeepL.com (free version)
Institutional Flow Engine - MEI and Execution PressureDescription:
This indicator is NOT based on traditional momentum oscillators.
It is built to measure how efficiently price moves and who controls the auction inside every candle.
Instead of chasing signals, this tool focuses on market structure behavior used by professional money.
📊 Indicator Explanation — How It Works
This indicator analyzes how price moves, not just where it moves 📈
It focuses on flow behavior and auction dynamics, not traditional lagging oscillators.
It is built using two core components:
⚙️ Market Efficiency Index (MEI)
MEI measures how much of the candle range represents real directional movement.
🔹 High MEI = Clean movement
→ Strong displacement
→ Low noise
→ Institutional participation
🔹 Low MEI = Inefficient movement
→ Consolidation
→ Absorption
→ Market indecision
In simple terms:
👉 MEI shows movement quality.
⚖️ Execution Pressure Index (EPI)
EPI measures who dominated the candle execution.
🔹 Close near the high
→ Buyers controlled the auction 🟢
🔹 Close near the low
→ Sellers controlled the auction 🔴
🔹 Neutral close
→ Balanced auction ⚪
In simple terms:
👉 EPI shows who won the candle.
🔗 How MEI and EPI Work Together
Both metrics should always be read together:
🟢 MEI rising + EPI positive
→ Clean buying pressure
→ Strong bullish flow
🔴 MEI rising + EPI negative
→ Clean selling pressure
→ Professional bearish execution
⚠️ MEI falling + EPI changing direction
→ Transition phase
→ Possible absorption
→ Market slowing down
This combination allows traders to identify:
✔ Trend strength
✔ Flow quality
✔ Market transitions
✔ Fake breakouts
✔ Exhaustion zones
🧠 Important Usage Note
This indicator is designed for market reading, not signal chasing.
Always combine with:
📌 Higher timeframe structure
📌 Key price levels
📌 Market context
Price is the effect.
Flow is the cause.





















