Institutional Engine SAFEThe Institutional HTF → LTF Execution Engine is a multi-timeframe trading indicator designed to identify high-probability institutional-level entries by analyzing higher timeframe (HTF) trends and projecting them onto lower timeframe (LTF) charts.
This tool integrates trend analysis, liquidity sweeps, fair value gaps, intermarket divergence, and risk management to provide traders with actionable BUY and SELL signals. It is ideal for day traders, scalpers, and swing traders seeking structured entries aligned with larger market flow.
Indicadores y estrategias
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.
Weekly Moving Averages (MAs) to Intraday ChartUpdated EMAs to SMAs
Updated SMA lengths to standard lengths.
MRG Session High/LowMRG Session High/Low - Indicator Description
📊 Overview
This Pine Script indicator automatically displays key levels from Asian and London trading sessions on your TradingView chart. It plots the high and low points of each completed session, allowing you to quickly identify important support and resistance zones for your trades.
🎯 Key Features
Detected Sessions (New York Timezone)
Asian Session: 18:00 - 03:00 (6pm - 3am)
London Session: 03:00 - 09:00 (3am - 9.30am)
Plotted Levels
Session High: The highest point reached during the session
Session Low: The lowest point reached during the session
Start Lines: Vertical dashed lines marking the beginning of each session (optional)
⚙️ Customizable Settings
Display Options
✅ Show/hide Asian Session
✅ Show/hide London Session
✅ Show/hide session start lines
Style Options
🎨 Asian Color: Orange by default
🎨 London Color: Blue by default
🎨 Start lines color: Red by default
📏 Line thickness: Adjustable from 1 to 5
🔍 How It Works
Automatic Detection: The indicator automatically detects when a new session begins
Level Calculation: During each session, it continuously records highs and lows
Line Plotting: At the end of each session, it draws two horizontal lines:
One line at the session high level
One line at the session low level
Extension: Lines extend to the right for easy future identification
📈 Strategic Usage
For Breakout Trading
Trade breakouts of Asian and London session highs/lows
Breakouts from these levels often signal the beginning of significant moves
For Support and Resistance
Use these levels as key support and resistance zones
Prices often come back to test these levels during the New York session
For Multi-Timeframe Analysis
Identify consolidation during Asian/London sessions
Anticipate volatility at New York open
💡 Advantages
✨ Clear and automatic visualization of session levels
⏱️ Time-saving: no need to manually draw levels
🎯 Precise levels based on actual highs/lows of each session
🔄 Automatically updates daily
📱 Compatible with all timeframes (recommended: M5, M15, H1)
🎓 Ideal For
Forex traders (especially XAUUSD, EUR/USD, GBP/USD)
Scalpers and day traders
Session breakout strategies
Trading around New York open
Liquidity zone analysis
📌 Important Note
The indicator uses New York timezone (America/New_York) to ensure session time accuracy, regardless of your local timezone.
[OBJ] Customisable MAsThis Moving Averages indicator was intended for members of the OneBigJourney Discord
Intraday Session Ranges (Asian-London-NY) - JonathanJD86This script is a technical utility designed to automatically track and visualize the high and low price levels of the three major trading sessions (Asian, London, and New York).
How it works: The script uses the time() function with the America/New_York timezone anchor to ensure accuracy regardless of the user's local time. It tracks the maximum and minimum price values during specific user-defined intervals.
Key Methodology:
Vertical Tick Offset: Unlike standard session boxes, this tool allows users to set a vertical gap (in ticks) so that the labels do not overlap the candle wicks, providing a clearer view of the actual price action.
Session Intervals: Defaulted to high-activity windows: Asian (20:00-00:00), London (02:00-05:00), and New York (08:30-16:00).
Dynamic Visibility: The script includes a logical check to automatically hide levels on timeframes higher than 1H, preventing chart clutter during macro analysis.
Multi-Timeframe RSI (Daily + Weekly)View the Daily and Weekly RSI together so you see how the oscillate on any timeframe
hap adxAdaptive ADX & DI Color Bars – Indicator Description
This indicator is an advanced ADX-based momentum and trend strength visualizer.
Instead of displaying raw ADX and DI values only, it dynamically changes bar colors
based on the relationship between ADX, +DI, and −DI, making market conditions
instantly readable.
Core Logic:
- Rising ADX indicates increasing momentum and trend strength
- Falling ADX signals weakening trend or transition to range
- +DI vs −DI defines bullish or bearish directional control
Color States:
Strong Bullish Trend:
- ADX is rising
- +DI is above −DI
- Shows strong bullish momentum and trend continuation
Weak / Early Bullish:
- +DI above −DI
- ADX flat or weakening
- Trend exists but momentum is not fully confirmed
Strong Bearish Trend:
- ADX is rising
- −DI is above +DI
- Strong bearish dominance and continuation
Weak / Early Bearish:
- −DI above +DI
- ADX weakening
- Selling pressure exists but momentum is fading
No-Trade / Range Zone:
- ADX is low or clearly declining
- +DI and −DI are close or frequently crossing
- Market is ranging or indecisive
Why This Indicator Is Useful:
- Removes the need to interpret raw ADX values
- Visually highlights trend strength, weakness, and transitions
- Helps avoid low-quality trades during weak momentum
- Works perfectly as a trend filter for scalping, day trading, and swing trading
Best Use Cases:
- Trend confirmation
- Momentum filtering
- Entry quality validation
- Avoiding false breakouts in low ADX conditions
Weekly macro ratio indicator tracking Silver/Gold with a 30-weekWhat this indicator does
This indicator tracks the Silver/Gold ratio on a weekly basis to determine whether silver is leading gold (risk appetite returning inside metals) or gold is leading silver (more defensive precious-metals posture).
Why Silver/Gold matters
When Silver/Gold rises, silver is outperforming gold — often associated with reflation, growth expectations, or broad risk appetite.
When Silver/Gold falls, gold is outperforming silver — often associated with defense, uncertainty, or tighter financial conditions.
This ratio is not a timing tool — it’s a regime/leadership indicator.
How it works (regime rules)
Using weekly data:
Compute Silver ÷ Gold
Apply a 30-week SMA
Regime definitions:
Bull: Ratio above a rising 30-week SMA (silver leading)
Bear: Ratio below a falling 30-week SMA (gold leading)
Neutral: Transition/range
A clear label marks the current regime.
How to use it in your system - This indicator is designed to be used as part of the broader TQ Weekly Macro Framework, alongside other TQ indicators such as TQ Gold Trend (Weekly Macro), TQ Gold / DXY (Weekly Macro), and TQ Gold / SPY (Weekly Macro).
Each indicator can also be used independently.
Use after confirming:
Pane 1: Gold Trend
Pane 2: Gold/DXY
Pane 3: Gold/SPY
If Silver/Gold is Bull, metals participation is broadening and silver often has more upside torque.
If Silver/Gold is Bear, gold leadership is defensive; silver exposure may underperform.
Neutral often signals rotation or consolidation.
Best timeframe
Designed for weekly macro regime analysis.
Google Trends: Dogecoin (Cryptollica) Google Trends: Dogecoin (Cryptollica)
2013-2026
Keyword: Dogecoin
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")
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)
RSI Divergence Overlay with BGRSI Divergence Overlay with Bullish (Green) and Bearish (Red) notations
ETH - Log Regression BandsETH – Log Regression Bands: Detailed Description (Math + How to Use)
Overview
This indicator plots a long-term “fair value” growth curve for ETH and surrounds it with multiple upper and lower bands. The goal is to estimate where price sits relative to a long-term trend that is best interpreted in **logarithmic (percentage) terms**, not raw dollars.
The bands create clear zones showing when ETH is historically cheap or expensive relative to that long-term curve.
---
Why use logarithms?
Price action is typically more meaningful in **percentage moves** than in absolute dollar moves.
* A move from $100 → $200 is +100%
* A move from $2000 → $2100 is only +5%
By modelling the natural logarithm of price, multiplicative growth becomes additive. That makes long-term growth easier to model and band spacing more consistent across very different price regimes.
So instead of modelling (P), the indicator models:
---
The growth model: Power-law curve
The indicator uses “time since inception” as the x-axis. However, rather than using time directly, it uses the logarithm of time:
where (t) is the number of days (or bars) since the first data point.
It then fits a straight-line model in log-log space:
Substituting back in:
Exponentiating both sides gives the curve in normal price units:
This is a **power-law** trend curve. It naturally produces a smooth, slowly bending long-term curve similar to the “log regression” curves often seen in macro crypto reports.
---
What “expanding regression” means
The model uses all data available from the beginning of the chart up to the current bar. That means:
* Early in the asset’s history the curve can change more because there are fewer points.
* Over time the curve becomes more stable as more history is included.
Important note: this does **not** repaint past bars. It simply means the current curve will update as new data comes in.
---
Measuring “typical deviation” from the curve (residual volatility)
Once the trend curve is fitted in log space, the indicator measures how far price typically wanders away from it.
At any time point:
* Actual log price is (y = \ln(P))
* Predicted log price from the curve is (\hat{y} = a + b\ln(t))
The **residual** is:
The indicator computes the standard deviation of these residuals:
This (\sigma) is a measure of typical “distance from trend” in log terms.
---
Building the bands (the key idea)
The bands are evenly spaced in **log space** using multiples of (\sigma). A band number (k) is created by shifting the log-trend up or down:
Upper band (k):
Lower band (k):
Where:
* (k) is the band number (1, 2, 3, …)
* (s) is a user-chosen spacing factor (band spacing)
* (\sigma) is the residual standard deviation
Converting back to normal price:
Upper band (k):
Lower band (k):
Why bands look like “translated copies”
Because shifting by a constant in log space equals multiplying by a constant in price space:
So the bands are the same underlying curve scaled up or down by fixed multipliers. That produces the smooth “stacked curve” look associated with macro log regression charts.
---
Optional curve shift (manual adjustment)
A manual offset can be applied in log space. This is useful if you want to align the entire structure slightly higher or lower.
Because the shift is applied to (\ln(P)), this is not an additive dollar adjustment. It scales the entire curve by a constant factor:
* Positive shift → multiplies all bands upward
* Negative shift → multiplies all bands downward
---
How to interpret the zones
The base curve represents a long-term “trend center” in log-growth terms.
* Price near the base curve → near long-term trend
* Price in upper bands → expensive relative to long-term trend
* Price in lower bands → cheap relative to long-term trend
Because the bands are built using residual volatility in log space, “cheap/expensive” is measured in a way that remains meaningful across different eras and price levels.
---
Long-term buy zones (Lower 1 and Lower 2)
**Lower 1** and **Lower 2** are intended as **long-term accumulation zones**.
When ETH trades in these zones, it is significantly below the long-term growth curve in log terms, which typically corresponds to:
* deep bear markets,
* high fear / capitulation phases,
* long accumulation periods.
A simple long-term framework many users apply:
* **Accumulate gradually when price enters Lower 1**
* **Accumulate more aggressively when price enters Lower 2**
* Reduce risk / take profits progressively in higher upper bands
These are not guarantees — they are **statistical “distance from trend” zones**, designed to help structure long-term decisions.
---
## Notes / limitations
* This indicator is a **macro trend tool**, not an intraday trading system.
* The curve is derived from historical behavior; it can shift slowly as new data arrives.
* Extremely new market regimes or structural changes can reduce reliability.
* Use alongside risk management and additional confirmation if trading.
---
Crosses Open Daily (shock points OD)It is an indicator that works to alert you when an asset, during the day, crosses or approaches the daily open again.
Candle Countdown TimerCandle Countdown Timer - Real-Time Bar Close Indicator
Stay ahead of the market with this elegant countdown timer that shows exactly how much time remains until the current candle closes. Perfect for scalpers, day traders, and anyone who needs precise timing for their trading decisions.
✨ Key Features:
Universal Timeframe Support - Automatically adapts to any chart timeframe (1m, 5m, 15m, 1h, 4h, 1D, etc.)
Smart Positioning - Choose between two display modes:
Candle High/Low: Displays above bullish candles, below bearish candles
Current Price: Shows at the closing price level for easy reference
Color-Coded Display - Timer automatically matches your chart's candle colors (green for bullish, red for bearish) for instant visual clarity
Fully Customizable - Adjust font size (8-50), opacity (0-100), and placement to match your trading style and chart setup
Clean, Non-Intrusive Design - Minimal interface that provides critical information without cluttering your chart
📊 Perfect For :
Timing precise entries and exits
Scalping strategies requiring exact candle close timing
Multi-timeframe analysis
Managing time-sensitive trade setups
Avoiding last-second candle close surprises
🎯 How to Use :
Simply add the indicator to your chart and customize the settings to your preference. The countdown automatically updates in real-time, showing hours, minutes, and seconds remaining until the current bar closes.
⚙️ Settings:
Font Size: Numeric input (8-50) for precise size control
Text Opacity: Control visibility from 0 (solid) to 100 (invisible)
Placement: Choose "Candle High/Low" or "Current Price" positioning
💡 Pro Tip:
Use the "Current Price" placement mode when trading on multiple timeframes to keep the countdown at a consistent price level, making it easier to track across different chart configurations.
Apex-Wallet - Risk & Reward Calc (Futures/Prop-Firm)Overview The Apex Risk & Reward Calc is a specialized utility tool designed for Futures traders, particularly those working with Prop Firms (Apex, MyFundedFutures, etc.). It eliminates the need for manual calculations by providing an instant, clear visualization of your Risk/Reward parameters directly on the chart.
How it works Trading Futures (ES, NQ, MES, MNQ) requires knowing exactly how many ticks correspond to your financial target. This script automatically detects the active instrument and calculates the precise number of ticks needed for both your Take Profit (TP) and Stop Loss (SL) based on your desired cash outcome and chosen ratio.
Key Features:
Automatic Ticker Recognition: Supports ES, NQ, MES, and MNQ with built-in tick values.
Cash-Based Planning: Enter your desired profit in dollars (e.g., $50), and the script tells you the required tick move.
Dynamic Ratio Selection: Choose from 9 different R:R ratios (from 1/5 to 5/1) to instantly see the impact on your Stop Loss.
Compact Professional UI: A clean, 3-column dashboard at the bottom-right of your screen showing active lots, ticks, and gross cash values.
Trading Application Perfect for intraday scalpers who need to set their ATM strategies in platforms like Tradovate or NinjaTrader. It ensures your execution remains consistent with your risk management plan.
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" (震荡指标)**。
如果你需要我帮你微调代码以符合上述描述(例如添加颜色填充或特定的信号标记),请告诉我!
Reversal Trading ChecklistUse to grade your reversal trades before execution.
Middle Half of hour refers to :15ish-:45ish when reversals are higher probability. After :45-:15 reversals have lower chance of occurring. Not a super highly weighted item but it will help.
Caja TavoStrategy based on "The Box" by Z and Scott
This strategy is based on measuring price volatility one hour before the market opens and half an hour after.
The trade is made in the direction that breaks the upper or lower limits.rior o inferior.
EMA 5/9 Ribbon + VWAP + Trend Filters **Description:**
This indicator combines EMA ribbon analysis with VWAP and volume-based trend filters to help traders identify high-probability entries. It is designed for clarity, providing visual signals, trend bias, and key market metrics directly on the chart.
**Key Features:**
* EMA Ribbon (5 & 9) that changes color based on trend and VWAP cross.
* Buy/Sell signals with optional “strong” signals when trend and volume confirm.
* VWAP crossover arrows (yellow) highlight stronger trends.
* Sideways detection filter to reduce signals during choppy markets.
* Adjustable ribbon and sideways background colors via settings.
* Live trend table showing:
* Current trend bias (Bullish/Bearish/Sideways)
* Bullish vs Bearish volume percentage
* ATR for volatility insight
* Optional background highlight for sideways zones.
**User Inputs:**
* EMA lengths, ATR length, volume lookback
* Sideways detection toggle and sensitivity
* Table placement options (top-right, top-center, bottom-right, bottom-center)
* Customizable colors for bullish, bearish, VWAP, and sideways zones
**Benefits:**
* Quickly visualize trend direction and momentum.
* Avoid signals during sideways or low-volatility periods.
* Makes chart analysis faster and more intuitive.
* Fully customizable to match personal trading style.
**Recommended Use:**
Best used on intraday or swing charts to confirm trend and momentum. Combine with other analysis tools (support/resistance, candlestick patterns, or additional indicators) for higher confidence trades.






















