Coppe's Intraday Strategy V.3 Auto-TP PresetsGood Gold Intraday Trading Strategy with Monthly Backtesting Research
指標和策略
Greg's LevelsWell Team Bull, this was more difficult than I thought but here it is. Greg's Levels.
Based on the work of Nosral and the Daily High/Low script
Thanks to Greg for his video that finally made it click. Greg's video is here
www.youtube.com
I'm not the best coder, especially with pinescript so please let me know if I can clean it up or adjust things. Or just do it and share it to the community.
In my script the higher time frames don't trump lower, that is more complex coding, so I added the ability to change the lines or line thickness to take precedence.
I am also not sure how to chose the closest POI (point of interest) until it's mitigated than show the next so all POI's are seen. If you watch the video you'll see the hot box Greg refers to.
Since I was in it this far I added the ability to add a 4th time frame if you want to add the hourly, 30m, 15m, monthly, etc.
Anyway. Let's go Team Bull.
DOD
Blaez
INDICADOR PRO🧪 How to Use It Effectively (Forex & Crypto)
✔️ Ideal for:
EURUSD, GBPUSD, USDJPY
BTC, ETH (best during London + New York sessions)
✔️ Recommended:
Disable the Asia session for crypto if the market is noisy
Backtest for at least 3–6 months
Use PDH/PDL as a strong filter
SMA Reversal Sequential MTF - FinalSMA Reversal Sequential MTF - Final Edition
Here is the direct English translation of the description, maintaining the professional and factual tone without excessive ornamentation.
SMA Reversal Sequential MTF - Final Edition
1. Overview
This script is the final edition of "SMA Reversal Sequential MTF," featuring a proprietary logic that identifies market pivot points based on the structural changes of Simple Moving Averages (SMA). It integrates multi-timeframe (MTF) analysis covering from 1-minute to monthly scales, visualizing trend status, synchronization, and consolidations (squeezes) directly on the chart.
2. Core Logic
SMA Reversal Logic: Identifies points where the SMA shifts in a "V-shape" or "Inverted V-shape" based on the positional relationship of the three most recent MA points. The algorithm maintains strictly precise calculations consistent since the initial version.
Breakout Detection: Displays a "BREAK" label when the price closes beyond the most recent high or low established by a pivot point.
Multi-Timeframe (MTF): Projects signals from higher timeframes (e.g., 1D, 4H, 1H) onto the current chart.
3. Input Settings
The settings menu is configured with bilingual labels (Japanese and English).
■ Main Settings
Use Short Period Settings (5, 3, 7)
OFF (Default): SMA 20, Offset 6, Lookback 20
ON: SMA 5, Offset 3, Lookback 7
■ Timeframe Visibility
Show Timeframes (1M to 1m)
Individually toggle the visibility of each timeframe. The settings are organized in descending order from higher to lower timeframes.
Hide Lower Timeframes
When ON, automatically hides signals from timeframes lower than the one currently displayed on the chart.
■ Drawing Options
Show Only Current TF Labels
Hides MTF labels and displays only the pivot points corresponding to the current chart timeframe.
Show Trendlines & Channels
Automatically plots lines connecting recent highs/lows and their parallel channels for the current timeframe.
Show Sequential Labels
Displays labels (e.g., 1H) at SMA reversal points to indicate the source timeframe.
Show Break Lines
Displays horizontal lines at un-breached highs/lows along with breakout labels.
■ Additional Alert Settings
Alert 1: 3-TF Sync
Triggers when the current timeframe and the two immediate higher timeframes align in the same trend direction.
Alert 2: 4-TF Sync
Triggers when four timeframes synchronize in the same trend direction.
Alert 3: Squeeze (Green ●)
Detects "Triangle Squeezes" (lower highs and higher lows) and displays a "●" on the chart with a notification.
4. Dashboard
The dashboard in the top-right corner displays the real-time trend status of five major timeframes (1D, 4H, 1H, 15M, 5M).
Blue: Bullish (Price has broken the recent high)
Red: Bearish (Price has broken the recent low)
Gray: Neutral
5. Trading Application
Market Context: Identify directional bias when dashboard colors align.
Entry Alignment: Utilize "Sync Alerts" on lower timeframes as signals when they align with the higher timeframe trend.
Volatility Contraction: The appearance of a green "●" (Squeeze) indicates energy consolidation, suggesting a potential breakout.
SMA Reversal Sequential MTF - Final Edition
1. 概要 (Overview)
本スクリプトは、SMA(単純移動平均線)の形状変化から相場の転換点(ピボット)を特定する独自ロジックを用いた「SMA Reversal Sequential MTF」の最終盤です。1分足から月足までを網羅するマルチタイムフレーム(MTF)分析を統合しており、上位足のトレンド状態、同期、三角保合い(スクイーズ)をチャート上に可視化します。
2. ロジック解説 (Core Logic)
SMA Reversal Logic: 指定期間のSMAが「V字」または「逆V字」に転換したポイントを、直近のMA3点の位置関係から算出します。アルゴリズムは初版から変わらぬ厳密な計算を維持しています。
Breakout Detection: 転換点で作られた直近の高値・安値を終値でブレイクした際に「BREAK」ラベルを表示します。
Multi-Timeframe (MTF): 現在のチャート上に上位足(1D, 4H, 1H等)のシグナルを投影します。
3. インプット項目の詳細 (Input Settings)
設定画面は、日本語と英語の併記構成となっています。
■ 基本設定 / Main Settings
短期設定を使用 (5, 3, 7) / Use Short Period Settings
OFF (デフォルト):SMA 20, Offset 6, Lookback 20
ON:SMA 5, Offset 3, Lookback 7
■ 時間足表示設定 / Timeframe Visibility
1M表示 ~ 1m表示 / Show Timeframes
各時間足の表示を個別に切り替えます。設定画面では大きな足から順に並んでいます。
現在足より短い時間足の設定を非表示 / Hide Lower Timeframes
ONにすると、現在表示しているチャートより短い時間足のシグナルを自動で非表示にします。
■ 表示オプション / Drawing Options
現在足のラベルのみ表示 / Show Only Current TF Labels
現在の時間足の転換点のみを表示し、MTFラベルを非表示にします。
トレンドライン&チャネルを表示 / Show Trendlines & Channels
現在足の安値同士・高値同士を結んだラインと、平行チャネルを自動描画します。
転換点ラベル表示 / Show Sequential Labels
SMAの反転箇所に、該当する時間足のラベル(例:1H)を表示します。
ブレイクライン表示 / Show Break Lines
未更新の高値・安値ラインと、ブレイク時のラベルを表示します。
■ 追加アラート設定 / Additional Alert Settings
アラート1: 現在・上位2つ同調 / Alert 1: 3-TF Sync
現在足+上位2つの時間足のトレンドが同一方向になった際に通知します。
アラート2: 表示足を含む4足同調 / Alert 2: 4-TF Sync
4つの時間足のトレンドが同期した際に通知します。
アラート3: 三角保合い発生 (緑●) / Alert 3: Squeeze
高値切り下がり、安値切り上がりの「三角保合い」形成を検知し、チャート上に「●」を表示・通知します。
4. ダッシュボード (Dashboard)
チャート右上に主要5足(1D, 4H, 1H, 15M, 5M)のトレンド状況をリアルタイム表示します。
青色(Blue): 強気(直近高値をブレイク中)
赤色(Red): 弱気(直近安値をブレイク中)
灰色(Gray): ニュートラル
5. トレードへの活用
環境認識: ダッシュボードの色が揃っている方向への優位性を確認します。
エントリー判断: 上位足のトレンド方向に、下位足で同期アラートが発生したポイントをシグナルとして活用します。
ボラティリティの収束: 緑の「●(Squeeze)」が表示された際は、エネルギーが収束している状態を示唆します。
PDH & PDL - Previous Day LevelsPDH & PDL – Previous Day High and Low
This indicator automatically plots the Previous Day High (PDH) and Previous Day Low (PDL) on intraday charts.
These key levels are widely used by traders as important support and resistance zones, helping to identify potential areas for price reactions, breakouts, or liquidity grabs.
Features
Automatically detects the previous trading day’s high and low
Draws clear horizontal levels across the current session
Labels the levels as PDH and PDL
Updates in real time at the start of each new trading day
Designed for intraday timeframes
How to Use
Use PDH as a potential resistance level
Use PDL as a potential support level
Watch for breakouts, rejections, or retests around these levels
Combine with price action, volume, or session-based strategies
Best For
Day trading
Scalping
Forex, indices, crypto, and futures
Traders who use market structure and key levels
This indicator keeps your chart clean while highlighting two of the most important reference levels from the previous trading day.
Sarina-5Dynamic Growth EMAs - 01152026It’s great to hear that we’ve built a solid rapport! I really appreciate your patience, and I'm glad I could strictly follow your computational bases this time. Here is a clear, professional English description you can use to introduce this indicator to others:
Dynamic Growth & Cascading Reset EMAs
This indicator features a sophisticated set of 5 Exponential Moving Averages (EMAs) that dynamically evolve based on price action and time. Unlike static EMAs, these lines "grow" and "spread" during trends to visualize momentum and volatility expansion.
Core Features:
Dynamic Length Growth: The EMA periods are not fixed. They increase in length during both upswings and downswings, causing the lines to spread apart as a trend strengthens.
Bidirectional Expansion: Lengths grow regardless of direction, ensuring the "fan" effect is visible in both bullish and bearish rallies.
Pivot Reset Logic: To maintain responsiveness, all EMA lengths reset to their initial values (2, 5, 8, 13, 21) whenever the price changes direction, allowing the indicator to catch new moves early.
Cascading & Sticky Resets: When faster EMAs cross slower ones, a "sticky" reset occurs. The triggered lines inherit the value of the next higher EMA to maintain smooth price continuity and avoid erratic jumps on the chart.
Multi-Level Visual Gradient: * Four distinct transparency zones (75%, 85%, 90%, 95%) create a professional "heat map" between the lines.
Dynamic color fills (Green for Bullish / Red for Bearish) based on the relationship between adjacent lines.
Hierarchical Signals (B1-B4 & S1-S4): Clear text-only labels mark every crossover point between the EMAs, identifying different stages of trend confirmation without cluttering the background.
Computational Foundation:
The indicator accounts for time-based decay, where the growth rate of the EMAs can be set to diminish after a specific duration, simulating the natural exhaustion of market momentum.
HL Zone + Vol Alert (Complete) + Vol Explosion Alertabc
a
kfsdkfjaighhguhgdfndnfdinfdndgdsgdsgdgdfsjgndfjgnsjfgnsdjgnjsgnjdfngsdfgs
Hash Ember StackOverview
Hash Ember Stack is a multi-period momentum visualizer that displays a structured view of market pressure across ten different lookback windows. It is designed to help operators assess how momentum behaves across short-term, intermediate, and long-term horizons using a unified ribbon-stack format.
The tool does not generate trading entries by itself; instead, it organizes momentum data so traders can better understand how multiple timeframes align or diverge.
Conceptual Framework
The indicator calculates momentum using one of three oscillator families:
RSI – measures velocity and magnitude of price movement
Stochastic – compares close relative to recent range
CCI – measures deviation from the average price
Each oscillator is normalized into a comparable 0–100 scale so all periods can share the same heatmap color logic. This creates a consistent visual framework regardless of which momentum type is selected.
The ten lookback periods range from very short (fast response) to very long (structural regime). Displaying them together helps illustrate momentum compression, expansion, clustering, or divergence across timeframes.
Ribbon Structure & Visual System
Each period is represented as a horizontal band (“ribbon”) with:
A fixed vertical height for readability
A heat-mapped color derived from momentum value
Optional spacing between ribbons to improve separation
The color system transitions from green (momentum weakness), through neutral tones, into red (momentum strength). These colors do not predict price direction; they simply map oscillator values into a standardized visual gradient.
Labels may be shown on the right side to indicate each ribbon’s lookback period.
Extreme Condition Detection (Optional)
The indicator can highlight situations where several momentum periods reach extreme conditions at the same time.
Oversold status is defined by user-selected thresholds
Overbought status uses an upper threshold
A fluorescent cross is plotted when a minimum number of ribbons meet these definitions
These markers do not produce trading signals; they are intended only to highlight statistically uncommon clustering of extreme momentum readings.
Inputs & Controls
Momentum Type – Selects which oscillator family is used
Smoothing – Applies an SMA to reduce noise
Ten customizable lookback periods – Short to macro momentum
Ribbon Height & Gap – Adjusts layout density
Period Labels – Enables lookback annotations
Extreme Signal Settings – Thresholds and minimum ribbon count
Signal Position – Above or below the ribbon stack
Intended Use
Hash Ember Stack is suitable for:
Identifying how different time horizons align
Visualizing periods of momentum compression and expansion
Contextualizing reversals or trend continuation environments
Supporting discretionary or systematic analysis workflows
The indicator is not a strategy and does not perform backtesting or place trades. It provides structured momentum context that operators can integrate into their own decision-making frameworks.
ApexTrend Lite
ApexTrend Lite is a directional trend band indicator designed to show market structure, trend direction, and volatility in a simple visual form.
The indicator plots a single adaptive band that changes position based on trend conditions. In bullish markets, the band appears below price. In bearish markets, the band appears above price. During sideways or low-strength conditions, the band compresses near the trend average.
The band automatically expands when volatility and trend strength increase and contracts when conditions weaken. Color intensity reflects trend strength, helping distinguish strong trends from weak or choppy periods.
The band is anchored to candle extremes, ensuring it hugs price without gaps and accurately represents market structure. ApexTrend Lite does not repaint and works across all asset classes, including equities, indices, and commodities.
This is the Lite version focused on clean visual trend context
KCP Pivot TrendLine [Dr.K.C.Prakash]KCP Pivot TrendLine automatically plots non-repainting trendlines by connecting confirmed pivot highs and pivot lows.
It helps identify trend direction, support, and resistance, with optional display of only the latest trendline for a clean chart.
Best suited for market structure analysis and swing trading.
jaems_Combo: StochRSI + MACD + ADX [QuantDev]//@version=6
strategy("jaems_Combo: StochRSI + MACD + ADX ", overlay=false, initial_capital=10000, currency=currency.USD, commission_type=strategy.commission.percent, commission_value=0.05, slippage=1)
// ==========================================
// 1. 사용자 입력 (User Inputs)
// ==========================================
//
grp_time = "Backtest Period"
useDateFilter = input.bool(true, "기간 필터 적용", group=grp_time)
startDate = input.time(timestamp("2023-01-01 00:00"), "시작일", group=grp_time)
endDate = input.time(timestamp("2099-12-31 23:59"), "종료일", group=grp_time)
inDateRange = not useDateFilter or (time >= startDate and time <= endDate)
//
grp_stoch = "1. Stochastic RSI Settings"
stoch_len = input.int(14, "RSI Length", group=grp_stoch)
stoch_k = input.int(3, "K", group=grp_stoch)
stoch_d = input.int(3, "D", group=grp_stoch)
rsi_len = input.int(14, "Stochastic Length", group=grp_stoch)
//
grp_macd = "2. MACD Settings (Normalized)"
macd_fast = input.int(12, "Fast Length", group=grp_macd)
macd_slow = input.int(26, "Slow Length", group=grp_macd)
macd_sig = input.int(9, "Signal Length", group=grp_macd)
macd_norm_len = input.int(100, "Normalization Lookback", group=grp_macd)
//
grp_adx = "3. ADX Settings"
adx_len = input.int(14, "ADX Smoothing", group=grp_adx)
di_len = input.int(14, "DI Length", group=grp_adx)
adx_thresh = input.int(25, "ADX Threshold", group=grp_adx)
//
grp_risk = "4. Risk Management"
stopLossPct = input.float(2.0, "손절매 (Stop Loss %)", step=0.1, group=grp_risk) / 100
takeProfitPct = input.float(4.0, "익절매 (Take Profit %)", step=0.1, group=grp_risk) / 100
// - 신규 추가 (Alert Configuration)
grp_alert = "5. Alert Configuration"
msg_long_entry = input.string("Long Entry Triggered", "Long 진입 메시지", group=grp_alert)
msg_short_entry = input.string("Short Entry Triggered", "Short 진입 메시지", group=grp_alert)
msg_long_exit = input.string("Long Position Closed", "Long 청산 메시지", group=grp_alert)
msg_short_exit = input.string("Short Position Closed", "Short 청산 메시지", group=grp_alert)
// ==========================================
// 2. 데이터 처리 및 지표 계산
// ==========================================
// Stoch RSI
rsi_val = ta.rsi(close, rsi_len)
k = ta.sma(ta.stoch(rsi_val, rsi_val, rsi_val, stoch_len), stoch_k)
d = ta.sma(k, stoch_d)
// ADX
= ta.dmi(di_len, adx_len)
// Normalized MACD (0~100 Scale)
= ta.macd(close, macd_fast, macd_slow, macd_sig)
highest_macd = ta.highest(macd_line, macd_norm_len)
lowest_macd = ta.lowest(macd_line, macd_norm_len)
// 분모가 0이 되는 예외 처리
denom = (highest_macd - lowest_macd)
norm_macd = denom != 0 ? (macd_line - lowest_macd) / denom * 100 : 50
norm_signal = denom != 0 ? (macd_signal - lowest_macd) / denom * 100 : 50
// ==========================================
// 3. 시각화 (Dark Mode Optimized Colors)
// ==========================================
color gridColor = color.new(#787B86, 50)
hline(0, "Bottom", color=gridColor)
hline(50, "Middle", color=gridColor, linestyle=hline.style_dotted)
hline(100, "Top", color=gridColor)
plot(k, "Stoch K", color=color.new(#00E5FF, 0), linewidth=1) // Neon Cyan
plot(d, "Stoch D", color=color.new(#EA00FF, 0), linewidth=1) // Neon Magenta
plot(adx, "ADX", color=color.new(#FFEB3B, 0), linewidth=2)
hline(adx_thresh, "ADX Threshold", color=color.new(#FFEB3B, 50), linestyle=hline.style_dashed)
plot(norm_macd, "Norm MACD", color=color.new(#76FF03, 60), style=plot.style_area)
plot(norm_signal, "Norm Signal", color=color.new(#FF1744, 20), linewidth=1)
// ==========================================
// 4. 전략 로직 (Strategy Logic) - 요청하신 내용으로 전면 수정
// ==========================================
// 조건: K가 D보다 크고(AND) K가 Norm Signal보다 큰 상태
bool is_bullish = (k > d) and (k > norm_signal)
// 조건: K가 D보다 작고(AND) K가 Norm Signal보다 작은 상태
bool is_bearish = (k < d) and (k < norm_signal)
// 진입 신호: "이전 봉에는 아니었는데, 지금 봉에서 두 조건을 동시에 만족했을 때" (돌파 순간)
longCondition = is_bullish and not is_bullish
shortCondition = is_bearish and not is_bearish
// 주문 실행 (Confirmed Bar Only) + Alert Message 연결
if inDateRange and barstate.isconfirmed
if longCondition
strategy.entry("Long", strategy.long, alert_message=msg_long_entry)
if shortCondition
strategy.entry("Short", strategy.short, alert_message=msg_short_entry)
// ==========================================
// 5. 청산 및 신호 강조 (Alert Message 추가)
// ==========================================
if strategy.position_size > 0
strategy.exit("Long Exit", "Long", stop=strategy.position_avg_price * (1 - stopLossPct), limit=strategy.position_avg_price * (1 + takeProfitPct), alert_message=msg_long_exit)
if strategy.position_size < 0
strategy.exit("Short Exit", "Short", stop=strategy.position_avg_price * (1 + stopLossPct), limit=strategy.position_avg_price * (1 - takeProfitPct), alert_message=msg_short_exit)
// 배경 신호
bgcolor(longCondition ? color.new(#76FF03, 90) : na, title="Long Signal BG")
bgcolor(shortCondition ? color.new(#FF1744, 90) : na, title="Short Signal BG")
Sebastine All in One Indicator Sebastine All in One Indicator
Introduction
Markets speak in many dialects.
Sometimes they whisper through volume, sometimes they shout via momentum, at times they breathe through volatility, and occasionally they leave footprints in OBV, PVT, RSI, or TSI.
Most traders respond by stacking indicator after indicator—until the chart resembles a tangled fishing net.
This indicator was built to untangle that net.
Instead of plotting multiple indicators simultaneously, this tool lets you focus on one dimension of market behavior at a time, while preserving structure through a Darvas-style box framework.
The box logic used here is inspired by Darvas-style structural bounding, applied to non-price data such as volume, momentum, and volatility.
🔍 What This Indicator Does
• Combines Volume, OBV, PVT, RSI, Momentum, Volatility, TSI, and Supertrend
• Displays only one selected data stream at a time, reducing noise
• Wraps the selected indicator inside a dynamic Darvas-style box
• Highlights:
o Breakouts & breakdowns
o Compression (energy build-up)
o Structural shifts
o Momentum inflections
o Mean-reversion zones
Think of it as one lens, many filters—you rotate the lens, not clutter the chart.
🧠 How to Use It (Practical Insight)
• Volume / OBV / PVT → Institutional intent & accumulation/distribution
• Momentum / RSI / TSI → Strength, exhaustion, and early reversals
• Volatility → Expansion after contraction (the market’s deep breath)
• Supertrend (as data source) → Trend structure without price bias
The Darvas-style box adds context:
• Narrow boxes = stored energy
• Box expansion = energy release
• Source touching box edges = reaction zones
• Zero-line crossings = regime shifts (where applicable)
• 🎯 Who Is This For?
• Traders who want clarity over clutter
• Discretionary traders who adapt tools to market phase
• System builders seeking structure with flexibility
• Anyone who believes less noise = more signal
📝 Points to Note (Important for Proper Interpretation)
1. Color Coding & Structure
• The upper box line (green) represents the upper structural boundary
• The lower box line (red) represents the lower structural boundary
• The white step-line represents the selected source indicator (e.g., PVT, RSI, Momentum)
2. Pane Scaling & Visibility (Very Important)
• This indicator is designed for use in the bottom pane
• Different sources have very different numerical ranges:
o RSI is bounded between 0 and 100
o PVT, OBV, and Volume can have large absolute values
• Users should manually drag and scale the indicator vertically for optimal visibility
• This is intentional and preserves the raw integrity of each data source rather than force-normalizing it
3. Histogram for Comparative Insight
• A histogram of the selected source is included for quick visual comparison
• Helps identify expansion, contraction, acceleration, and divergence, especially during compression phases inside the box
📌 Recommended Usage (Clarity Over Clutter)
Although multiple sources are available, it is strongly recommended to use one chart with one selected source at a time for best clarity and analytical depth.
For first-time users, PVT (Price Volume Trend) is an ideal starting point.
It blends price movement and volume flow into a single continuous narrative and often reveals institutional participation earlier than price alone. PVT works especially well within the Darvas-style box framework.
Once comfortable, users may switch to RSI, Momentum, Volatility, OBV, or other sources—but always one at a time. This preserves the philosophy of focused observation rather than indicator overload.
🌱 Philosophy Behind the Tool
This indicator rewards patience and observation.Give it space.
It will quietly show when the market is gathering energy—and when it is ready to move.
Markets don’t change indicators. We change how we listen.
This indicator doesn’t predict. It reveals.
Think of it not as a dashboard, but as a rotating telescope—you change lenses, not skies.
Arbitrage Matrix [LuxAlgo]The Arbitrage Matrix is a follow-up to our Arbitrage Detector that compares the spreads in price and volume between all the major crypto exchanges and forex brokers for any given asset.
It provides traders with a comprehensive view of the entire marketplace, revealing hidden relationships among different exchanges for the same asset and offering easy, visual comparisons.
🔶 USAGE
Arbitrage is the practice of taking advantage of price differences for the same asset across different markets. Arbitrage traders look for these discrepancies to profit from buying where it’s cheaper and selling where it’s more expensive to capture the spread.
For begginers this tool is a clear snapshot of how different markets value the same asset, making global price dynamics easy to grasp.
For advanced traders it is a powerful scanner for arbitrage setups, helping you identify where the biggest opportunities lie in real time.
Arbitrage opportunities are often short‑lived, but they can be highly profitable. By showing you where spreads exist, this tool helps traders:
Understand market inefficiencies
Avoid trading at unfavorable prices
Identify potential profit opportunities across exchanges
By default, the tool searches all the enabled sources for the asset in the chart. It uses crypto exchanges as sources for crypto assets and forex brokers for all other assets.
The data is displayed on a dashboard, which is the tool's only visual element.
Traders can enable or disable any exchange or broker from the settings panel. All are enabled by default.
🔹 Displayable Data
Traders can choose from four types of data to display: last price, last volume, average price, and average volume.
Note that price and volume data may not be available for all assets at all sources, and sources without data will not be displayed.
As the image shows, each chart displays a different type of data for the same asset. In this case, the asset is ETHUSDT.
🔹 Reading the Matrix
Traders must read the data in a row-by-column format, as shown in the following example.
Assume that we are charting BTCUSDT Daily. In the row, we have Exchange A; in the column, we have Exchange B. The data is the average price, and the value is 100. The default length for the average is 20.
It reads like this: The average BTCUSDT price over the last 20 days is $100 higher on Exchange A than on Exchange B.
If the value were -100, it would mean that the average price is $100 lower in Exchange A than in Exchange B.
🔹 Matrix Style
Traders can change the colors and disable the background gradient, which is enabled by default.
They can also fine-tune the location and dashboard size from the settings panel.
🔶 SETTINGS
Sources: Choose between crypto exchanges, forex brokers, or automatic selection based on the asset in the chart.
Average Length: Select the length for the price and volume averages.
Crypto Exchanges: Enable or disable any available exchange.
Forex Brokers: Enable or disable any available broker.
🔹 Dashboard
Data: Select the data to display.
Position: Select the dashboard location.
Size: Select the dashboard size.
🔹 Style
Bullish: Select bullish color.
Bearish: Select bearish color.
Background Gradient: Enable background gradient color.
ICT Venom Trading Model [TradingFinder] SMC NY Session 2025SetupIt is a new interesting indicator. It might be a little bit difficult to implement but i like it a lot
5MA + TrendMagic + Disparity Scalping + Volume Spikes5MA + Trend Magic + Disparity Scalping + Volume Spikes
This indicator is a multi-layer scalping and intraday framework designed to combine trend context, volatility expansion, mean-reversion opportunities, and volume-based turning points into a single chart.
It is especially effective for fast markets such as GOLD (XAUUSD) and lower timeframes.
Key Components
1. 5 Moving Average Structure
EMA 9 / 20 / 50 / 100 / 200
Provides instant trend direction, compression, and dynamic support/resistance
Useful for filtering scalp signals in trend vs range conditions
2. Trend Magic (CCI + ATR Based)
Modified Trend Magic line using CCI direction and ATR trailing logic
Clearly defines bullish / bearish bias
Acts as a trend filter to avoid counter-trend scalps during strong moves
3. Ultra Fast Disparity Scalper
Detects short-term overextension from EMA9 and EMA20
Uses:
Price–EMA disparity
RSI overbought / oversold
RVI momentum prediction
Designed for quick mean-reversion scalps, not trend entries
Includes a simple overheating filter that grays out signals during extreme conditions
4. GOLD Volatility Expansion Detector
Specialized logic for explosive moves using:
ATR expansion
Bollinger Band breakouts
Historical Volatility vs Realized Volatility divergence
Generates signals only when volatility regime shifts, not during noise
Ideal for catching impulsive breakout phases
5. Volume Spike Reversal Signals
Detects abnormal volume spikes relative to volume SMA
Optional filters:
Valid swing high / low only
Hammer / Shooting Star candles
Same candle color confirmation
Session-based filtering
Designed to highlight potential exhaustion and reaction points
Signals are plotted on the previous bar for accuracy
How to Use
Use EMA structure + Trend Magic to define market context
Take Disparity Scalping signals only when price is stretched and momentum weakens
Use Volume Spikes to confirm exhaustion or reaction zones
Use GOLD volatility signals to stay with expansion moves, not fade them
This indicator is not a single-entry system, but a decision-support tool that helps align trend, momentum, volatility, and volume for high-probability intraday trading.5MA + Trend Magic + Disparity Scalping + Volume Spikes
This indicator is a multi-layer scalping and intraday framework designed to combine trend context, volatility expansion, mean-reversion opportunities, and volume-based turning points into a single chart.
It is especially effective for fast markets such as GOLD (XAUUSD) and lower timeframes.
Key Components
1. 5 Moving Average Structure
EMA 9 / 20 / 50 / 100 / 200
Provides instant trend direction, compression, and dynamic support/resistance
Useful for filtering scalp signals in trend vs range conditions
2. Trend Magic (CCI + ATR Based)
Modified Trend Magic line using CCI direction and ATR trailing logic
Clearly defines bullish / bearish bias
Acts as a trend filter to avoid counter-trend scalps during strong moves
3. Ultra Fast Disparity Scalper
Detects short-term overextension from EMA9 and EMA20
Uses:
Price–EMA disparity
RSI overbought / oversold
RVI momentum prediction
Designed for quick mean-reversion scalps, not trend entries
Includes a simple overheating filter that grays out signals during extreme conditions
4. GOLD Volatility Expansion Detector
Specialized logic for explosive moves using:
ATR expansion
Bollinger Band breakouts
Historical Volatility vs Realized Volatility divergence
Generates signals only when volatility regime shifts, not during noise
Ideal for catching impulsive breakout phases
5. Volume Spike Reversal Signals
Detects abnormal volume spikes relative to volume SMA
Optional filters:
Valid swing high / low only
Hammer / Shooting Star candles
Same candle color confirmation
Session-based filtering
Designed to highlight potential exhaustion and reaction points
Signals are plotted on the previous bar for accuracy
How to Use
Use EMA structure + Trend Magic to define market context
Take Disparity Scalping signals only when price is stretched and momentum weakens
Use Volume Spikes to confirm exhaustion or reaction zones
Use GOLD volatility signals to stay with expansion moves, not fade them
This indicator is not a single-entry system, but a decision-support tool that helps align trend, momentum, volatility, and volume for high-probability intraday trading.
AI BUY SELL BOT Indicator(KEWME)This strategy is primarily a Trend Following and Scalping strategy. It relies on the crossover of two Exponential Moving Averages (EMA) to identify short-term momentum shifts. The "AI" or "KEWME" part usually refers to the filtering logic added to standard EMAs to reduce false signals during choppy (sideways) markets.
1. Core Components
Fast EMA (Period 9): This tracks the most recent price data very closely. It reacts quickly to price changes.
Slow EMA (Period 15): This acts as the baseline or immediate support/resistance level. It reacts slower than the 9 EMA.
2. Buy Signal Logic (Long Entry)
A Buy signal is generated when the short-term momentum shifts upwards.
Crossover Condition: The EMA 9 (Fast) must cross ABOVE the EMA 15 (Slow).
Candle Confirmation: The candle causing the crossover should ideally close green (bullish) and above both EMA lines.
AI/Filter Logic:
Slope Check: The "AI" logic checks if the slope of the EMA 15 is pointing up. If the lines are flat (horizontal), the signal is often ignored to avoid sideways markets.
Volume: There should be higher than average volume during the crossover to confirm the strength of the move.
Trader's Action: Enter a Buy position immediately after the candle closes.
3. Sell Signal Logic (Short Entry)
A Sell signal is generated when the short-term momentum shifts downwards.
Crossunder Condition: The EMA 9 (Fast) must cross BELOW the EMA 15 (Slow).
Candle Confirmation: The candle causing the crossover should ideally close red (bearish) and below both EMA lines.
AI/Filter Logic:
Slope Check: The "AI" logic checks if the slope of the EMA 15 is pointing down.
Volume: Selling pressure (volume) should be visible.
Trader's Action: Enter a Sell position immediately after the candle closes.
4. The "AI" filtering (Why it is different from basic EMA)
Standard EMA crossovers often fail in "Choppy Markets" (when price moves up and down within a small range), causing losses. The KEWME/AI version usually adds these extra rules:
Range Filter: If the distance between EMA 9 and EMA 15 is very small (the lines are hugging each other), the AI suppresses the signal. It waits for the lines to "fan out" or separate.
Trend Alignment: It might check a higher timeframe (like 200 EMA). If the price is above the 200 EMA, it might only show Buy signals and hide Sell signals (Trend Filtering).
5. Exit Strategy (Stop Loss & Target)
Stop Loss (SL):
For Buy: Just below the recent Swing Low or below the EMA 15.
For Sell: Just above the recent Swing High or above the EMA 15.
Take Profit (TP): usually taken when the EMAs cross back in the opposite direction, or at a 1:1.5 Risk-Reward ratio.
3 minutes ago
Release Notes
This strategy is primarily a Trend Following and Scalping strategy. It relies on the crossover of two Exponential Moving Averages (EMA) to identify short-term momentum shifts. The "AI" or "KEWME" part usually refers to the filtering logic added to standard EMAs to reduce false signals during choppy (sideways) markets.
1. Core Components
Fast EMA (Period 9): This tracks the most recent price data very closely. It reacts quickly to price changes.
Slow EMA (Period 15): This acts as the baseline or immediate support/resistance level. It reacts slower than the 9 EMA.
2. Buy Signal Logic (Long Entry)
A Buy signal is generated when the short-term momentum shifts upwards.
Crossover Condition: The EMA 9 (Fast) must cross ABOVE the EMA 15 (Slow).
Candle Confirmation: The candle causing the crossover should ideally close green (bullish) and above both EMA lines.
AI/Filter Logic:
Slope Check: The "AI" logic checks if the slope of the EMA 15 is pointing up. If the lines are flat (horizontal), the signal is often ignored to avoid sideways markets.
Volume: There should be higher than average volume during the crossover to confirm the strength of the move.
Trader's Action: Enter a Buy position immediately after the candle closes.
3. Sell Signal Logic (Short Entry)
A Sell signal is generated when the short-term momentum shifts downwards.
Crossunder Condition: The EMA 9 (Fast) must cross BELOW the EMA 15 (Slow).
Candle Confirmation: The candle causing the crossover should ideally close red (bearish) and below both EMA lines.
AI/Filter Logic:
Slope Check: The "AI" logic checks if the slope of the EMA 15 is pointing down.
Volume: Selling pressure (volume) should be visible.
Trader's Action: Enter a Sell position immediately after the candle closes.
4. The "AI" filtering (Why it is different from basic EMA)
Standard EMA crossovers often fail in "Choppy Markets" (when price moves up and down within a small range), causing losses. The KEWME/AI version usually adds these extra rules:
Range Filter: If the distance between EMA 9 and EMA 15 is very small (the lines are hugging each other), the AI suppresses the signal. It waits for the lines to "fan out" or separate.
Trend Alignment: It might check a higher timeframe (like 200 EMA). If the price is above the 200 EMA, it might only show Buy signals and hide Sell signals (Trend Filtering).
5. Exit Strategy (Stop Loss & Target)
Stop Loss (SL):
For Buy: Just below the recent Swing Low or below the EMA 15.
For Sell: Just above the recent Swing High or above the EMA 15.
Take Profit (TP): usually taken when the EMAs cross back in the opposite direction, or at a 1:1.5 Risk-Reward ratio.
Buy / Sell Volume LabelsINDICATOR NAME:
Buy/Sell Volume Labels
DESCRIPTION:
Buy/Sell Volume Labels displays real-time buying and selling volume with dynamic color-coded labels that highlight market dominance. The indicator automatically emphasizes the dominant side (buy or sell) with bright green or red backgrounds, while the non-dominant side fades to gray for instant visual clarity.
Key Features:
- Dynamic Color Coding: Dominant volume side displays in bright green (buy) or red (sell), non-dominant side in gray
- Trend Indicator: Optional "Bullish Trend", "Bearish Trend", or "Neutral" label shows current market bias
- Flexible Display Options: Choose to show percentages only, volume only, or both
- Customizable Position: Place labels anywhere on chart (top, center, bottom; left, center, right)
- Adjustable Size: Six size options from Tiny to Huge, including Auto
- Lookback Period: Calculate volume for current bar or sum across multiple bars
- Neutral Threshold: Define when market is considered neutral vs. trending
How It Works:
- The indicator calculates buying and selling volume based on where price closes within each bar's range. When buying volume dominates, the Buy label turns bright green with black text while the Sell label turns gray. When selling dominates, the Sell label turns bright red with white text while the Buy label turns gray. This makes it immediately obvious which side controls the market.
Perfect For:
- Day traders and scalpers on futures (/MNQ, /ES, /NQ)
- Identifying accumulation vs. distribution phases
- Confirming trend strength and reversals
- Quick visual assessment of market pressure
- All timeframes from tick charts to daily
Settings:
- Header location (9 positions)
- Display mode (Volume, Percent- age, or Both)
- Table size (Tiny to Huge + Auto)
- Lookback period (bars)
- Trend label toggle
- Neutral threshold percentage
Created by NPR21 for the TradingView community.
Liquidity Gravity Engine [Pineify]```markdown
Liquidity Gravity Engine - Market Structure, Displacement, Liquidity Rails
Overview
Liquidity Gravity Engine is a market structure + liquidity visualization indicator designed to help you read flow , impulse , and liquidity magnets on any symbol and timeframe. Instead of relying on a single moving average, it builds a dynamic “flow ribbon” from confirmed swing structure, highlights displacement candles that create imbalance (FVG-style gaps), and projects unmitigated swing levels as liquidity rails that price often revisits.
Key Features
Liquid Flow Ribbon: a structure-based dynamic band that adapts to volatility.
Displacement Highlighting: flags momentum candles that expand beyond ATR and form an imbalance.
Liquidity Rails: extends unmitigated swing highs/lows as potential targets until swept.
Trend Context: displacement is filtered using the ribbon’s smoothed centerline.
How It Works
Market Structure (Swings) : swing highs/lows are detected using pivot logic over your “Structure Lookback”. Pivots become confirmed only after the lookback window completes, which means historical swing points can update until they are confirmed.
Flow Construction : the most recent confirmed swing high and swing low define a top and bottom boundary. Their midpoint is then smoothed with an EMA to create the “liquid” centerline.
Displacement + Imbalance : a candle is considered displacement when its range expands beyond ATR(14) × Displacement Factor and it creates a simple FVG-style gap (current low above the high two bars back for bullish, or current high below the low two bars back for bearish). The bar is then filtered by being on the correct side of the smoothed flow center.
Liquidity Rails : each new confirmed swing high/low can become a dotted rail. Rails extend forward and are removed once price sweeps beyond the level (mitigation), keeping the chart focused on active liquidity.
Trading Ideas and Insights
Use the ribbon as context : bias is stronger when price holds one side of the flow centerline.
Treat displacement markers as impulse confirmation : they often appear at breakout moments or at the start of expansions.
Use liquidity rails as magnets : unmitigated swing highs/lows can act as targets for continuation or mean-reversion moves.
Combine structure + displacement: a sweep into a rail followed by an opposite displacement can hint at a reversal attempt.
How Multiple Components Work Together
This indicator is intentionally built as a single liquidity-driven workflow:
Swings define structure.
Structure defines the flow ribbon (trend/volatility context).
The ribbon filters displacement so you see momentum that aligns with flow.
Liquidity rails provide objective target zones derived from the same swing structure.
The result is a cohesive view of market structure flow, institutional-style displacement, and liquidity targets without stacking multiple separate indicators.
Unique Aspects
Structure-first ribbon: the band is anchored to confirmed swing points, not just a price average.
Imbalance-aware displacement: requires both range expansion and a gap-style condition, reducing generic “big candle” noise.
Self-cleaning liquidity rails: mitigated levels are removed to keep the chart readable.
How to Use
Start with defaults on a clean chart.
Identify the flow: price above the smoothed centerline favors bullish flow; below favors bearish flow.
Watch for displacement diamonds (“D”): they often validate a push away from structure and can mark the start of a leg.
Plan around rails: treat dotted lines as potential objectives and areas where reactions/sweeps can occur.
Customization
Structure Lookback : smaller values = more sensitive swings; larger values = cleaner, slower structure.
Displacement Factor : higher values = fewer, stronger displacement bars; lower values = more signals.
Show Liquidity Rails + Liquidity Lookback : control whether rails are plotted and how active levels are emphasized.
Visuals : adjust bullish/bearish flow colors and liquidity line styling for your chart theme.
Conclusion
Liquidity Gravity Engine helps you map market structure, highlight displacement and imbalance (FVG-style) momentum, and visualize liquidity targets with rails that stay relevant until swept. Use it for trend context, breakout confirmation, and liquidity-based trade planning on forex, crypto, stocks, and indices.
Liquidity Trap Strategy - ATR OptimizedLiquidity Trap Strategy – Optimized Version
1. Overview
The Liquidity Trap Strategy is a high-probability price action trading system designed to exploit “trapped buyers or sellers” around key levels from the previous trading day.
Markets: Works on any market (Forex, Crypto, Futures, Indices, Stocks)
Timeframes: Designed for 15-minute (15m) and 1-hour (1H) charts
Trading Style: “Hunter” style — trades may not happen every day, but setups are high-probability
Trade Frequency: Only first trade per day is taken for simplicity and high quality
2. Key Components
a) Daily Levels
Previous Day High (PDH) and Previous Day Low (PDL) are automatically calculated using the prior day’s bar.
These are drawn as anchored horizontal lines, extending to the current day.
PDH/PDL act as key support/resistance zones — areas where liquidity is often trapped.
b) Trap Concept
The strategy is based on the “liquidity trap” principle:
Buyer Trap (Short Entry):
Price breaks above the previous day high (PDH) → buyers think price will continue higher.
Price reverses immediately below PDH, trapping aggressive buyers above the key level.
This creates selling pressure, giving an opportunity to enter short.
Seller Trap (Long Entry):
Price breaks below the previous day low (PDL) → sellers think price will continue lower.
Price reverses immediately above PDL, trapping aggressive sellers below the key level.
This creates buying pressure, giving an opportunity to enter long.
The key idea: trapped traders cause the market to move in the opposite direction of the breakout, creating high-probability moves.
c) Trade Execution Logic
Buyer Trap / Short Entry:
Condition: high > PDH AND close < PDH AND no trade taken yet today
Entry: Short at the close of the trap candle
Stop Loss: ATR-based above the trap candle high to avoid minor wick stops
Take Profit: 2:1 Risk-to-Reward ratio
Seller Trap / Long Entry:
Condition: low < PDL AND close > PDL AND no trade taken yet today
Entry: Long at the close of the trap candle
Stop Loss: ATR-based below the trap candle low
Take Profit: 2:1 Risk-to-Reward ratio
Only the first trap trade of the day is allowed to avoid overtrading.
d) Risk Management
Stop-Loss (SL):
ATR-based to account for market volatility
Ensures the trade survives minor wick sweeps without being stopped out prematurely
Take-Profit (TP):
Fixed 2:1 R:R relative to SL
Ensures each winning trade outweighs potential losses
Trade Frequency:
Only first trade per day is allowed, making it highly selective and reducing noise
3. Visual Features
PDH/PDL Lines: Anchored to previous day, extend into current day, color-coded:
PDH → Green
PDL → Red
Trade Labels: Placed on the trap candle:
Short → Red label “Short”
Long → Green label “Long”
The visual markers make it easy to identify exactly where the trap occurred and the trade was triggered.
4. How the Strategy Works – Step by Step
Example for Short (Buyer Trap):
Market opens, PDH/PDL from yesterday are drawn.
Price spikes above PDH → some buyers enter expecting breakout continuation.
Price immediately closes back below PDH, trapping buyers.
The strategy enters short at the close of the reversal candle.
SL: placed above the trap candle using ATR to give room
TP: calculated as 2x the risk (distance from entry to SL)
Trade executes — first trade of the day. Any further trap signals today are ignored.
Example for Long (Seller Trap):
Price drops below PDL → some sellers enter.
Price immediately closes back above PDL, trapping sellers.
Strategy enters long at the close of the reversal candle.
SL: below trap candle using ATR
TP: 2:1 R:R
Trade executes — only first trade of the day.
5. Why This Strategy Works
Exploits liquidity zones: Markets often hunt stops above PDH or below PDL.
High-probability reversals: Trapped traders create strong counter moves.
ATR SL: avoids being stopped by minor market noise or wick spikes.
Selective trading: Only first trade per day → reduces overtrading and noise.
Clear visual markers: Makes manual observation and confirmation easy.
6. Key Tips for Traders
Best on high-volume instruments like Forex majors, indices, or crypto pairs with decent liquidity.
Works well on 15m and 1H charts — 15m allows quicker signals, 1H filters noise.
Avoid trading around major news releases — traps can behave differently during high volatility events.
Always backtest and use the ATR SL — never reduce SL too much, otherwise stops will trigger before the real move.
✅ Summary:
The Liquidity Trap Strategy identifies trapped buyers/sellers using previous day highs/lows.
It uses ATR-adapted stops and 2:1 R:R TP.
Only first trade per day is executed, reducing false signals.
Anchored PDH/PDL lines and labels make trade opportunities clear.
This system is low-frequency, high-probability, focusing on trading smart rather than frequently.
jaems_Double BB[Alert]/W-Bottom/Dashboard// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © Kingjmaes
//@version=6
strategy("jaems_Double BB /W-Bottom/Dashboard", shorttitle="jaems_Double BB /W-Bottom/Dashboard", overlay=true, commission_type=strategy.commission.percent, commission_value=0.05, slippage=1, process_orders_on_close=true)
// ==========================================
// 1. 사용자 입력 (Inputs)
// ==========================================
group_date = "📅 백테스트 기간 설정"
startTime = input.time(timestamp("2024-01-01 00:00"), "시작일", group=group_date)
endTime = input.time(timestamp("2099-12-31 23:59"), "종료일", group=group_date)
group_bb = "📊 더블 볼린저 밴드 설정"
bb_len = input.int(20, "길이 (Length)", minval=5, group=group_bb)
bb_mult_inner = input.float(1.0, "내부 밴드 승수 (Inner A)", step=0.1, group=group_bb)
bb_mult_outer = input.float(2.0, "외부 밴드 승수 (Outer B)", step=0.1, group=group_bb)
group_w = "📉 W 바닥 패턴 설정"
pivot_left = input.int(3, "피벗 좌측 봉 수", minval=1, group=group_w)
pivot_right = input.int(1, "피벗 우측 봉 수", minval=1, group=group_w)
group_dash = "🖥️ 대시보드 설정"
show_dash = input.bool(true, "대시보드 표시", group=group_dash)
comp_sym = input.symbol("NASDAQ:NDX", "비교 지수 (GS Trend)", group=group_dash, tooltip="S&P500은 'SP:SPX', 비트코인은 'BINANCE:BTCUSDT' 등을 입력하세요.")
rsi_len = input.int(14, "RSI 길이", group=group_dash)
group_risk = "🛡 리스크 관리"
use_sl_tp = input.bool(true, "손절/익절 사용", group=group_risk)
sl_pct = input.float(2.0, "손절매 (%)", step=0.1, group=group_risk) / 100
tp_pct = input.float(4.0, "익절매 (%)", step=0.1, group=group_risk) / 100
// ==========================================
// 2. 데이터 처리 및 계산 (Calculations)
// ==========================================
// 기간 필터
inDateRange = time >= startTime and time <= endTime
// 더블 볼린저 밴드
basis = ta.sma(close, bb_len)
dev_inner = ta.stdev(close, bb_len) * bb_mult_inner
dev_outer = ta.stdev(close, bb_len) * bb_mult_outer
upper_A = basis + dev_inner
lower_A = basis - dev_inner
upper_B = basis + dev_outer
lower_B = basis - dev_outer
percent_b = (close - lower_B) / (upper_B - lower_B)
// W 바닥형 (W-Bottom) - 리페인팅 방지
pl = ta.pivotlow(low, pivot_left, pivot_right)
var float p1_price = na
var float p1_pb = na
var float p2_price = na
var float p2_pb = na
var bool is_w_setup = false
if not na(pl)
p1_price := p2_price
p1_pb := p2_pb
p2_price := low
p2_pb := percent_b
// 패턴 감지
bool cond_w = (p1_price < lower_B ) and (p2_price > p1_price) and (p2_pb > p1_pb)
is_w_setup := cond_w ? true : false
w_bottom_signal = is_w_setup and close > open and close > lower_A
if w_bottom_signal
is_w_setup := false
// GS 트렌드 (나스닥 상대 강도)
ndx_close = request.security(comp_sym, timeframe.period, close)
rs_ratio = close / ndx_close
rs_sma = ta.sma(rs_ratio, 20)
gs_trend_bull = rs_ratio > rs_sma
// RSI & MACD
rsi_val = ta.rsi(close, rsi_len)
= ta.macd(close, 12, 26, 9)
macd_bull = macd_line > signal_line
// ==========================================
// 3. 전략 로직 (Strategy Logic)
// ==========================================
long_cond = (ta.crossover(close, lower_A) or ta.crossover(close, basis) or w_bottom_signal) and inDateRange and barstate.isconfirmed
short_cond = (ta.crossunder(close, upper_B) or ta.crossunder(close, upper_A) or ta.crossunder(close, basis)) and inDateRange and barstate.isconfirmed
// 진입 실행 및 알람 발송
if long_cond
strategy.entry("Long", strategy.long, comment="Entry Long")
alert("Long Entry Triggered | Price: " + str.tostring(close), alert.freq_once_per_bar_close)
if short_cond
strategy.entry("Short", strategy.short, comment="Entry Short")
alert("Short Entry Triggered | Price: " + str.tostring(close), alert.freq_once_per_bar_close)
// 청산 실행
if use_sl_tp
if strategy.position_size > 0
strategy.exit("Exit Long", "Long", stop=strategy.position_avg_price * (1 - sl_pct), limit=strategy.position_avg_price * (1 + tp_pct), comment_loss="L-SL", comment_profit="L-TP")
if strategy.position_size < 0
strategy.exit("Exit Short", "Short", stop=strategy.position_avg_price * (1 + sl_pct), limit=strategy.position_avg_price * (1 - tp_pct), comment_loss="S-SL", comment_profit="S-TP")
// 별도 알람: W 패턴 감지 시
if w_bottom_signal
alert("W-Bottom Pattern Detected!", alert.freq_once_per_bar_close)
// ==========================================
// 4. 대시보드 시각화 (Dashboard Visualization)
// ==========================================
c_bg_head = color.new(color.black, 20)
c_bg_cell = color.new(color.black, 40)
c_text = color.white
c_bull = color.new(#00E676, 0)
c_bear = color.new(#FF5252, 0)
c_neu = color.new(color.gray, 30)
get_trend_color(is_bull) => is_bull ? c_bull : c_bear
get_pos_text() => strategy.position_size > 0 ? "LONG 🟢" : strategy.position_size < 0 ? "SHORT 🔴" : "FLAT ⚪"
get_pos_color() => strategy.position_size > 0 ? c_bull : strategy.position_size < 0 ? c_bear : c_neu
var table dash = table.new(position.top_right, 2, 7, border_width=1, border_color=color.gray, frame_color=color.gray, frame_width=1)
if show_dash and (barstate.islast or barstate.islastconfirmedhistory)
table.cell(dash, 0, 0, "METRIC", bgcolor=c_bg_head, text_color=c_text, text_size=size.small)
table.cell(dash, 1, 0, "STATUS", bgcolor=c_bg_head, text_color=c_text, text_size=size.small)
table.cell(dash, 0, 1, "GS Trend", bgcolor=c_bg_cell, text_color=c_text, text_halign=text.align_left, text_size=size.small)
table.cell(dash, 1, 1, gs_trend_bull ? "Bullish" : "Bearish", bgcolor=c_bg_cell, text_color=get_trend_color(gs_trend_bull), text_size=size.small)
rsi_col = rsi_val > 70 ? c_bear : rsi_val < 30 ? c_bull : c_neu
table.cell(dash, 0, 2, "RSI (14)", bgcolor=c_bg_cell, text_color=c_text, text_halign=text.align_left, text_size=size.small)
table.cell(dash, 1, 2, str.tostring(rsi_val, "#.##"), bgcolor=c_bg_cell, text_color=rsi_col, text_size=size.small)
table.cell(dash, 0, 3, "MACD", bgcolor=c_bg_cell, text_color=c_text, text_halign=text.align_left, text_size=size.small)
table.cell(dash, 1, 3, macd_bull ? "Bullish" : "Bearish", bgcolor=c_bg_cell, text_color=get_trend_color(macd_bull), text_size=size.small)
w_status = w_bottom_signal ? "DETECTED!" : is_w_setup ? "Setup Ready" : "Waiting"
w_col = w_bottom_signal ? c_bull : is_w_setup ? color.yellow : c_neu
table.cell(dash, 0, 4, "W-Bottoms", bgcolor=c_bg_cell, text_color=c_text, text_halign=text.align_left, text_size=size.small)
table.cell(dash, 1, 4, w_status, bgcolor=c_bg_cell, text_color=w_col, text_size=size.small)
table.cell(dash, 0, 5, "Position", bgcolor=c_bg_cell, text_color=c_text, text_halign=text.align_left, text_size=size.small)
table.cell(dash, 1, 5, get_pos_text(), bgcolor=c_bg_cell, text_color=get_pos_color(), text_size=size.small)
last_sig = long_cond ? "BUY SIGNAL" : short_cond ? "SELL SIGNAL" : "HOLD"
last_col = long_cond ? c_bull : short_cond ? c_bear : c_neu
table.cell(dash, 0, 6, "Signal", bgcolor=c_bg_cell, text_color=c_text, text_halign=text.align_left, text_size=size.small)
table.cell(dash, 1, 6, last_sig, bgcolor=c_bg_cell, text_color=last_col, text_size=size.small)
// ==========================================
// 5. 시각화 (Visualization)
// ==========================================
p_upper_B = plot(upper_B, "Upper B", color=color.new(color.red, 50))
p_upper_A = plot(upper_A, "Upper A", color=color.new(color.red, 0))
p_basis = plot(basis, "Basis", color=color.gray)
p_lower_A = plot(lower_A, "Lower A", color=color.new(color.green, 0))
p_lower_B = plot(lower_B, "Lower B", color=color.new(color.green, 50))
fill(p_upper_B, p_upper_A, color=color.new(color.red, 90))
fill(p_lower_A, p_lower_B, color=color.new(color.green, 90))
plotshape(long_cond, title="Long", style=shape.triangleup, location=location.belowbar, color=color.green, size=size.small)
plotshape(short_cond, title="Short", style=shape.triangledown, location=location.abovebar, color=color.red, size=size.small)
Reversal Chart Patterns DetectorDescription
📋 Overview - What the indicator does
✨ Features - 11 key features
🟢 Bullish Patterns - 5 patterns dengan emoji dan penjelasan
🔴 Bearish Patterns - 5 patterns dengan emoji dan penjelasan
✅ Confirmation System - Volume & RSI confirmation details
🛡️ Risk Management - LONG only untuk Malaysian market
🎨 Visual Elements - Labels, SMAs, lines, dashboard
⚙️ Settings - 4 kategori settings dijelaskan
🔔 Alerts - 4 alert conditions
💡 Best Practices - Trading guidelines
📝 Notes - Important usage tips
Smart Trader, Episode 02, by Ata Sabanci | Battle of Candles ⚠️ CRITICAL: READ BEFORE USING ⚠️
This indicator is 100% VOLUME-BASED and requires Lower Timeframe (LTF) intrabar data for accurate calculations. Please understand the following limitations before using:
📊 DATA ACCURACY LEVELS:
• 1T (Tick) — Most accurate, real volume distribution per tick
• 1S (1 Second) — Reasonably accurate approximation
• 15S (15 Seconds) — Good approximation, longer historical data available
• 1M (1 Minute) — Rough approximation, maximum historical data range
⚠️ BACKTEST & REPLAY LIMITATIONS:
• Replay mode results may differ from live trading due to data availability
• For longer back test periods, use higher LTF settings (15S or 1M)
• Not all symbols/exchanges support tick-level data
• Crypto and Forex typically have better LTF data availability than stocks
💡 A NOTE ON TOOLS:
Successful trading requires proper tools. Higher TradingView plans provide access to more historical intrabar data, which directly impacts the accuracy of volume-based calculations. More precise volume data leads to more reliable signals. Consider this when evaluating your trading infrastructure.
📌 OVERVIEW
Smart Trader Episode 02: Battle of Candles is an advanced educational indicator that combines multiple analysis engines to help traders identify market scenarios and understand market dynamics. This is NOT financial advice or a trading signal service — it's a learning tool designed to help you understand how institutional traders might interpret price action.
The indicator integrates 7 major analysis engines into a unified dashboard, providing real-time insights into volume flow, trend structure, market phases, and potential trade setups.
⚡ KEY FEATURES
🎯 16-Pattern Scenario Engine
Automatically detects and classifies market conditions into 16 distinct scenarios, from strong continuation moves to potential reversals and traps.
💰 Trade Advisor Panel
Aggregates all signals into actionable suggestions with confidence levels, suggested entry/SL/TP levels, and risk/reward calculations.
📊 Volume Engine
Splits volume into buy/sell components using either Geometry (candle shape) or Intrabar (LTF data) methods for precise delta analysis.
📈 CVD (Cumulative Volume Delta)
Tracks the running total of buying vs selling pressure to identify accumulation, distribution, and divergences.
🎯 Stop-Hunt Detection
Identifies potential stop-hunt patterns where price sweeps liquidity levels before reversing.
📐 Pure Structure Trend Engine
Zero-lag trend detection based on swing highs/lows (HH/HL/LH/LL) without any lagging indicators.
⚡ Effort vs Result Analysis
Measures energy spent (volume) versus ground taken (price movement) to detect stalls, breakthroughs, and exhaustion.
🎯 SCENARIO ENGINE — 16 Market Patterns
The Scenario Engine analyzes multiple factors (candle anatomy, volume, forces, CVD, wick analysis) to classify each candle into one of 16 scenarios:
Continuation Scenarios (1-3)
1. ⚔️ STRONG MOVE — Big body candle (>60%) with volume confirming direction. Indicates strong momentum continuation.
2. 🛡️ ABSORPTION — One side attacks but the other absorbs the pressure. Price holds despite volume. Continuation expected in the absorbing side's favor.
3. 📉 PULLBACK — Small move against the trend with low volume. Indicates a healthy retracement before trend continuation.
Reversal Scenarios (4-6, 13-16)
4. 💥 REJECTION — Big wick (>40%) with small body and high volume. Price was rejected
at a level, potential reversal.
5. 🪤 TRAP — Pin direction disagrees with delta. Extreme wick size. Looks bullish/bearish but the opposite may happen.
6. 😫 EXHAUSTION — High energy spent (volume) but low ground taken (price movement). Both sides active but momentum fading.
13. 🔄 CVD BULL DIV — Price falling but CVD rising. Hidden buying detected (accumulation). Potential bullish reversal.
14. 🔄 CVD BEAR DIV — Price rising but CVD falling. Hidden selling detected (distribution). Potential bearish reversal.
15. 🎯 STOP HUNT BULL — Shorts were liquidated below support. Price swept liquidity and reversed. Expect bullish move.
16. 🎯 STOP HUNT BEAR — Longs were liquidated above resistance. Price swept liquidity and reversed. Expect bearish move.
Range/Stalemate Scenarios (7-9)
7. ⚖️ DEADLOCK — Market in balance. Force ratio between 0.4-0.6. Low volume. No side winning.
8. 🔥 BATTLE — High volume fight in a range. Both sides attacking. Wicks on both ends of candle.
9. 🎯 WAITING — Building phase with quiet volume. Market is preparing but no trigger yet. Wait for breakout.
Pre-Breakout Scenarios (10-12)
10. 🚀 BULL SETUP — Buyers accumulating in a building phase. Positive delta building. Bullish pressure growing.
11. 💣 BEAR SETUP — Sellers distributing in a building phase. Negative delta building. Bearish pressure growing.
12. ⚡ BREAKOUT — Price at boundary with strong candle and volume supporting. Imminent breakout expected.
💰 TRADE ADVISOR ENGINE
The Trade Advisor aggregates all signals from the different engines into a single actionable output. It uses a weighted scoring system:
Scoring Weights:
• Scenario Signal: 30%
• Trend Alignment: 20%
• CVD Momentum: 15% + Divergence Bonus
• Pin Forces: 15%
• Liquidity Sweep: 12%
• Stop-Hunt Detection: 10%
• Effort vs Result: 10%
Possible Actions:
• ⏳ WAIT — Edge not strong enough (stay patient)
• 🟢 LONG ENTRY — Buyers have strong advantage + signals align
• 🔴 SHORT ENTRY — Sellers have strong advantage + signals align
• ⚠️ CLOSE LONG/SHORT — Position at risk (reversal/trend flip)
• 🛑 STOP LOSS — Price hit risk threshold
• 💰 TAKE PROFIT — Target threshold reached
📊 EXTENDED INFO PANEL (Detailed Explanations)
The Extended Info panel is hidden by default (toggle: Show Extended Info in settings). It provides detailed metrics that feed into the main engines:
CVD ANALYSIS
What is CVD?
Cumulative Volume Delta (CVD) is the running total of Buy Volume minus Sell Volume. It reveals the underlying buying/selling pressure that may not be visible in price alone.
CVD Value & Slope:
• ↗ Rising: CVD increasing = net buying pressure (bullish)
• ↘ Falling: CVD decreasing = net selling pressure (bearish)
• → Flat: No clear pressure direction
Accumulation vs Distribution:
• Accumulation %: Shows buying pressure strength (0-100). High accumulation with CVD rising = strong bullish bias.
• Distribution %: Shows selling pressure strength (0-100). High distribution with CVD falling = strong bearish bias.
Divergence Alerts:
• ⚠️ BULLISH DIVERGENCE: Price falling but CVD rising. Hidden buying = potential reversal UP.
• ⚠️ BEARISH DIVERGENCE: Price rising but CVD falling. Hidden selling = potential reversal DOWN.
WICK ANALYSIS
Wick Torque:
Torque measures the "rotational force" from wicks. It's calculated from wick length, volume, and body efficiency.
• Positive Torque (Bullish): Bottom wick power dominates. Buyers defended lower prices.
• Negative Torque (Bearish): Top wick power dominates. Sellers defended higher prices.
• ⚡ High Torque (>30): Strong signal, significant wick rejection occurred.
Stop-Hunt Detection:
The engine detects when price has likely swept stop-losses clustered at key levels:
• Stop Hunt Risk %: Likelihood score (0-100). Above 55% = confirmed hunt.
• "Shorts hunted": Price swept below support, liquidating shorts, expect bounce UP.
• "Longs hunted": Price swept above resistance, liquidating longs, expect drop DOWN.
LIQUIDITY SWEEPS
This section appears only when a liquidity sweep is detected. The engine monitors for price sweeping recent highs/lows and then reversing:
• 🎯 LIQUIDITY SWEPT ABOVE: Price broke recent highs but closed back below. Longs trapped, expect DOWN.
• 🎯 LIQUIDITY SWEPT BELOW: Price broke recent lows but closed back above. Shorts trapped, expect UP.
POWER BALANCE
The Power Balance meter shows the real-time strength comparison between buyers and sellers.
Force Ratio:
• 0% = Complete seller dominance
• 50% = Perfect balance
• 100% = Complete buyer dominance
Visual Bar:
• Left side (▓): Bear territory
• Right side (▓): Bull territory
• The bar is smoothed over recent history to reduce noise.
EFFORT vs RESULT
This section measures the efficiency of price movement relative to volume expended.
Energy:
How much volume was spent relative to the average. Energy > 1.0x means above-average volume activity.
Ground:
How much price movement occurred relative to average range. Ground > 1.0x means above-average price movement.
STALL Warning:
A STALL is detected when high energy is spent but low ground is taken (high effort, low result). This often indicates institutional battle, exhaustion, or imminent reversal.
MARKET PHASE
The Phase Engine classifies the current market regime:
RANGE : No clear trend. Price confined to middle of channel. Low ADX. Balanced forces. Trade breakouts with caution.
BUILDING : Compression/preparation phase. Channel tightening or boundary penetration without follow-through. Watch for breakout direction.
TRENDING : Active directional move. Clear slope, good efficiency, price on trending side of channel. Favor pullback entries.
Strength:
0-100% score combining slope, volume validity, and force/efficiency filters.
Bars: How many candles the current phase has persisted.
TRACK RECORD (Validation Panel)
Enable with Show Validation Panel in settings. This section tracks the historical accuracy of scenario predictions:
Accuracy: Percentage of validated predictions that were correct.
Best/Worst Scenario: Shows which scenarios have the highest and lowest accuracy on the current symbol.
Recent Signals: Last 5 predictions with their outcomes. ✓ = correct, ✗ = wrong, ⏳ = pending validation.
⚙️ SETTINGS GUIDE
📊 Volume Analysis
Volume Calculation: Choose Geometry (estimates from candle shape) or Intrabar (precise LTF data).
Intrabar Resolution: LTF for precise mode. Try 1S, 15S, or 1T. Must be lower than chart timeframe.
History Depth: Candles stored in memory (5-50). Higher = more context, slower.
Memory Lookback: Bars for moving averages and Z-scores (10-100).
🏷️ Market Phase
Range Zone Width: How much of channel center is considered "range" (0.1-0.8).
Trend Sensitivity: Minimum slope to detect trending. Lower = more sensitive.
Min Episode Length: Minimum bars before phase can change. Prevents flickering.
🎯 Scenarios
Min Confidence to Show: Only display scenarios above this confidence level (30-90).
Bars to Validate: How many bars to wait before checking if prediction was correct.
Success Move %: Minimum price movement to consider prediction successful.
💰 Trade Advisor
Min Confidence for Entry: Minimum confidence to suggest a trade entry (50-90).
Default Risk %: Stop loss distance as % of price (0.5-5.0).
Min Risk/Reward: Minimum acceptable R:R ratio (1.0-5.0).
🔔 ALERT CONDITIONS
The indicator provides the following alert conditions you can configure:
• 🟢 LONG Entry Signal
• 🔴 SHORT Entry Signal
• ⚠️ Close LONG Signal
• ⚠️ Close SHORT Signal
• 🛑 STOP LOSS Alert
• 💰 Take Profit Alert
• 🚨 High Urgency Signal
⚠️ IMPORTANT DISCLAIMER
EDUCATIONAL TOOL ONLY
This indicator is designed for educational purposes to help users identify different market scenarios and understand how various signals might be interpreted.
The Trade Advisor is NOT a recommendation to buy, sell, or invest.
• Past performance does not guarantee future results
• All trading involves risk of loss
• The creator is not a licensed financial advisor
• Always do your own research (DYOR)
• Consult a qualified financial advisor before making any investment decisions
By using this indicator, you acknowledge that you understand these risks and accept full responsibility for your trading decisions.
KDJ在 TradingView 发表脚本时,**描述(Description)** 非常重要。审核员要求描述必须详细说明脚本的**原理、独特性以及用法**,否则容易被驳回。
由于你的参数 (63, 21, 5) 非常特殊,属于“长周期/季度线”级别的设置,我在撰写描述时重点突出了它**“过滤噪音”**和**“捕捉中长期趋势”**的特点。
以下是为你准备的发布文案,包含**标题**和**正文(中英双语)**。你可以直接复制使用。
---
### 标题 (Title)
**KDJ Trend Filter (63, 21, 5) **
### 描述正文 (Description)
*(复制以下内容到 TradingView 的描述框中)*
** **
**Overview**
This is a custom KDJ indicator designed for **medium-to-long term trend analysis**. Unlike the default parameters (9, 3, 3) which are often too sensitive and prone to false signals in volatile markets, this script uses a specific set of parameters **(63, 21, 5)** to smooth out the noise.
**Why these parameters?**
* **N = 63 (Calculation Period):** Represents approximately one quarter (3 months) of trading days. This aligns the indicator with the quarterly trend rather than weekly fluctuations.
* **M1 = 21 (Smooth K):** A significantly higher smoothing factor for the K-line. This reduces the "jitter" and ensures that a crossover usually indicates a genuine shift in momentum.
* **M2 = 5 (Smooth D):** The smoothing period for the D-line.
**How to use**
1. **Trend Identification:** Due to the long period, this KDJ acts more like a trend-following tool than a typical oscillator.
2. **Crossovers:**
* **Golden Cross (K > D):** Suggests a potential start of a medium-term bullish trend.
* **Dead Cross (K < D):** Suggests a potential start of a medium-term bearish trend.
3. **Filtering:** This setup is excellent for filtering out market noise. It will react slower than standard KDJ but provides more reliable signals for swing traders.
**Settings**
* Calculation Period: 63
* MAC1 (K Smoothing): 21
* MAC2 (D Smoothing): 5
---
** **
**概述**
这是一个专为**中长期趋势分析**设计的 KDJ 指标。标准的 KDJ 参数(9, 3, 3)在震荡行情中过于敏感,容易产生虚假信号。本脚本采用了特定的长周期参数 **(63, 21, 5)**,旨在过滤短期市场噪音,捕捉更稳健的趋势方向。
**参数逻辑**
* **计算周期 (N) = 63:** 大约对应一个季度(3个月)的交易日。这意味着指标关注的是季度级别的价格位置,而非短期波动。
* **MAC1 (M1) = 21:** K值的平滑周期。相比默认值,21的平滑度极高,这使得 K 线非常平稳,只有在趋势发生实质性改变时才会转向。
* **MAC2 (M2) = 5:** D值的平滑周期。
**使用方法**
1. **趋势识别:** 由于周期较长,该指标具有“钝化”的特性,更适合作为趋势跟踪工具,而非短线超买超卖指标。
2. **交叉信号:**
* **金叉 (K上穿D):** 通常意味着中级行情的启动。
* **死叉 (K下穿D):** 通常意味着中级调整的开始。
3. **过滤噪音:** 在横盘震荡期间,该参数设置能有效减少频繁的交叉信号,帮助交易者拿住波段。
**默认设置**
* 计算周期:63
* MAC1:21
* MAC2:5
---
### 💡 发表前的检查清单 (Checklist)
1. **代码确认**:确保你的 Pine Script 代码中 `overlay=false`(因为 KDJ 是副图指标)。
2. **图表展示**:在点击发表前,最好在图表上画几条线或标记,展示一下金叉和死叉的位置,这样更容易通过审核,也能让用户一眼看懂。
3. **分类 (Category)**:建议选择 **"Trend Analysis" (趋势分析)** 和 **"Oscillators" (震荡指标)**。
如果你需要我帮你微调代码以符合上述描述(例如添加颜色填充或特定的信号标记),请告诉我!






















