First FVG per Session - Big boss traders First FVG per Session like Asia first Persented FVG London and Ny
אינדיקטורים ואסטרטגיות
EMA Ribbon [PTrades]Multiple EMAs that you can change color and width in the input window so that you can easily see which EMA length that you are adjusting.
BTCUSD 1D Trend Strategy [Gemini]1Dchart
100% of equity per trade
0.1% commission
1 tick slippage
please convert this indicator to a trading strategy as you see fit
find attached the date of the chart and the indicator on BTCUSD 1D chart so you can make a better decision when to buy and sell
avoid forward looking and repainting at all costs.
Don't add tables to the chart
don't ever use line breaks in function calls:
long only
2018-2069
1D chart
100% of
Volume Participation Stars - by Praveen SigrohaSpot the next big move by identifying level of participation.
blue candle = extreme participation
red candle = higher participation
yellow candle = high participation
grey candle = nothing special
if extreme participation marked by star = be alert for the action
BTC - Satoshis Altcoin Graveyard OVERVIEW
The Satoshi's Altcoin Graveyard (SAG) is a macro-statistical engine designed to solve the problem of Survivorship Bias . It is a well-known phenomenon in the crypto markets that the "Top 10" list is in a constant state of flux. If you look at historical data from CoinMarketCap (CMC) year by year, you will see a revolving door of projects that once seemed "too big to fail" disappearing into obscurity. Meanwhile, Bitcoin has remained the undisputed #1 since inception.
While most traders have a "gut feeling" that Altcoins eventually depreciate against Bitcoin, I believe in measuring it and drawing it on a chart for better visibility. By locking in specific "Cohorts" of market leaders from the past, we can track their inevitable decay through the Satoshi Sieve .
THE 13-COIN STATISTICAL BUCKET
To ensure an objective, non-biased audit, each cohort (we look at 2018, 2020 and 2022) is constructed using a fixed market-cap methodology from the snapshot date (excluding stablecoins):
• The Core: The Top 10 non-stablecoin assets at that time by Marketcap.
• The Risk Alpha: Representative samples from the Top #25, #50, and #100 ranks. (By including lower-ranked "riskier" alts, we capture the full statistical decay of the market, not just the "Blue Chips.")
TECHNICAL ARCHITECTURE
This script is engineered to push the boundaries of the Pine Script engine. TradingView enforces a hard limit of 40 unique data requests . By tracking 3 cohorts of 13 assets plus the Bitcoin base, this indicator utilizes exactly 40/40 requests , providing the maximum possible data density in a single chart window.
THE SPS CONCEPT (Survival Probability Score)
The SPS measures the Breadth of Survival . It answers: "How many coins from this year (the year of the snapshot) are actually outperforming BTC?"
We use a binary logic system to determine if a coin is "Winning" or "Losing" against the only benchmark that matters: Bitcoin.
• The Status Formula: Status = Current_Alt_BTC_Ratio >= Entry_Alt_BTC_Ratio ? 1 : 0 . This means: Every single day, at the Daily Close , the script compares the current Alt/BTC ratio to the fixed ratio from the snapshot date. If the coin is worth more in Bitcoin today than it was back then, it is assigned a "1" (a Win). If it has lost value against Bitcoin, it gets a "0" (a Loss).
• The SPS Line: SPS Line = (Sum of 'Wins' / 13) * 100 This means: We add up all the "Winners" for that specific day and turn it into a percentage. For example, if the Aqua line is at 7.69% on your chart, it confirms that on that day , exactly 1 out of the 13 coins was successfully beating Bitcoin, while the other 12 were underperforming.
THE PERFORMANCE MATRIX
In the top-right corner, we provide a Weighted Portfolio Simulation . This answers the financial question: "If I swapped 1 BTC into an equal-weight basket of these 13 coins on the snapshot day, what is my BTC value today?".
• Value < 1.0 BTC: You lost purchasing power compared to holding Bitcoin.
• Value > 1.0 BTC: You successfully achieved "Alpha" over the benchmark.
HOW TO READ THE CHART
• The Waterfall: Lines generally trend downward as the "Satoshi Sieve" filters out assets that cannot maintain their BTC-relative value.
• Dynamic Winners: We dynamically print the names of the current survivors at the tip of each line. If a cohort shows "None," the graveyard is full.
HOW TO READ THE MATRIX
• The BTC Target: Any portfolio value in the matrix below 1.0 BTC represents a failed altcoin rotation.
• Class of 2018: A portfolio value near 0.15 BTC at the current date, means a 85% loss rate.
• Class of 2020: A portfolio value near 0.77 BTC at the current date, means an approx 20 % loss rate.
• Class of 2022: A portfolio value near 0.31 BTC at the current date, means an approx 70% loss rate.
DIFFERENCE FROM AN ALTCOIN INDEX
Standard Altcoin Indexes (like my ALSI Index ) "rebalance" by removing losers and adding new winners. This is deceptive. The Altcoin Graveyard never rebalances . It forces you to watch the "losers" decay, providing a realistic look at the long-term opportunity cost of "Buy and Hold" for anything other than Bitcoin.
CONCLUSION
The data revealed by the Satoshi Sieve leads to a singular, sobering "Lesson Learned": Picking the right coin to outperform Bitcoin is not just difficult—it is statistically improbable over a long-term horizon.
While the "Risk-Reward" of altcoins is often marketed as having higher upside, the Altcoin Graveyard proves that for the vast majority of assets, the reward does not justify the risk of total portfolio erosion in BTC terms.
• The Mathematical Odds: If you picked a Top 10 coin in 2018, your chance of outperforming BTC today is effectively 0%.
• The Rotation Trap: Most investors "HODL" these assets into the graveyard, hoping for a return to previous ATHs that never comes because the liquidity has already moved on to the next "Class" of winners.
The final conclusion is clear: Diversification into altcoins is often just a slow-motion transfer of wealth back to Bitcoin. If you cannot identify the 1-out-of-13 that survives the Sieve, your best risk-adjusted move has historically been to simply hold the benchmark.
DISCLAIMER
This script is for educational purposes only. It does not constitute financial advice. It is a mathematical study of historical opportunity cost and survivorship bias.
Tags
bitcoin, btc, satoshis graveyard, altseason, dominance, total3, rotation, cycle, index, alsi, Rob Maths, robmaths
ACHT EMA Cross Pullback Strategy with HTF Filter, RSI SignalsADVANCED INDICATOR FOR TRADING USING EMA CROSS PULLBACK STRATEGY
✨ MAIN FEATURES:
• 📈 Signals on pullback after EMA9/EMA20 crossover
• 🔍 Multi-level signal filtering
• 🕒 Multi-timeframe analysis (HTF filter)
• 🛡️ Trend indicator protection
• 📊 Compact information panel
🎯 MAIN SIGNALS:
1️⃣ EMA CROSS + PULLBACK
• EMA9 crosses EMA20 up/down
• Price pullback to EMA9 after crossover
• EMA200 filter (bullish/bearish trend)
2️⃣ RSI SIGNALS IN HTF ZONES
• RSI crossing its SMA
• Works only in HTF zones
• "First signal only" option in zone
🛡️ INDICATOR FILTERS:
• ✅ SuperTrend - main trend identification
• ✅ MACD - additional trend confirmation
• ✅ RSI - overbought/oversold filter
• ✅ HTF filter - higher timeframe analysis
⚙️ CUSTOMIZATION OPTIONS:
• Adjustable periods for all indicators
• Enable/disable each filter
• RSI level settings
• HTF filter timeframe selection
• Signal visualization options
📱 INFORMATION PANEL:
• Compact table with key metrics
• Status of all filters and indicators
• Visual HTF zone indicators
• Emoji for quick perception
🚨 ALERT SYSTEM:
• Alerts on main signals
• Alerts on HTF zone entry
• Alerts on RSI signals
• Customizable trigger conditions
📈 USAGE RECOMMENDATIONS:
1. Wait for EMA9 and EMA20 crossover
2. Look for price pullback to EMA9
3. Check all filter compliance
4. Ensure HTF zone presence
5. Use RSI signals as supplement
⚠️ RISKS AND LIMITATIONS:
• Indicator doesn't guarantee profit
• Always use stop-losses
• Test strategy on demo account
• Adapt parameters to your trading style
Ichimoku Cloud Breakout [Full System + Black Labels]Ichimoku Cloud Breakout & Twist System This indicator implements a disciplined Ichimoku Cloud Breakout strategy designed to filter noise and capture high-probability trends. Unlike simple crossovers, it enforces a "Triple Confluence" setup: price must break the Cloud, the Future Cloud must match the trend direction, and the Chikou Span (Lagging Span) must be free of past price traffic to confirm momentum. To keep your charts clean, it features a State Filter that blocks repetitive alerts (alternating Buy/Sell signals only) and includes a predictive "Twist Ahead" warning system, which visually alerts you to future Cloud twists, often a precursor to reversals or volatility, 26 periods in advance.
Weekly Regime Filter - Trend + Momentum + Structure (MTF)A multi-timeframe weekly regime indicator that classifies market conditions into BULL , BEAR , or CHOP using three components: trend, momentum, and market structure.
Works on any timeframe while always referencing weekly data — no repainting.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IT DOES
Answers one question: What is the weekly regime?
• Trend — EMA hierarchy (Price > EMA Fast > EMA Slow)
• Momentum — DI+ vs DI- with optional ADX filter
• Structure — Break of Structure (BOS) and Change of Character (CHOCH)
BULL = All three bullish
BEAR = All three bearish
CHOP = Mixed signals
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ KEY FEATURES
• Multi-Timeframe (MTF) — View on 1H, 4H, Daily; regime stays consistent
• Auto-Detect Asset Type — Automatically applies optimized settings for Crypto, Stocks, Forex, Gold, Silver, Oil, Commodities
• BOS/CHOCH Labels — Visual market structure breaks on chart
• Live Status Panel — Shows regime, components, and active parameters
• Non-Repainting — Uses confirmed weekly closes only
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 ASSET PRESETS
• Crypto — EMA 50/200, ADX Off, Pivot 2
• Stocks/Indices — EMA 50/200, ADX >20, Pivot 3
• Forex — EMA 30/100, ADX >25, Pivot 2
• Gold — EMA 40/150, ADX >20, Pivot 3
• Silver — EMA 40/150, ADX >22, Pivot 3
• Oil — EMA 30/100, ADX >25, Pivot 2
• Commodities — EMA 40/120, ADX >20, Pivot 3
Select "Custom" to use your own values.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📈 HOW TO USE
For Swing Trading:
• Set chart to Daily
• Use Auto-Detect or select preset
• Long only when BULL, short only when BEAR
• Reduce size or avoid when CHOP
Structure Signals:
• CHOCH ↑ after bear regime = Early reversal signal
• CHOCH ↓ after bull regime = Tighten stops
• BOS in regime direction = Trend continuation
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 ALERTS
• Regime → BULL
• Regime → BEAR
• CHOCH → Bull
• CHOCH → Bear
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚙️ SETTINGS
Preset: Auto-Detect, Crypto, Stocks, Forex, Gold, Silver, Oil, Commodities, Custom
Custom Settings (when Custom selected):
• EMA Fast/Slow lengths
• ADX Length & Threshold
• ADX Filter toggle
• Pivot Left/Right
Display:
• Plot Weekly EMAs
• Show BOS/CHOCH Labels
• Show Regime Background
• Background Opacity
• Show Status Label
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📝 NOTES
• Needs ~200 weeks of history for full calculation
• Weekly signals are slower by design — filters noise
• Not a standalone system — combine with entries and risk management
• When using presets, Custom input fields won't visually update (Pine limitation) — status label shows actual values
MFI/RSI Divergence Lower하단 지표 구성 및 활용법
MFI (Aqua Line): 거래량이 가중된 자금 흐름입니다. 지지선 근처에서 이 선이 저점을 높이면(다이버전스) 강력한 매수 신호입니다.
RSI (Yellow Line): 가격의 상대적 강도입니다. MFI와 함께 움직임을 비교하여 보조적으로 활용합니다.
리페인팅 방지 핵심: offset=-lb_r 설정을 통해, 지표가 확정되는 시점(피벗 완성 시점)에 정확히 신호가 표시되도록 구현했습니다. 이는 과거 백테스트 결과와 실시간 매매 결과가 일치하도록 보장합니다.
실전 응용
지지/저항 필터: 이 지표 단독으로 사용하기보다, 차트 상의 주요 지지선에 가격이 위치했을 때 발생하는 BULL DIV 신호만 골라 매수하면 승률이 극대화됩니다.
손절/익절 최적화: 현재 1.5% 손절, 3% 익절로 설정되어 있습니다. 종목의 변동성(ATR)에 따라 group_risk에서 수치를 조정하며 최적의 수익 곡선을 찾아보십시오.
//@version=6
strategy("Hybrid MFI/RSI Divergence Lower",
overlay=false, // 하단 지표 설정을 위해 false
initial_capital=10000,
default_qty_type=strategy.percent_of_equity,
default_qty_value=10,
commission_type=strategy.commission.percent,
commission_value=0.05,
slippage=1)
// --- ---
group_date = "1. 백테스트 기간"
start_time = input.time(timestamp("2024-01-01 00:00:00"), "시작일", group=group_date)
end_time = input.time(timestamp("2026-12-31 23:59:59"), "종료일", group=group_date)
within_window() => time >= start_time and time <= end_time
group_osc = "2. 오실레이터 설정"
mfi_len = input.int(14, "MFI 기간", group=group_osc)
rsi_len = input.int(14, "RSI 기간", group=group_osc)
ob_level = input.int(80, "과매수 기준", group=group_osc)
os_level = input.int(20, "과매도 기준", group=group_osc)
group_div = "3. 다이버전스 감도"
lb_l = input.int(5, "피벗 왼쪽 범위", group=group_div)
lb_r = input.int(5, "피벗 오른쪽 범위", group=group_div)
group_risk = "4. 리스크 관리"
tp_pct = input.float(3.0, "익절 (%)", step=0.1, group=group_risk) / 100
sl_pct = input.float(1.5, "손절 (%)", step=0.1, group=group_risk) / 100
// --- ---
mfi_val = ta.mfi(close, mfi_len)
rsi_val = ta.rsi(close, rsi_len)
avg_val = (mfi_val + rsi_val) / 2 // MFI와 RSI의 평균값으로 부드러운 흐름 파악
// --- ---
// 저점 피벗 탐지 (MFI 기준)
pl = ta.pivotlow(mfi_val, lb_l, lb_r)
ph = ta.pivothigh(mfi_val, lb_l, lb_r)
// Bullish Divergence (상승 다이버전스)
var float last_pl_mfi = na
var float last_pl_price = na
bool is_bull_div = false
if not na(pl)
last_pl_mfi := mfi_val
last_pl_price := low
// 이전 저점 탐색
float prev_pl_mfi = ta.valuewhen(not na(pl), mfi_val , 1)
float prev_pl_price = ta.valuewhen(not na(pl), low , 1)
if low < prev_pl_price and mfi_val > prev_pl_mfi
is_bull_div := true
// Bearish Divergence (하락 다이버전스)
var float last_ph_mfi = na
var float last_ph_price = na
bool is_bear_div = false
if not na(ph)
last_ph_mfi := mfi_val
last_ph_price := high
float prev_ph_mfi = ta.valuewhen(not na(ph), mfi_val , 1)
float prev_ph_price = ta.valuewhen(not na(ph), high , 1)
if high > prev_ph_price and mfi_val < prev_ph_mfi
is_bear_div := true
// --- ---
if within_window()
if is_bull_div
strategy.entry("Bull", strategy.long, comment="Bull Div")
if is_bear_div
strategy.entry("Bear", strategy.short, comment="Bear Div")
strategy.exit("ExB", "Bull", limit=strategy.position_avg_price * (1 + tp_pct), stop=strategy.position_avg_price * (1 - sl_pct))
strategy.exit("ExS", "Bear", limit=strategy.position_avg_price * (1 - tp_pct), stop=strategy.position_avg_price * (1 + sl_pct))
// --- ---
// 배경 레이아웃
hline(ob_level, "Overbought", color=color.new(color.red, 50), linestyle=hline.style_dashed)
hline(50, "Middle", color=color.new(color.gray, 70))
hline(os_level, "Oversold", color=color.new(color.green, 50), linestyle=hline.style_dashed)
// 메인 지표 플롯
plot(mfi_val, "MFI (Money Flow)", color=color.new(color.aqua, 0), linewidth=2)
plot(rsi_val, "RSI (Momentum)", color=color.new(color.yellow, 50), linewidth=1)
// 다이버전스 발생 시 하단 지표 영역에 선 그리기
plotshape(is_bull_div ? mfi_val : na, "Bull Div Circle", shape.circle, location.absolute, color.green, size=size.tiny, offset=-lb_r)
plotshape(is_bear_div ? mfi_val : na, "Bear Div Circle", shape.circle, location.absolute, color.red, size=size.tiny, offset=-lb_r)
// 과매수/과매도 배경색
fill(hline(ob_level), hline(100), color.new(color.red, 90))
fill(hline(0), hline(os_level), color.new(color.green, 90))
Multi-Data Chart-AnalyticsDynamic Sentiment & Contextual Trend Analysis
Function Description
The Multi-Data Chart-Analytics is a comprehensive market context indicator designed to convert complex technical data into a readable, real-time narrative. Unlike traditional visual-only indicators, this script acts as an on-chart "trading assistant" that evaluates price action, momentum, volatility, and institutional volume simultaneously.
Key Technical Features:
Adaptive Trend Engine: Automatically scales its lookback period based on available historical data (up to 200 periods). This ensures accurate analysis for "young" assets or high timeframes (like BTC on Monthly charts) where standard fixed-length EMAs fail.
Momentum & Feel Tracking: Integrates RSI and DMI (ADX) to determine if the market is overextended (expensive) or undervalued (cheap), and whether the trend has sufficient strength.
Volatility Squeeze Detection: Monitors Bollinger Band width to alert users to "coiling" phases, signaling imminent breakouts.
Institutional Volume Filter: Compares current volume against its 20-period moving average to identify "Smart Money" conviction.
Who is this for?
Discretionary Traders: Who want a quick "second opinion" or sanity check before entering a trade.
Beginners: Who find it difficult to read multiple indicators at once; the terminal translates lines into actionable insights.
Systematic Traders: Who need to maintain awareness of higher-timeframe context without cluttering their main chart window.
How to Use It
Look at the Environment: Start by checking the long-term trend status to ensure you aren't trading against the dominant market force.
Verify Momentum: Check "Market Feel" to avoid buying at exhaustion points (Overbought) or selling at bottoms (Oversold).
Prepare for Breakouts: Keep an eye on the "Volatility" section. If it indicates a "Squeeze," tighten your stops or prepare for a large move.
Confirm with Smart Money: Only trust significant moves if the terminal confirms "Institutional Activity" is present.
Customize: Use the settings menu to adjust the box width, colors, and font size to fit your personal chart layout.
Technical Breakdown (Short Form)
Trend: Adaptive EMA/SMA (max 200).
Momentum: RSI (14) + ADX (14).
Volatility: Bollinger Band Width (20).
Volume: SMA (20) based Volume multiplier.
You might want to use this script in combination with our "Range Indicator Golden Pocket" and "Multi Asset & Multi Timeframe Trend Dashoboard" and the "Risk & Reward Position Planner"
Commodity Channel Index// BUY CONDITION
buySignal = direction < 0 and ta.crossover(cci, -100)
// ENTRY PRICE
entryPrice = close
// STOP LOSS AT SUPERTREND
stopLoss = supertrend
// RISK CALCULATION
risk = entryPrice - stopLoss
// TARGET 1:2
target = entryPrice + (risk * 2)
// ALERT
alertcondition(buySignal, title="BUY", message="Supertrend Green + CCI Cross Above -100 | RR 1:2")
// OPTIONAL PLOTS
plotshape(buySignal, title="BUY Signal", location=location.belowbar, color=color.green, style=shape.labelup, text="BUY")
plot(stopLoss, title="Stop Loss", color=color.red)
plot(target, title="Target 1:2", color=color.green)
200W SMA Dynamic Extension Bands (MTF, Auto Asset)Summary
200W SMA Dynamic Extension Bands is a multi-timeframe TradingView indicator that plots extension bands (multiples) around the 200-week simple moving average. It’s designed to work on any chart timeframe (1m → 1D → 1W) while anchoring the bands to the latest confirmed weekly data, so the long-term reference is consistent and non-repainting across timeframes.
This is a macro “valuation/temperature gauge” style tool: it helps you quickly see when the price is cheap vs. the 200W mean and when it is extended/expensive.
What it plots
The indicator always computes:
200-week SMA (weekly)
Band m2
Band m3
Band m4
Bands are defined as:
Bandk(t)=SMA200W(t)⋅mk
Where the multipliers mk are chosen automatically depending on the asset type (or manually via input).
Key features
Works on any timeframe: weekly SMA is fetched via request.security(..., "W", ...).
Non-repainting weekly anchor: uses barmerge.lookahead_off to avoid peeking into future weekly bars.
Auto asset presets:
Crypto: wider extensions (bigger cycles)
Gold: moderate extensions
Equities: tighter than crypto
FX: very tight extensions
Futures: moderate fallback
Zone coloring (optional):
Cheap zone (below 1×)
Fair zone (1× → m2)
Hot zone (m2 → m3)
Expensive zone (m3 → m4)
Info table (optional): shows selected preset, current multiple, and % extension vs 200W SMA.
Alerts (optional): “entered cheap” and “entered expensive” style triggers.
Presets (default multipliers)
These are intentionally conservative templates (tune to your market):
Crypto: 1.0,1.5,2.0,3.0
Gold: 1.0,1.2,1.5,2.0
Equities: 1.0,1.15,1.30,1.60
FX: 1.0,1.05,1.10,1.20
Futures: 1.0,1.25,1.50,2.00
Auto mode uses syminfo.type plus a simple heuristic for Gold tickers containing XAU / GOLD (because some platforms classify XAUUSD as forex).
How to use (practical)
Macro context / cycle temperature
Price below 1× (200W SMA): historically “cheap zone” for highly cyclical assets (especially BTC).
Price above m3: often “expensive/extended” and higher risk of mean reversion.
Not a standalone trading system
Use with trend confirmation (market structure), volume, and risk management.
Extensions can persist in strong trends—treat bands as regime context, not precise reversal points.
Settings you can change
SMA Length (Weeks): default 200
Band preset: Auto / Crypto / Gold / Equities / FX / Futures
Toggle:
Zone fills
Info table
Alerts
Included alertconditions:
Cross below 1× (entered cheap zone)
Cross above m3 (entered expensive zone)
High level guideline:
Green Zone: BUY (Below 1.0× - Undervalued)
Yellow Zone: HOLD (1.0× - 1.5× - Fair Value)
Orange Zone: CAUTION (1.5× - 2.0× - Getting Hot)
Red Zone: SELL (2.0× - 3.0× - Overvalued)
Notes / limitations
The “cheap/expensive” zones are heuristics. They do not guarantee future returns.
Auto classification is best-effort; if your symbol is unusual, set the preset manually.
For newly listed assets with limited weekly history, the 200W SMA may be na until enough data exists.
SelfContained Momentum Screener (TT+Momentum+Vol+VCP)This script is a self-contained Pine Screener indicator that does not rely on indexes or external symbols. It uses Minervini’s Trend Template to confirm a strong uptrend structure, then evaluates mid-term momentum (6–12 months) and short-term momentum (about 1 month). Optional volume spikes and volatility contraction (simple VCP) can be toggled on or off. The screener filters for stocks that have risen strongly, maintain recent momentum, and show tight consolidation near highs, making it suitable for efficiently identifying high-quality momentum candidates.
このスクリプトは、指数や外部データを使わず自己完結で動作するPineスクリーナー用インジケーターです。ミネルビニのTrend Templateで上昇トレンドの構造を確認し、中長期モメンタム(6〜12か月)と短期モメンタム(約1か月)で勢いを判定します。必要に応じて出来高スパイクと高値圏でのボラティリティ収縮(VCP簡易)をON/OFFでき、条件を満たした銘柄のみを抽出します。強く上昇してきており、直近も勢いがあり、かつ高値圏で締まっている銘柄を効率的に見つけるためのスクリーナーです。
EEQI [Environment Quality Index] PyraTime The Problem: Why Good Strategies Fail
The number one reason traders lose capital is not a lack of strategy—it is forced execution in poor environments.
Most indicators (RSI, MACD, Stochastic) are continuously active, generating signals even when the market is dead, choppy, or chaotic. A breakout strategy that prints money in a trend will destroy your account in a consolidation range. A mean-reversion system that works in chop will fail during a parabolic expansion.
The Solution: PyraTime EEQI The Execution Environment Quality Index (EEQI) is a "Gatekeeper" layer for your trading. It does not tell you what to buy or sell; it tells you if you should be trading at all.
By aggregating Volatility, Price Structure, and Efficiency into a single composite score, the EEQI answers the most critical question in discretionary trading: "Is the market efficient enough to deploy capital right now?"
How It Works: The 3 Core Engines
The EEQI calculates a raw "Environment Score" (from -2 to +4) by analyzing three distinct dimensions of price action.
1. Volatility Engine (Usability)
The Logic: Measures the "Alive-ness" of the market using ATR Percentiles.
The Filter: It detects "Dead Zones" (where price is too flat to hit targets) and "Chaos Zones" (where volatility is too dangerous).
Smart Feature (Parabolic Override): If price moves significantly (>2x ATR) in a single candle, the engine recognizes this as "High Momentum" rather than chaos, unlocking Green signals during breakouts.
2. Structure Engine (Bar Quality)
The Logic: Analyzes the relationship between candle bodies, wicks, and overlap.
The Filter: It penalizes "Barbed Wire" price action—candles with long wicks and high overlap—which indicate indecision and algo-chop.
The Goal: We want to trade during "Clean Flow," where candle bodies are large and overlap is low.
3. Efficiency Engine (Directional Flow)
The Logic: Compares Net Displacement (start-to-finish distance) vs. Total Distance Traveled.
The Filter: Identifies "Whipsaw" conditions where price moves a lot but goes nowhere.
Smart Feature (Velocity Lock): If price travels a massive distance quickly, the efficiency requirement is relaxed to catch explosive moves that might otherwise look "messy."
The "Smart Gatekeepers"
Even if the Core Engines look good, the EEQI applies three final safety checks before granting a PRIME status.
Regime Persistence (Stability Check): The market must hold a high score for a set number of bars (default: 1) before the signal turns Green. This prevents "fake-outs" where a single anomaly candle tricks you into entering a bad trend.
Volume Validation (Liquidity Check): Price movement without participation is a trap. The EEQI checks Relative Volume (RVOL). If volume is below average (e.g., lunch hour, holidays, or late-night sessions), the score is capped at "Fair" or "Low Vol," preventing execution in thin liquidity.
Macro Context (HTF Filter): You cannot trade against the higher timeframe. The EEQI checks the trend and volatility of the Higher Timeframe (default: Weekly). If the macro view is compressed or dead, the local signal is vetoed.
How to Read the HUD
The Dashboard (Bottom Right) gives you an instant read on the market state.
🟢 PRIME (+4): Execution Optimal. The market is trending, efficient, and backed by volume. This is the "Green Light" for your strategy.
🔵 FAIR (+1 to +3): Tradeable. Conditions are decent, but one factor (e.g., volume or structure) is imperfect. Exercise caution.
⚪ NEUTRAL (0): Indecision. The market is transitioning. Stand aside.
🟡 BUILDING: Wait. The market is good, but hasn't proven itself yet (Persistence Check).
🟠 POOR / LOW VOL: Chop. Price is messy or lacking participation.
🔴 AVOID (-2): Danger Zone. The market is either dead flat or violently chaotic. Do not trade.
Settings & Customization
The indicator comes with calibrated presets for different asset classes:
Crypto: Tolerates higher volatility and requires stronger efficiency confirmation.
Forex: Stricter dead-zone filters to handle ranging sessions.
Indices: Balanced settings for standard equity hours.
Disclaimer
This tool is designed for environment analysis only. It does not provide buy or sell signals, entry prices, or stop-losses. It is intended to be used as a filter to improve the performance of your own discretionary strategies.
Trader Checklist Panel EditableTrader Checklist Panel — Editable
Trader Checklist Panel is a lightweight visual checklist designed to help traders execute their edge with discipline and consistency.
This indicator provides a clean, non-intrusive panel where you can manually confirm each condition of your trading plan before entering a trade — without coloring the chart background or interfering with price action.
Minervini TT RS Break (vs TOPIX)his script selects “buyable” stocks using Minervini’s Trend Template and filters for market leaders by relative strength versus TOPIX. A BUY signal appears when all TT conditions are met (price above 50/150/200-day MAs, 50>150>200 alignment, rising 200-day MA, +30% from 52-week low, within 25% of 52-week high) and RS is above the threshold, trending up, and making new highs. While BUY is active, an ENTRY signal is shown only when a pivot breakout (above the prior N-day high) occurs with a volume surge (multiple of average volume) and volatility contraction (lower ATR%). An RS BREAK is flagged when relative strength weakens (below its MA or MA turning down), indicating no-add and exit watch. Use BUY to build a watchlist, act only on ENTRY signals, and stop adding while prioritizing exit decisions when RS BREAK appears.
Gold Inverse Correlation TrackerGold Inverse Correlation Tracker - Professional Multi-Asset Analysis
What This Indicator Does:
This indicator monitors the real-time correlation between Gold and five key financial assets that historically move inversely (opposite) to gold prices. It displays these relationships across three different timeframes simultaneously, giving you both short-term trading signals and long-term trend confirmation.
The indicator tracks:
US Dollar Index (DXY) - Historical correlation: -0.63
Real Interest Rates (TIPS) - Historical correlation: -0.82 (strongest inverse relationship)
10-Year Treasury Yield - Nominal interest rate proxy
S&P 500 (SPX) - Equity market sentiment (variable correlation)
VIX - Volatility index (optional, flight-to-safety indicator)
Why Inverse Correlations Matter for Gold Trading:
Understanding inverse correlations is critical for gold traders because:
Predictive Power - When assets move opposite to gold consistently, you can use their strength/weakness to predict gold's next move
Hedging Opportunities - Strong inverse correlations let you hedge gold positions by trading the inverse asset
Regime Detection - When correlations break down, it signals a market regime change or increased uncertainty
Confirmation Signals - Multiple strong inverse correlations validate your gold trade thesis
Risk Management - Knowing what moves against gold helps you understand your portfolio's true exposure
The Science Behind the Numbers:
Real interest rates have the strongest inverse correlation to gold (approximately -0.82) because:
Gold pays no yield or dividend
When real rates rise, the opportunity cost of holding gold increases
Investors shift to interest-bearing assets when they offer positive real returns
When real rates go negative, gold becomes relatively more attractive
The US Dollar shows strong inverse correlation (approximately -0.63) because:
Gold is priced in US dollars globally
A stronger dollar makes gold more expensive for foreign buyers, reducing demand
A weaker dollar makes gold cheaper internationally, increasing demand
Both compete as reserve assets and stores of value
Why the Indicator is Weighted This Way:
Three Timeframe Approach:
Short-term (20 periods) - Captures recent correlation shifts for day trading and swing trading
Medium-term (50 periods) - The primary signal - balances noise reduction with responsiveness
Long-term (100 periods) - Confirms structural correlation trends for position trading
Correlation Thresholds:
Strong Inverse (<-0.7) - Statistically significant inverse relationship; highest confidence for inverse trades
Moderate Inverse (<-0.3) - Meaningful inverse relationship; still useful but less reliable
Weak Inverse (<0.0) - Slight inverse tendency; correlation may be breaking down
Positive (>0.0) - Assets moving together; inverse relationship has failed
How to Use This Indicator:
For Inverse Trading Strategies:
When DXY shows RED correlation (<-0.7), consider shorting DXY when gold is strong
When Real Rates show RED correlation, rising rates = falling gold (and vice versa)
When multiple assets show strong inverse correlation, confidence is highest
For Regime Detection:
All RED = Classic gold market behavior; correlations intact
Mixed colors = Transitional market; be cautious
All GREEN/GRAY = Correlation breakdown; paradigm shift occurring
For Hedging:
Use assets with strong inverse correlation to hedge gold positions
When correlation weakens, reduce hedge size
When correlation strengthens, increase hedge effectiveness
Alert System:
The indicator includes built-in alerts for:
Individual assets crossing strong inverse threshold
Multiple assets simultaneously showing strong inverse correlation (highest probability setup)
Correlation breakdowns that may signal regime changes
Color Guide:
RED - Strong inverse correlation (<-0.7) - Best inverse trading opportunity
ORANGE - Moderate inverse (<-0.3) - Useful but less reliable
YELLOW - Weak inverse (<0.0) - Correlation weakening
GRAY - Weak positive (0.0 to 0.7) - Assets moving together
GREEN - Strong positive (>0.7) - Inverse relationship broken
Recommended Settings:
Day Trading (1H-4H charts):
Short: 14 periods
Medium: 30 periods
Long: 60 periods
Swing Trading (Daily charts):
Short: 20 periods (default)
Medium: 50 periods (default)
Long: 100 periods (default)
Position Trading (Weekly charts):
Short: 10 periods
Medium: 20 periods
Long: 50 periods
Pro Tips:
Watch for divergences - when gold moves but correlations don't confirm
Correlation breakdowns often precede major trend reversals
The Medium-term (50p) correlation is plotted on the chart as your primary reference
Use the Status column for quick assessment of each asset's relationship
Set alerts for "Multiple Strong Inverse" to catch highest-probability setups
Important Notes:
This indicator is designed for Gold charts only (XAUUSD, GLD, GC1!, etc.)
Correlations are not static - they change over time based on market conditions
A correlation of -0.82 means 82% of gold's price movements can be explained by real interest rates
Always combine with other technical analysis and fundamental factors
Past correlations do not guarantee future relationships
Based on Research:
The correlation coefficients used in this indicator are based on peer-reviewed research:
Erb & Harvey (1997-2012): Real rates to gold correlation of -0.82
World Gold Council (2024): US Dollar to gold correlation of -0.63
Multiple academic studies confirming gold's inverse relationship with opportunity cost assets
Use this indicator to trade smarter, hedge better, and understand the macro forces driving gold prices.
RSI on 21 MA (Custom)RSI on 21 MA (Custom)
RSI on 21 MA (Custom) is a momentum-based indicator that applies the Relative Strength Index (RSI) to a 21-period Simple Moving Average of price instead of raw price data. This approach helps reduce market noise and provides smoother, more reliable momentum signals.
The indicator first calculates a 21-period SMA of the closing price, then computes RSI on this moving average. A short moving average is further applied to the RSI values for additional smoothing, making trend strength and reversals easier to identify.
🔧 Features
RSI calculated on a 21-period Moving Average
Smoothed RSI for clearer momentum structure
Customizable RSI length, MA length, and smoothing period
Adjustable Overbought & Oversold levels
Useful for trend continuation, reversal spotting, and momentum confirmation
📌 How to Use
RSI staying above mid-range indicates bullish momentum
RSI staying below mid-range indicates bearish momentum
Crosses above the oversold level may signal potential bullish reversal
Crosses below the overbought level may signal potential bearish reversal
Best used with price action, support & resistance, or volume indicators
🎯 Ideal for traders who prefer clean momentum signals with reduced noise, especially in trending markets.
ApEn Zones with Delta Confirmation MTF [PhenLabs]📊 ApEn Zones with Delta Confirmation MTF
Version: PineScript™ v6
📌 Description
The ApEn Zones with Delta Confirmation MTF indicator combines Approximate Entropy analysis with cumulative volume delta to identify high-probability support and resistance zones. Approximate Entropy (ApEn) measures the complexity and unpredictability in price data—when ApEn drops significantly, it signals a transition from chaotic to ordered market behavior, often preceding reversals or continuations.
This indicator goes beyond simple ApEn detection by integrating Delta confirmation, which validates zones using volume-based order flow analysis. When a zone forms with Delta confirmation, it indicates institutional participation aligning with the price structure. The multi-timeframe capability allows traders to detect zones forming on higher timeframes while executing on their preferred chart.
🚀 Points of Innovation
First indicator to combine ApEn complexity analysis with cumulative Delta confirmation for zone validation
Pre-built calculation presets eliminate guesswork—optimized parameters for scalping, day trading, and swing trading
Smart zone management automatically removes invalidated zones after two price rejections
Multi-timeframe architecture detects zones on configurable timeframes independent of chart timeframe
Visual style presets provide instant customization from high contrast to subtle overlays
Delta threshold system distinguishes between regular zones and institutionally-confirmed zones
🔧 Core Components
ApEn Calculator: Measures pattern regularity using embedding dimension (m=2) and tolerance factor (r) against price standard deviation to quantify market complexity
Delta Engine: Computes cumulative delta from volume and price movement, comparing against statistical thresholds to identify significant order flow divergence
Zone Generator: Creates visual box zones at signal points with dynamic sizing based on bar range and confirmation status
MTF Request Handler: Fetches ApEn calculations from user-specified timeframe using security() calls for higher timeframe alignment
Zone Manager: Tracks zone interactions, counts rejections, and automatically purges zones that have been tested twice
🔥 Key Features
Calculation Presets: Choose from Aggressive, Conservative, Scalping 1m, Strong Scalping, Swing Trading, or Default—each preset optimizes all parameters for specific trading styles
Visual Style Presets: Select Default, High Contrast, Subtle, Classic, Neutral, or Neutral Reverse to match your chart theme and preference
Delta Confirmation: Zones display with enhanced opacity when cumulative delta confirms institutional participation in the direction of the zone
Automatic Zone Cleanup: Zones self-destruct after two rejections, keeping your chart clean and focused on active levels
Alert System: Four alert conditions for buy zones, sell zones, strong buy signals, and strong sell signals
Maximum Zone Control: Limits display to 5 zones per direction to prevent chart clutter
🎨 Visualization
Buy Zones: Displayed as horizontal boxes at low points when ApEn crosses under threshold—lighter transparency indicates regular zone, darker indicates Delta confirmation
Sell Zones: Displayed as horizontal boxes at high points when ApEn crosses over threshold—visual confirmation follows same transparency logic
Zone Boundaries: Each zone extends 10% of bar range above and below the signal level, providing clear entry and stop areas
Dynamic Extension: All zones automatically extend rightward with each new bar until invalidated
📖 Usage Guidelines
Calculation Preset Selection
Scalping 1m / Strong Scalping: Use for 1-5 minute charts with faster signal generation and tighter thresholds (Length: 15, Zone Length: 5)
Aggressive: Shorter lookback (Length: 10) generates more zones with lower confirmation requirements—higher frequency, more noise
Default: Balanced parameters suitable for 5-15 minute charts (Length: 15, Zone Threshold: 0.5, Delta Length: 4)
Conservative: Extended lookback (Length: 30) with stricter thresholds—fewer but higher probability zones
Swing Trading: Longest parameters (Length: 40, Zone Length: 20) for 1H-4H charts capturing major structural zones
Visual Style Selection
High Contrast: Bright green/red for maximum visibility on any background
Subtle: Muted green/red with transparency for minimal chart distraction
Classic: Traditional lime green and crimson color scheme
Neutral / Neutral Reverse: Grayscale tones for non-directional bias visualization
Timeframe Configuration
Default timeframe is set to 1 minute—adjust based on your execution timeframe
For scalping: Set zone timeframe 1-3x your chart timeframe
For swing trading: Set zone timeframe to 4H or Daily while viewing 1H charts
✅ Best Use Cases
Identifying reversal zones during high-volatility market conditions
Confirming support/resistance levels with volume-based order flow validation
Scalping entries on lower timeframes with higher timeframe zone confluence
Filtering trade setups by requiring Delta confirmation before entry
Setting stop losses beyond zone boundaries after rejection tests
Swing trade positioning at zones detected on 4H/Daily timeframes
⚠️ Limitations
ApEn calculations are computationally intensive—may experience slower loading on very long chart histories
Delta estimation uses (close - open) * volume approximation, not actual order flow data
Zones require sufficient price history—indicator needs max_bars_back of 2000 bars for proper calculation
Low volume instruments may produce unreliable Delta confirmation signals
Zone rejections are counted based on price interaction, not candle close confirmation
Maximum of 5 zones per direction limits visibility during highly active markets
💡 What Makes This Unique
Entropy-Based Detection: Uses mathematical complexity analysis rather than simple price patterns to identify zones
Dual Confirmation System: Combines ApEn signals with Delta divergence for higher probability setups
Adaptive Presets: Six calculation presets and six visual styles create 36 possible configurations without manual parameter adjustment
Self-Managing Zones: Automatic invalidation after two rejections mimics how professional traders track level degradation
🔬 How It Works
Step 1 - ApEn Calculation: The indicator computes Approximate Entropy by measuring how often similar patterns of length m repeat within tolerance r multiplied by standard deviation—lower values indicate more predictable (ordered) price behavior
Step 2 - Signal Generation: Buy signals trigger when higher timeframe ApEn crosses under the average ApEn divided by threshold; sell signals trigger when ApEn crosses over average multiplied by threshold
Step 3 - Delta Confirmation: Cumulative delta is compared against its moving average plus/minus standard deviation times threshold—extreme readings confirm institutional order flow alignment
Step 4 - Zone Creation: Visual boxes are drawn at signal bars with dimensions based on bar range; confirmed zones receive enhanced opacity while unconfirmed zones appear more transparent
Step 5 - Zone Lifecycle: Active zones extend with each bar and track price interactions; after two rejections (price touches zone but reverses), the zone is automatically deleted
💡 Note:
This indicator works best when combined with trend analysis and market structure. Use calculation presets as starting points and adjust the Zone Timeframe setting to align with your trading methodology. Delta confirmation significantly improves zone reliability but requires volume data—instruments with low or unreported volume should rely primarily on ApEn signals alone. Always validate signals with price action context before executing trades.
logger.DEMO◼ Objective
This is an accompanying script to logger library. As the library has lot of logging features, this script demonstrates how all fields and methods interact to display logs on screen.
Please always use the latest version of the library and the key information functions
◼ How to access help and info about this library
Import the latest version of Library, call logger.overview(), and hover mouse over overview() to see help in Editor!
import GETpacman/logger/4 as logger
logger.overview() => Help and general information
logger.sampleCode() => Sample Code Usage
logger.fields() => For listing all fields
logger.methods() => For listing of all methods
SWING ATR BasedWhat does this indicator do?
1. It identifies Market Swings The script monitors price action to detect when a trend changes direction.
It uses ATR (Average True Range) to measure volatility, ensuring it doesn't get tricked by small, insignificant price movements.
To validate a change in direction (from bullish to bearish, or vice versa), it waits for the price to cover a specific distance (defined by the kRange parameter) and requires at least two significant candles.
2. It plots Support and Resistance zones As soon as a new high or low point is confirmed:
In Green (Bull): It draws a support line at the level of the last low.
In Red (Bear): It draws a resistance line at the level of the last high.
Auto-Cleaning: If the price breaks through a support line, the line turns gray and stops. The script only keeps active (unbroken) levels on the screen.
3. It calculates an "SGE Score" (Market State) This is the "brain" of the script. It assigns a rating to the current trend:
+2 (Bullish): The price has broken a resistance.
-2 (Bearish): The price has broken a support.
0 (Neutral): The market is indecisive (for example, after a break that contradicts the previous one).
Key Feature: This score has a "one-candle delay." It waits for the next candle to close before confirming a score change, which helps avoid reacting too quickly to false alerts.
4. It simplifies visual reading To keep your chart clean and readable:
It only highlights the 3 levels closest to the current price (those most likely to be hit soon).
It colors the chart candles directly: Green if the score is +2, Red if the score is -2, and Gray if it is neutral.
5. Dashboard In the top-right corner of your screen, it displays a permanent summary:
The current score (-2, 0, or 2).
The number of active supports and resistances.
Summary: This is a "smart" trend detector. Instead of just looking at whether the price is going up or down, it waits for the price to break important structural levels (confirmed by volatility) to tell you: "Caution, the structure has just shifted from bullish to bearish."
Recommended Settings:
kRange: 1.3 / 1.4
ATR Mult: 0.3 to 0.5
Script created with Claude AI.
Market Info & Performance Boxi just like to see these metrics on the chart. Play it with and make it look better if you want. This way I can have the whole screen just for the chart.






















