[Shoshi] Liquidity SuiteChatGPT řekl:
Přemýšlení po dobu 24s
Liquidity Suite
A powerful, modular toolkit for liquidity-based trading — now with level merging, per-TF/global label offsets, and a master Liquidity toggle.
• Highs/Lows from Custom, 4H, D, W, M, Y
• Previous/Current candle anchoring (wick-anchored)
• Per-TF horizontal offsets + a global right-edge offset for tidy columns
• Optional “Merging levels” with % tolerance (e.g., 0.03%) — clusters nearby levels into one label (Y / pM / …) using the highest-TF color
• Custom line style/width/color and label mode (name/price/both), auto visibility by chart TF
• Buyside/Sellside inducements and FVG/Voids (visible count cap)
• NEW: Global “Show Liquidity” switch — instantly hides and clears all liquidity graphics regardless of other settings
• Asia, London, NY, Custom sessions
• Top/Mid/Bottom + open markers/labels
• Horizontal zones and optional vertical markers (Start/Start+End), extendable lines/background
• Killzones/Day/Week/Month opens
• Optional vertical shading; configurable line + label
• Daily/Weekly/Monthly VWAP with styles Line/Step/Area/Circles/Cross
• Right-edge labels (name/price/both), theme-aware colors
• Dark/White theme
• Separate configs per session/VWAP, per-TF level offsets, and merge tolerance
• Optimized for performance with object limits (lines/labels/boxes)
• Clean, uncluttered visuals for focused execution
Indicatori e strategie
Distribution Quarter IndicatorThis indicator automatically draws vertical lines at the two most important distribution quarter times in the trading day:
6:00 AM NY time (Market preparation phase)
12:00 PM NY time (Midday distribution period)
Key Features:
✅ 15-minute timeframe only - Designed specifically for intraday distribution analysis
✅ Automatic time detection - Uses NY timezone (UTC-4) for accurate timing
✅ Fully customizable lines - Choose between solid, dotted, or dashed styles
✅ Adjustable line width - Set thickness from 1-5 pixels
✅ Custom colors - Individual color settings for each time marker
✅ Optional labels - Toggle time labels on/off
✅ Historical coverage - Lines appear on all past and future data
Perfect For:
Day traders tracking distribution patterns
Scalpers identifying key time-based levels
Anyone analyzing intraday market structure around quarter periods
How to Use:
Apply to any 15-minute chart
Customize line styles and colors in settings
Lines will automatically appear at the specified NY times
Use as reference points for distribution analysis
Note: Indicator only functions on 15-minute timeframes and includes a helpful reminder if used on other timeframes.
Madness StyleFinally a Indicator that has it all in one place for those on free accounts that can only use just one or two indicators. This indicator includes the following features;
• EMA Fast/Slow, Balance Zone Band
• Previous Day Highs/Lows/Mid
• Session Highs/Lows
• ZigZag Based on Pivots
• Equal Highs/Lows
• Swing Highs/Lows Markers
• Liquidity Pools
• Daily Bias + MTF Trend Table
I hope you enjoy!
XINIU Risk-Reward Ratio Helper Pro #1.0.0CN:
专业版描述(中文)
本指标是 TradingView 平台上的一款 实用型风险收益管理工具,专为解决交易者在 风险收益评估、资金管理和进出场决策 上的痛点而设计。
交易者常见痛点:
1. 缺乏盈亏比概念 —— 盲目开单,不清楚单笔交易的最大风险与潜在收益。
2. 人工计算低效 —— 依赖计算器手工测算,费时费力,还容易出错。
3. 错失入场时机 —— 在计算过程中往往错过市场的最佳买入/卖出机会。
核心功能:
1. 自动绘制盈亏比目标价 —— 输入止损价格与目标盈亏比,自动生成止盈价格与参考线。
2. 多组盈亏比配置 —— 支持最多 10 组自定义盈亏比,快速对比不同风险收益结构。
3. 一键切换模式 —— 提供「止损为基准」「止盈为基准」「盈亏比价为基准」三种模式,灵活适配不同策略思路。
4. 资金成本与仓位测算 —— 内置保证金与手续费计算公式,直观显示进场所需资金。
5. 可视化盈亏比结构 —— 止损价、止盈价与 1:1 平衡点清晰绘制,避免盲目下单。
6. 关键分歧点提示 —— 标记多空双方可能快速插针的位置,帮助挂单埋伏。
7. 灵活图表渲染 —— 价格线延展、颜色区分与标签标注,让盈亏比一目了然。
核心好处:
1. 科学化决策 —— 清晰掌握风险与收益,避免情绪化操作。
2. 提升执行效率 —— 摆脱手工计算,用最短时间捕捉入场机会。
3. 优化风险管理 —— 自动测算仓位与资金需求,在关键分歧位“以小博大”。
4. 策略灵活性 —— 多组盈亏比与模式切换,满足不同市场环境下的需求。
风险提示:
● 本指标仅提供 参考数据和计算辅助,不能保证交易盈利。
● 市场存在不可预测波动,投资有风险,入市需谨慎。
● 用户应根据自身风险承受能力、资金状况及交易策略独立判断,不得完全依赖指标信号操作。
● 本指标开发者不对因使用本指标而导致的任何损失承担责任。
借助本指标,交易者能在复杂多变的市场中,以更专业、更高效的方式管理风险与收益,同时明确自身风险责任。
EN:
Professional Version Description (English)
This indicator is a practical Risk-Reward Management Tool on the TradingView platform, specifically designed to address traders' pain points in risk-reward evaluation, capital management, and entry/exit decision-making.
Common trader pain points:
1. Lack of risk-reward awareness – Opening trades blindly without understanding the maximum risk or potential reward of each trade.
2. Inefficient manual calculations – Relying on calculators for manual computation, which is time-consuming, error-prone, and cumbersome.
3. Missed entry opportunities – During calculations, traders often miss the optimal buy/sell opportunities in the market.
Core Features:
1. Automatic risk-reward target plotting – Enter a stop-loss price and desired risk-reward ratio, and the indicator automatically calculates take-profit levels and reference lines.
2. Multiple risk-reward configurations – Supports up to 10 custom risk-reward ratios, allowing quick comparison of different risk-reward structures.
3. One-click mode switching – Provides three flexible modes: “Stop-loss as base”, “Take-profit as base”, and “Risk-reward price as base”, adapting to various trading strategies.
4. Capital and position size calculation – Built-in formulas for margin and fee calculation, clearly displaying the required funds for entry.
5. Visualized risk-reward structure – Clearly plots stop-loss, take-profit, and 1:1 balance levels to prevent blind trading.
6. Key divergence point alerts – Marks potential rapid spikes from both bulls and bears, aiding strategic order placement.
7. Flexible chart rendering – Extendable price lines, color coding, and labeled markers make the risk-reward structure instantly clear.
Key Benefits:
1. Data-driven decision-making – Understand risk and potential reward clearly, avoiding emotional trading.
2. Improved execution efficiency – Eliminate manual calculations and quickly capture optimal entry points.
3. Optimized risk management – Automatically calculate position size and capital needs, enabling “small risk, big reward” at key divergence points.
4. Strategy flexibility – Multiple risk-reward configurations and mode switching meet the demands of varying market conditions.
Risk Disclaimer:
● This indicator provides reference data and calculation assistance only and cannot guarantee trading profits.
● Markets are subject to unpredictable fluctuations; all investments carry risk, and trading should be approached with caution.
● Users should make independent judgments based on their own risk tolerance, capital situation, and trading strategy; the indicator should not be relied upon exclusively.
● The developers of this indicator are not responsible for any losses incurred from its use.
With this tool, traders can manage risk and reward more professionally and efficiently in complex and volatile markets while clearly understanding their own risk responsibilities.
CAGR Indicator (Flexible Holding Period)CAGR Indicator (Flexible Holding Period)
The CAGR Indicator (Flexible Holding Period) is designed to convert any cumulative investment outcome into a standardized, annualized growth rate that can be compared across assets, strategies, and time horizons. Its core metric is the compound annual growth rate, which represents the constant yearly rate that, if compounded smoothly, transforms an initial value into a final value over a specified horizon. By annualizing returns, the indicator removes distortions caused by unequal test lengths and allows direct comparison with benchmarks such as index returns or risk-free rates.
Conceptually, the indicator proceeds in two stages: measuring growth and normalizing time. Growth is summarized by the growth multiple, which is the ratio of ending value to starting value when concrete values are provided, or equivalently 1 plus total percentage return divided by 100 when only a cumulative percent is known. Time is normalized by converting the user’s holding period into a year-equivalent, so that a 45-day, 30-week, 18-month, or multi-year interval can all be mapped onto a common annual scale. The conversions use widely accepted approximations: days divided by 365.25, weeks divided by approximately 52.1429, and months divided by 12, while years are used as entered.
Once growth and time are expressed in compatible units, the indicator applies the standard compounding identity: CAGR = (Growth Multiple)^(1/T) − 1, where T is the year-equivalent holding period. This transformation inverts the compounding process and yields the geometric mean rate of return per year. Because the geometric mean is path-independent, the CAGR summarizes start-to-finish performance without reference to the sequence of gains and losses. The output therefore reflects the constant annual rate that would have produced the observed terminal value from the initial value if returns had been smooth.
The indicator admits two data entry modes to accommodate common reporting practices. In Start/End Values mode, the user supplies initial and final portfolio values; the indicator computes the growth multiple as end divided by start and also displays absolute profit or loss in currency terms to aid practical interpretation. In Total PnL (%) mode, the user supplies a cumulative return percentage; the indicator converts this to a growth multiple and estimates a corresponding ending value for display, while the CAGR computation itself relies only on the multiple and the time horizon.
Validity checks ensure that reported numbers are meaningful. The growth multiple must be strictly positive; cumulative losses at or below minus one hundred percent make the multiple nonpositive and render the CAGR undefined. The holding period must be positive and convertible to a year-equivalent. In Start/End mode, the starting value must exceed zero to avoid division by zero and degenerate ratios. When these conditions are not met, the indicator withholds a numeric result and signals that the quantity is not well defined.
Interpreting the output requires recognizing both its strengths and its limits. The CAGR is a concise, comparable measure of long-run performance that abstracts from timing and volatility. It is particularly useful for benchmarking strategies of different durations, setting policy targets for funds, communicating results to stakeholders, and aligning outcomes with hurdle rates. However, because it is path-independent, the CAGR does not reflect interim drawdowns, variance, or tail risk. It also presumes a lump-sum investment with no intermediate cash flows; when deposits or withdrawals occur, internal rate of return methods such as IRR or XIRR are more appropriate.
Typical applications include comparing backtests with unequal sample lengths, reporting consolidated results from discrete projects on a common annual basis, and translating short-horizon event outcomes (for example, a multi-week campaign) into an annualized figure for decision-making. The indicator’s auxiliary displays, such as total profit or loss in currency and the explicit statement of the original holding period alongside its year-equivalent, improve transparency and auditability of the transformation.
Users should remain mindful of several caveats. Time conversions rely on conventional averages and may differ from calendar-exact counts by small amounts, which is usually immaterial but worth noting for edge cases. Selection bias can inflate reported CAGRs if intervals are cherry-picked; robust practice involves rolling windows, out-of-sample tests, and sensitivity analysis. Most importantly, the CAGR should be paired with risk and stability measures—such as maximum drawdown, Sharpe or Sortino ratios, downside deviation, or ulcer index—to form a complete assessment of a strategy’s quality.
In sum, the indicator operationalizes a simple but powerful idea: separate the measurement of growth from the normalization of time, then apply the compounding identity to express outcomes as a consistent per-year rate. By combining flexible period inputs with a rigorous geometric transformation, it enables fair, intelligible comparisons while encouraging the complementary use of risk diagnostics to avoid over-reliance on a single summary statistic.
北極熊指標 PolarLabs IndicatorPolarLabs Indicator — Introduction
PolarLabs is a research collective dedicated to the advancement of quantitative trading and automation. We focus on all-weather portfolio strategies, diverse grid trading systems, and perpetual futures, aiming to empower traders and investors with streamlined, efficient, and innovative tools for the modern financial markets.
The PolarLabs Indicator is designed to automatically detect and display recent resistance (“Arctic Line”) and support (“Antarctic Line”) levels, along with key metrics such as VWAP, ATR, and TR, all in a clear and accessible dashboard on your chart. This makes it easy for quant enthusiasts and algorithmic traders to analyze the market, identify key zones, and execute strategies with confidence and ease.
Whether you are building automated grid systems, monitoring breakouts, or constructing all-weather portfolios, PolarLabs provides practical solutions to help you trade and analyze more effectively.
Follow us for more quant tools and automated trading strategies!
----------------------------------------------------------------------------------------------
北极熊指标 — 简介
北极熊研究所(PolarLabs)专注于量化交易和自动化策略的研究与创新。我们致力于开发全天候资产配置策略、各种网格交易系统以及永续合约解决方案,帮助更多热爱量化与自动化的交易员轻松高效地进行市场分析与策略执行。
北极熊指标能够自动侦测近期的“北极线”(压力线)与“南极线”(支撑线),并整合VWAP、ATR、TR等关键数据,在图表右上角以面板形式直观展示。无论是箱体震荡、网格套利、趋势跟踪还是全自动量化策略,本指标都能为你的交易分析提供有力支持。
欢迎关注 PolarLabs,获取更多量化与自动化工具和策略!
Session based SMT [domatoth] Session-Based SMT Divergence Indicator
This indicator identifies Smart Money Technique (SMT)
divergences between the current instrument and up to two
comparison symbols across different trading sessions or daily
timeframes.
Key Features:
- Tracks high/low divergences between correlated instruments
- Session-based analysis: London (03:00-12:00), Asia
(20:00-03:00), NY AM (09:30-12:00), NY PM (12:00-16:00) EST
- Automatically switches to daily high/low comparison on
daily/weekly/monthly timeframes
- Support for two comparison symbols simultaneously
- Visual SMT lines with symbol labels
- Option to remove broken/invalidated SMT levels
How It Works:
The indicator compares session (or daily) highs and lows
between your chart and the selected comparison instruments.
When one instrument breaks its high/low but the other
doesn't, it creates an SMT divergence - potentially signaling
a reversal or liquidity grab.
Color Coding:
- Red/Orange: Current breaks high, comparison doesn't
- Blue/Purple: Comparison breaks high, current doesn't
- Green/Lime: Current breaks low, comparison doesn't
- Aqua/Fuchsia: Comparison breaks low, current doesn't
Recommended Use:
- Compare correlated pairs (ES/NQ, EUR/GBP, etc.)
- Look for divergences at key levels
- Use lower timeframes for session-based analysis
- Switch to daily timeframe for daily SMT levels
Settings:
- Choose comparison symbols
- Enable/disable second symbol
- Toggle broken SMT removal
- Customize session times
Perfect for ICT concepts and Smart Money analysis.
МОЙ LSMA(200) x Nadaraya-Watson Envelope (LuxAlgo)The indicator displays the intersection of the LSMA moving average with the boundaries of the Nadaraya Watson channel. on various timeframes
Candle Suite PRO – Engulf + Pin + Regime Filters + Trigger//@version=5
indicator("Candle Suite PRO – Engulf + Pin + Regime Filters + Trigger", overlay=true, max_labels_count=500)
//===================== Inputs =====================
grpPtn = "Patterns"
useEngulf = input.bool(true, "Enable Engulfing", group=grpPtn)
usePin = input.bool(true, "Enable Pin Bar", group=grpPtn)
pinRatio = input.float(2.0, "PinBar shadow >= body ×", group=grpPtn, step=0.1, minval=1)
minBodyP = input.float(0.15, "Min Body% of Range (0~1)", group=grpPtn, step=0.01, minval=0, maxval=1)
coolBars = input.int(3, "Cooldown bars", group=grpPtn, minval=0)
grpReg = "Regime Filters"
useHTF = input.bool(true, "Use HTF EMA50 Filter", group=grpReg)
htfTF = input.timeframe("60", "HTF timeframe", group=grpReg) // 5m/15m → 60 권장
useADX = input.bool(true, "Use ADX Trend Filter", group=grpReg)
adxLen = input.int(14, "ADX Length", group=grpReg, minval=5)
adxMin = input.int(18, "ADX Min Threshold", group=grpReg, minval=5)
useVOL = input.bool(true, "Use Volume Filter (> SMA×k)",group=grpReg)
volMult = input.float(1.10, "k for Volume", group=grpReg, step=0.05)
emaPinchPc = input.float(0.15, "No-Trade if |EMA20-50| < %", group=grpReg, step=0.05)/100.0
maxDistATR = input.float(1.5, "No-Trade if |Close-EMA20| > ATR×", group=grpReg, step=0.1)
useVWAP = input.bool(true, "Require close above/below VWAP", group=grpReg)
//===================== Helpers ====================
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
atr14 = ta.atr(14)
vwap = ta.vwap(hlc3)
rng = high - low
body = math.abs(close - open)
upper = high - math.max(open, close)
lower = math.min(open, close) - low
bull = close > open
bear = close < open
bodyOK = rng > 0 ? (body / rng) >= minBodyP : false
//===================== Patterns ===================
prevOpen = open
prevClose = close
prevBull = prevClose > prevOpen
prevBear = prevClose < prevOpen
bullEngulf_raw = useEngulf and prevBear and bull and (open <= prevClose) and (close >= prevOpen) and bodyOK
bearEngulf_raw = useEngulf and prevBull and bear and (open >= prevClose) and (close <= prevOpen) and bodyOK
bullPin_raw = usePin and (lower >= pinRatio * body) and (upper <= body) and bodyOK // Hammer
bearPin_raw = usePin and (upper >= pinRatio * body) and (lower <= body) and bodyOK // Shooting Star
//================= Regime & No-trade ===============
// HTF trend (EMA50 on higher TF)
emaHTF50 = request.security(syminfo.tickerid, htfTF, ta.ema(close, 50))
htfLong = not useHTF or close > emaHTF50
htfShort = not useHTF or close < emaHTF50
// ADX (manual, version-safe)
len = adxLen
upMove = high - high
downMove = low - low
plusDM = (upMove > downMove and upMove > 0) ? upMove : 0.0
minusDM = (downMove > upMove and downMove > 0) ? downMove : 0.0
trur = ta.rma(ta.tr(true), len)
plusDI = 100 * ta.rma(plusDM, len) / trur
minusDI = 100 * ta.rma(minusDM, len) / trur
dx = 100 * math.abs(plusDI - minusDI) / math.max(plusDI + minusDI, 1e-10)
adxVal = ta.rma(dx, len)
trendOK = not useADX or adxVal >= adxMin
// Volume
volOK = not useVOL or (volume >= ta.sma(volume, 20) * volMult)
// Alignment & slope
slopeUp = ema20 > ema20
slopeDown = ema20 < ema20
alignLong = ema20 > ema50 and slopeUp
alignShort = ema20 < ema50 and slopeDown
// Chop / distance / VWAP
pinch = math.abs(ema20 - ema50) / close < emaPinchPc
tooFar = math.abs(close - ema20) / atr14 > maxDistATR
vwapOKL = not useVWAP or close > vwap
vwapOKS = not useVWAP or close < vwap
//================= Final Setups ====================
longSetup_raw = bullEngulf_raw or bullPin_raw
shortSetup_raw = bearEngulf_raw or bearPin_raw
longSetup = longSetup_raw and alignLong and htfLong and trendOK and volOK and not pinch and not tooFar and vwapOKL
shortSetup = shortSetup_raw and alignShort and htfShort and trendOK and volOK and not pinch and not tooFar and vwapOKS
// Trigger: 다음 봉이 전봉의 고/저 돌파 + 종가 확인
longTrig = longSetup and high > high and close > ema20
shortTrig = shortSetup and low < low and close < ema20
// Cooldown & final signals
var int lastLong = na
var int lastShort = na
canLong = na(lastLong) or (bar_index - lastLong > coolBars)
canShort = na(lastShort) or (bar_index - lastShort > coolBars)
finalLong = longTrig and canLong
finalShort = shortTrig and canShort
if finalLong
lastLong := bar_index
if finalShort
lastShort := bar_index
//==================== Plots ========================
plot(ema20, "EMA 20", color=color.new(color.orange, 0))
plot(ema50, "EMA 50", color=color.new(color.blue, 0))
plot(useVWAP ? vwap : na, "VWAP", color=color.new(color.purple, 0))
plotshape(finalLong, title="LONG ▶", style=shape.labelup, location=location.belowbar, text="Long▶", color=color.new(color.blue, 0), size=size.tiny)
plotshape(finalShort, title="SHORT ▶", style=shape.labeldown, location=location.abovebar, text="Short▶", color=color.new(color.red, 0), size=size.tiny)
// Alerts
alertcondition(finalLong, "LONG ▶", "Long trigger")
alertcondition(finalShort, "SHORT ▶", "Short trigger")
// 시각적 노트레이드 힌트
bgcolor(pinch ? color.new(color.gray, 92) : na)
Futures Trend Divergence SignalMACD Divergence Pro + SMA80 Filter
Description:
The MACD Divergence Pro + SMA80 Filter is an advanced technical analysis tool designed to help traders detect divergences between the MACD and the signal line, with the addition of an SMA 80 filter to enhance signal accuracy. This indicator offers several key features:
MACD & Signal Line: Displays the MACD line and the signal line, with color customization based on line crossover conditions.
Histogram: Shows the MACD Histogram, indicating the difference between the MACD and signal line, with color changes based on momentum.
Divergence Detection: Automatically detects divergences between the MACD and signal line across different timeframes.
SMA 80 Filter: Uses the SMA 80 as an additional filter to refine signals and identify high-probability opportunities.
Divergence Signals: The indicator plots signals when a bullish or bearish divergence occurs.
Alerts & Notifications: Set alerts on crossovers between the MACD and signal line or when a divergence occurs for the first time.
Usage:
Use this indicator to identify key divergence signals that may indicate potential trend reversals.
The SMA 80 Filter helps filter and improve trading signals, increasing the chance of success in the market.
Ideal for trading in various financial markets, including Forex, stocks, and commodities.
Settings:
Customizable settings for MACD, Signal Line, and Histogram.
Options to show or hide divergence signals and graphical shapes like triangles.
Support for various timeframes for analysis.
Note: This indicator relies on advanced technical analysis and should be used as part of a comprehensive trading strategy.
Price Action Trader [BackQuant]Price Action Trader
Introduction
Price Action Trader is an all-in-one, chart-side workflow for reading trend, timing impulses, and mapping high-probability zones the way discretionary traders actually trade. It blends an ensemble trend engine with clean price-action building blocks—Market Structure (BOS/MSB), Fair Value Gaps, Order Blocks, and Volumetric Support/Resistance—so you can form a bias, find confluence, and execute with context.
What is it
A modular “price-action stack” that:
Paints trend bias and impulse shifts on the chart (optional candle coloring).
Auto-annotates internal & swing structure (BOS / MSB).
Finds FVGs on your chosen timeframe and draws them cleanly.
Detects Order Blocks (with optional FVG confirmation).
Builds volumetric S/R levels that adapt to liquidity.
Emits alerts for key events (new levels, touches, breaks, OB creation/touch).
Everything is configurable—keep it minimal (trend + a few zones) or run the full toolkit.
What’s it used for
Bias first, trade second: establish direction/conviction, then execute where structure, gaps, blocks, and volume agree.
Timing: impulse flips and level touches provide actionable triggers.
Risk placement: OB edges, FVG midlines, and volumetric bands give logical stop/target references.
Review & journaling: optional session shading and labeled structures make post-trade notes simple.
Composite Trend Model
A lightweight signal line (default: 30-period) that turns green when the composite regime is bullish and red when bearish. Under the hood, multiple cues (adaptive momentum, de-noised oscillation, volatility-aware filters) are blended into a single directional score; when thresholds flip, the line recolors and optional Long/Short dots appear.
How to use
Treat the line as your bias rail : favor longs while green, shorts while red.
Flat/rapid flips = stand down or reduce size.
Prefer clean charts? Keep only the line and (optionally) trend-painted candles.
Inputs to know
Show Trend Signal Line / Width.
Paint Candles by Trend.
Long/Bearish color controls.
Impulse Model
Highlights short-term pressure shifts with optional impulse candle coloring and ▲/▼ markers. Great for entries in the prevailing trend and for early warnings when impulses fire against bias.
How to use
Up-bias: look for the next impulse-up near structure/FVG/OB or volumetric support.
Down-bias: mirror the logic.
Frequent counter-impulses → expect chop or regime change.
Inputs to know
Show Impulse Signals.
Paint Impulse Candles.
Market Structure
Automatic Internal (tight lookback) and Swing (wider lookback) structure with BOS and MSB (CHoCH) labels. You decide what to show—All, BOS only, MSB only—independently for internal vs swing.
How to use
Use Swing labels for the primary map; Internal for entry refinement.
After a bullish MSB , seek the first HL back into support/FVG/OB.
After a bearish BOS , favor LH fades into resistance/FVG/OB.
Inputs to know
Swing Lookback / Internal Lookback.
Swing/Internal Structure: All | BOS | MSB | None .
Separate bull/bear color controls for both layers.
Fair Value Gaps
Detects bullish/bearish FVGs on the current or higher TF, draws boxes, and can extend them forward. Midlines provide quick visual targeting.
How to use
In-trend fills: in an up-bias, tags of bullish FVGs often offer high-quality continuation entries, especially with structure/OB confluence.
Failed fills: rejections at the midline can signal emerging strength/weakness.
Inputs to know
Show FVG / Show Last N / Extend.
Timeframe (blank = chart TF; set higher TF for macro FVGs).
Bull/Bear colors (tune opacity to taste).
Volumetric Support and Resistance
Builds adaptive S/R from price interaction + relative volume over a rolling lookback. Levels store touch counts; you can show volume stats on labels or inside boxes. Transparency and border thickness can scale with volume so stronger levels are visually louder. Broken levels can auto-remove.
How to use
Use as confluence with structure, OBs, and FVGs. A long at volumetric support + Bull OB + FVG midline is qualitatively different from a naked level.
If a level breaks on strong volume, stop fading—flip expectations or wait for a clean retest.
Inputs to know
Detection Sensitivity / Volume Multiplier.
Analysis Period / Max Levels / Min Distance (%).
Remove Broken / Extend Right / Show Volume Info / Text Inside.
Support/Resistance colors (+ high-vol variants).
Alerts
New Support/Resistance Level Created.
Level Touch.
Level Break.
Order Blocks
Detects bullish/bearish OBs using configurable fractals (3- or 5-bar) with a break confirmation (by Close or High/Low). Optional FVG proximity filter, right-extension, and auto-delete when filled.
How to use
Bullish bias: stalk pullbacks into fresh Bull OBs aligned with a bullish FVG or volumetric support.
If price fills an opposing OB and fails to continue, reassess bias—context may be shifting.
Inputs to know
Fractal Type & Break Method (Close / HL).
Filter with FVG + Max FVG Distance.
Extend Blocks / Delete When Filled / Show Labels.
Alerts
New Order Block Created.
Order Block Touch.
Final Notes
Suggested workflow
Start with Composite Trend (bias).
Mark Swing structure in that direction.
Wait for an Impulse in-direction near an OB / FVG / Volumetric level.
Risk = nearest opposite level or OB edge; targets = FVG midlines / next S/R.
Timeframes & assets
Defaults suit liquid intraday and 1–4H swing.
Slower markets → lengthen lookbacks, lower sensitivity.
Very noisy crypto → keep trend visible, trim drawings (e.g., MSB only, last 3–5 FVGs, 8–12 volume levels).
Keep it readable
Turn off modules you don’t need today—fewer, higher-quality signals beat clutter.
About this release
Internal scoring, smoothing, and detection logic are proprietary. Behavior is controlled via inputs described above.
Trade with a plan, test your settings, and let confluence do the heavy lifting.
KDJ – Long Only v3.0 (TradingView Strategy)
Overview|概覽
EN
A research strategy that automates long-only entries using a KDJ-centric core with multi-layer confirmations and volatility-aware exits. Default preset targets ETH 5m; other symbols/timeframes can be tuned.
中文
研究用策略,透過 KDJ 核心與多層確認來自動化只做多進場,並以隨波動調整的出場邏輯運作。預設為 ETH 5 分鐘;其他商品/週期可自行調參。
Backtest (hypothetical) example: ETHUSDT.P, 5m, 2024-09-18→2025-09-18, fee 0.05%, slippage 1 tick.(僅示意,屬假設性回測)
What it does|做什麼
EN
Signals are organized into channels:
A KDJ trend core
B OB/FVG touch pullback
CP Double-bottom (buffered neckline)
SR Support/Resistance bounce with rejection/zone checks
D EMA pullback (long EMA length)
E VWAP reclaim (lower-band pierce & recapture)
F Prior-low sweep & reclaim
中文
訊號分成多通道:
A KDJ 順勢核心
B OB/FVG 回踩觸價
CP 雙底(頸線含緩衝)
SR 支撐/阻力觸價不破(含拒絕與區域檢查)
D EMA 回踩(長週期 EMA)
E VWAP 收復(下緣穿越後收回)
F 前低掃回
High-level logic|高層級原理
HTF/Mid-TF context:內建 5/15/1H 或 15/60/4H 組合;以簡化趨勢線/區域提供觸價參考
Trend & structure:本階 EMA(8/21/200) 結構;Structure Breakout(近期高低點 ±ATR 緩衝)/EMA8/21 回踩
Momentum/volume:MACD、KDJ 金叉與低區偵測、量能驗證
Regime:ADX 閘(趨勢/盤整門檻)、EMA 帶寬過濾震盪、Peak Guard 避免過度延伸
No look-ahead:入場不使用前視;樞紐/趨勢線僅作情境參考
Inputs & Features|參數與功能
Market Preset:Generic / ETH(ETH 預設收緊若干門檻,開箱即用)
Entry Mode:KDJ_Core / CandleOnly / KDJ_and_Candle
Session Filter:最多三段交易時窗
Lite Filters:過度延伸、實體大小、DI 差距
S/R 模組:拒絕條件、KDJ 覆核、區域要求、即時 R:R 檢核
OrderBlock/FVG:近棒位移掃描
Chart Pattern:雙底 W,ATR 容差與頸線緩衝
Plotting:EMA200、通道字母標記、可選 TP/SL 標籤
Automation via Alerts(generic)|快訊自動化(通用)
EN
On entries/exits the strategy emits JSON through alert_message. Create alerts with “Any alert() function call” and route them to your own webhook/bridge. Symbol mapping, sizing mode, and user info are configurable in inputs.
中文
進出場時透過 alert_message 輸出 JSON。建立快訊時選 “Any alert() function call”,再由你的 webhook/橋接服務轉單;輸入面板可設定商品代碼、下單型式與使用者資訊。
提示:調整參數後,請重建快訊,並將訊息欄設為 {{strategy.order.alert_message}}。
Position sizing|部位大小
base / quote / percent_local / percent(percent_local 以本地 USD 估值計算)
可選「按數量模式」以便與本地部位同步(position_size sync)
Risk & Exits|風險與出場
SL:ATR / Swing / ATR_or_Swing;TP Cap 以 ATR 或 % 限制上限
Breakeven & Trailing:達指定 R:R 啟動保本;之後以 最高價回看 − ATR×k 追蹤
Same-bar exits:可允許/禁止同根觸發 TP/SL
Pyramiding:pyramiding=2,最多兩筆多單可同時存在(淨倉交易所請留意整體倉位的平倉行為)
Suggested workflow|建議流程
回測目標市場/週期 → 設定時段/濾網與門檻 → 微調 TP/SL 與部位大小 → 建立快訊({{strategy.order.alert_message}})→ 監看執行日誌
Notes & Disclaimer|注意與免責
回測結果仰賴時間框解析與成交規則;棒內路徑與實盤可能不同
僅供研究/教育;非投資建議
本頁無廣告、無外部連結或聯絡資訊
Release Notes|版本說明
2025-09-19
新增:One-shot Force Flat(一鍵清倉僅一次)— 於下一根收盤執行,完成後自動失效
Webhook:進/出場皆輸出 JSON;提醒更新參數後重建快訊
行為澄清:pyramiding=2,允許同圖表最多兩筆多單並存;同棒出場可設定
2025-09-18
Netted venue 說明:在淨倉模式下,出場會影響同商品的整體淨多倉;請留意手動單與策略單的互動
2025-08-28
修正小數顯示;預設優化(ETH/5m);保留隨波動的 RR/SL 邏輯
💎 WarrIA Pro v1.0 - Multidimensional Crypto Trading System💎 WarrIA Pro v1.0 - Multidimensional Crypto Trading System
The Unfair Advantage You've Been Looking For.
Version 1.0 | © 2025 Warri Finance - All Rights Reserved
Pro Volume Lite📘 Pro Volume Lite
What it is:
Pro Volume Lite is a tool that helps you quickly figure out:
How much quantity to buy or sell,
Where your risk stands,
How volume and trend strength are behaving,
Plus some quick company fundamentals.
🔹 1. Position Size & Risk Management
✅ Settings
Trade Direction:
Long → Bullish trades only.
Short → Bearish trades only.
Both → Auto-switch depending on whether today’s price change is up or down.
Capital (CP):
Enter your account size (example: 10,00,000).
This is the base for position size calculations.
Risk Mode (R):
Currency → Risk a fixed amount per trade (e.g., $5000).
Percentage → Risk a fixed % of your capital (e.g., 0.5%).
⚡ The script automatically calculates how much money you’re risking per trade based on your choice.
✅ Stop & Quantity Calculations
D (Stop Low %) → How far today’s close is from the day’s low.
DH (Stop High %) → How far close is from the mid-body of today’s candle.
Q (Quantity) → How many shares you can buy/sell if stop = day’s low.
QH (Quantity High) → Quantity if stop = mid-body.
SSL #1, #2, #3 → Standard stop-loss setups (e.g., 0.75%, 1%, 1.25%).
💡 If you enable Lot Size, all quantities are converted into nearest lot multiples (good for futures).
🔹 2. Volume Bar Coloring
Green = Price closed higher than it opened.
Red = Price closed lower than it opened.
Plots on the volume chart so you can see bullish/bearish volume.
🔹 3. Trend Intensity (TI)
Uses two moving averages (fast & slow).
Green dot on top → Trend strongly bullish.
Red dot on top → Trend strongly bearish.
Helps you spot momentum shifts.
🔹 4. Episodic Pivot (EP)
Marks big volume spikes with orange triangles under candles.
Default threshold = 9 million volume.
Shows when institutions may be entering/exiting.
🔹 5. Data Metrics Table
Quick fundamentals shown in a table:
MC (Market Cap): Company’s total market value.
Industry × Sector: Classification for the stock.
FF (Free Float): Value of shares available for public trading.
💡 In INR stocks → values are shown in Crores.
💡 In USD stocks → values shown in raw currency format.
⚡ Bottom Line
Pro Volume Lite helps you:
Size your trades correctly,
Control your risk,
Spot strong volume moves,
Check quick fundamentals,
All inside your TradingView chart.
역추세매매의 끝판왕(최종버전)✔ 지난 5년간의 연구와 테스트 끝에 완성한 최종 지표입니다.
✔ 지금은 1년간 자유롭게 이용하실 수 있습니다.
그리고 특별한 기회!
👉 이 지표와 잘 어울리는 다른 보조지표를 추천하시거나,
개선 아이디어를 제안해 주셔서 업그레이드에 기여해 주신 분들께는
평생 무료 이용권을 드립니다.
여러분과 함께 더 나은 지표로 만들어가고 싶습니다.
✔ This is the final indicator, completed after five years of research and testing.
✔ You can use it freely for one year.
And here's a special opportunity!
👉 Those who contribute to the upgrade by recommending other auxiliary indicators that work well with this indicator or suggesting improvement ideas will receive a lifetime free pass.
We want to work with you to make this indicator even better.
Precision AI Trading ProPrecision AI Trading Pro — TradingView Indicator
EN / 中文雙語說明(No promo, high-level logic, originality stated)
What it does |用途
EN
Trend-aligned entries on 5m/15m (and higher) using multi-layer confirmations. It emphasizes confirmation over prediction, then derives adaptive TP/SL from volatility and recent structure.
中文
在 5/15 分鐘(與更高時框)進行趨勢對齊進場,重確認、不猜轉折;並依波動與近期結構自適應計算 TP/SL。
Why it’s original & useful |原創性與價值
EN
This script implements a custom 11-filter confluence engine and a volatility-aware exit model. Filters are designed to complement each other: HTF context narrows bias, LTF structure checks timing, momentum/volume validate strength, and regime gates avoid chop. Exits use ATR- and swing-based distances with caps to keep results realistic.
中文
本腳本自研 11 重共振濾網 與 隨波動調整的出場模型:HTF 提供方向偏好,LTF 結構掌握時點;動能/量能驗證有效性;型態/趨勢強度門檻過濾震盪;出場以 ATR 與擺動區間計算距離並設上限,使績效更貼近實際。
How it works (high-level) |高層級運作
EN
HTF alignment: EMA(3/8/21) + RSI/MACD on a higher timeframe (confirmed bars only) sets directional bias.
LTF structure: Requires local EMA(3/8/21) alignment, Structure Breakout (recent swing ± ATR buffer), and optional Pullback to EMA8/21.
Regime checks: ADX gate and EMA band width filter out low-trend conditions; Volume confirms pressure.
Risk layer: Peak Guard (overheat/new-high/surge) blocks extended entries.
Trendline/EMA200: Optionally require EMA200 or TL breakout with ATR tolerance.
Exits: SL = max(ATR×k, swing buffer, % floor); TP = min(R×SL, ATR/% caps).
No look-ahead: HTF uses confirmed bars; pivots only annotate context, not used as entry triggers.
中文
HTF 共振:高階時框 EMA(3/8/21)+RSI/MACD(僅採用確認棒)決定方向偏好。
LTF 結構:要求本階 EMA(3/8/21) 一致、結構突破(近期高低點 ± ATR 緩衝),並可選 回踩 EMA8/21。
市況門檻:ADX 閘 與 EMA 帶寬 排除低趨勢環境;量能 驗證推進力。
風險層:Peak Guard(過熱/創高/急漲)避免追價。
趨勢線/EMA200:可選擇要求 EMA200 或趨勢線突破(含 ATR 容忍帶)。
出場:SL = max(ATR×k, 擺動緩衝, % 下限);TP = min(R×SL, ATR/% 上限)。
避免前視:HTF 僅用確認棒;樞紐點僅作標註,不作入場條件。
Filters (11) |濾網(11 項)
HTF Trend / Bright Zone (RSI) / LTF EMA(3/8/21) / MACD / Volume / ADX Gate / Structure Breakout / Pullback to EMA / EMA Band Width / Peak Guard / Trendline or EMA200 Confirmation
(高階趨勢/RSI 亮區/本階 EMA 結構/MACD/量能/ADX 閘/結構突破/回踩 EMA/EMA 窄帶/高位防護/趨勢線或 EMA200 確認)
User can define required passes (default 7).|可自訂需通過的濾網數(預設 7)。
Features |功能
Multi-market presets (Crypto / Gold / US Futures / Forex)|多市場預設
Adaptive TP/SL with labels (dynamic R:R)|自適應 TP/SL(含標註)
Risk-based star rating (0★–5★)|風險星級評分
Signal modes: Conservative / Balanced / Aggressive|訊號模式:保守/平衡/積極
Peak Guard toggle|高位防護可切換
How to use |使用方式
Pick market preset; start with 5m/15m.
Set required filters (default 7) and enable HTF confirmed bars.
Tune TP/SL and risk per symbol/timeframe; use star rating as visual guidance.
In choppy markets, raise ADX min and EMA-band threshold; in trend, relax them slightly.
選擇市場預設(建議 5/15 分鐘起)。
設定需通過的濾網數(預設 7),並啟用 HTF 確認棒。
依商品/時框微調 TP/SL 與風險;以星級作視覺參考。
震盪市提高 ADX 與帶寬門檻;趨勢市可適度放寬。
Notes |注意
Backtest behavior depends on bar resolution and fill rules; intrabar path may differ from live fills.
Educational use only; not financial advice.
No ads/links/contacts.
Changelog |版本紀錄(示例,請用「Update」維護)
2025-09-05: Reversal v2.1 scoring & 2-step confirmation; TL rejection/OB-touch trigger (optional); EMA8 recapture via close; Peak Guard integrated; BTC/ETH/SOL presets refined; alerts expanded; label params cleaned.
2025-08-28: Fixed decimal bug; tuned presets for four markets; kept auto RR/SL logic.
Stocker++Stocker++ Trading Indicator: Complete User Guide
This comprehensive trading indicator combines technical analysis, fundamental analysis, risk management, and value investing principles into an integrated decision-making system. Here's how to use it effectively for investment decisions.
Core Functionality Overview
The indicator provides six customizable data tables that display on your chart, each serving a specific analytical purpose. You can enable/disable individual tables and adjust their positions, colors, and text sizes to suit your preferences.
Table 1: Risk Management and Volume Analysis
Risk Management Section
This table calculates your optimal position size based on your account size and risk tolerance. Key components include:
Account Size and Risk Parameters: Enter your total trading capital and the percentage you're willing to risk per trade (typically 1-2%). The indicator automatically calculates the dollar amount at risk.
Stop Loss Calculation: Choose between two methods - ATR-based (Average True Range) or Low of Day. The ATR method provides a volatility-adjusted stop loss, while LoD uses the day's low as support.
Position Sizing: The indicator calculates exactly how many shares to buy based on your risk parameters and stop loss distance. It also shows your total position size as both a dollar amount and percentage of your account.
Liquidity Analysis: Critical safety features include:
Maximum allowed position based on daily volume (prevents you from taking positions too large for the stock's liquidity)
Minimum required daily volume for your position size
Liquidity ratio showing if there's sufficient volume for your trades
Float analysis indicating what percentage of shares are publicly tradeable
Position impact assessment showing how your trade might affect the stock price
Volume Analysis Section
Provides real-time liquidity metrics:
Average daily dollar volume (20-day average)
Average daily share volume
Relative volume (current vs average)
Volume buzz (unusual activity indicator)
Table 2: Company Information and Analyst Ratings
Company Metrics
Displays essential market data:
Daily price change in dollars
ATR (14-day volatility measure)
Average Daily Range percentage
Low of Day price and distance from current price
Market capitalization
Total shares outstanding
Float shares and percentage
Free cash flow and yield
Employee count and shareholder numbers
Sector and industry classification
Gap analysis (today's low vs yesterday's high)
Analyst Recommendations
Shows consensus analyst opinions:
Number of buy, strong buy, sell, strong sell, and hold ratings
Total analyst coverage
Date of most recent recommendations
Table 3: Earnings History
Displays quarterly earnings performance across multiple periods:
Standardized EPS (adjusted for one-time items)
Reported EPS
Analyst estimates
Earnings surprise (beat/miss) with percentages
Revenue actuals vs estimates
Revenue surprise percentages
Color coding: Green for beats, red for misses
Table 4: Comprehensive Financial Analysis
Income Statement Metrics
Quarterly revenue with gross profit margins
Operating income and margins
Net income and profit margins
Earnings per share
Balance Sheet Analysis
Total assets, liabilities, and equity
Cash and equivalents
Total debt
Debt-to-equity ratio (risk indicator)
Valuation Metrics
Market cap and enterprise value
EV/Revenue ratio
Price-to-book ratio
Book value per share
Return on Equity (ROE)
Return on Assets (ROA)
Key Multipliers
P/E ratio (Price to Earnings)
P/S ratio (Price to Sales)
PEG ratio (P/E to Growth)
EV/EBITDA
Advanced Valuation Analysis
The indicator calculates fair value using multiple methodologies:
Graham Number for profitable companies
DCF (Discounted Cash Flow) model
Revenue-based valuation for unprofitable companies
Asset-based valuation for pre-revenue companies
It provides:
Fair value estimate with methodology used
Current price vs fair value percentage
Investment rating (0-10 scale)
Long-term outlook assessment
Warren Buffett Criteria Section
Evaluates stocks against Buffett's investment principles:
ROE Quality (must exceed 15%)
Debt Payoff Time (should be under 3 years)
Economic Moat score (competitive advantages)
Owner Earnings (Buffett's preferred cash flow metric)
Margin of Safety (discount to intrinsic value)
Overall Buffett Score (0-5 scale)
Table 5: Investment Summary Dashboard
This synthesizes all analysis into actionable insights:
Investment Grade: Letter grade (A-F) based on weighted scoring of liquidity, cash flow, valuation, and Buffett criteria
Decision Output: Clear BUY, HOLD, or AVOID recommendation
Risk Assessment: Categorizes overall risk as minimal, low, moderate, or high
Key Summary Metrics:
Valuation status with margin of safety percentage
Buffett score and verdict
Liquidity quality and float percentage
Cash flow quality and FCF yield
Risk alerts for critical issues
Investment Strategy Framework
Entry Criteria
For a BUY signal, the indicator requires:
Investment score ≥7 out of 10
Margin of safety >25% (stock trading below fair value)
Float percentage >20% (configurable)
FCF margin >5% or cash runway >2 years
Buffett score ≥3 out of 5
Position Sizing Strategy
Set your account size and risk percentage (1-2% recommended)
The indicator calculates optimal share count based on stop loss distance
Verify the position doesn't exceed liquidity constraints
Check position impact - should be <0.1% of float for minimal market impact
Risk Management Rules
Use the calculated stop loss level (ATR or LoD based)
Ensure position size doesn't exceed 30% of account (or the calculated maximum)
Verify average daily volume is at least 200x your position size
Monitor the liquidity ratio - should be >2x for safe entry/exit
Fundamental Quality Checks
Before investing, ensure:
Positive or improving margins (gross, operating, net)
Debt-to-equity ratio <2 (preferably <1)
Positive free cash flow or adequate cash runway
ROE >15% for established companies
Revenue growth and earnings consistency
Exit Considerations
Consider selling when:
Stock reaches fair value (margin of safety approaches 0%)
Fundamental metrics deteriorate significantly
Debt levels become concerning (D/E >2)
Free cash flow turns negative without clear path to profitability
Technical indicators (moving averages) show breakdown
Moving Averages Component
The indicator includes six customizable moving averages (SMA or EMA) with individual:
Period lengths (default: 10, 20, 50, 100, 150, 200)
Timeframes (can use higher timeframes on lower charts)
Colors for visual distinction
Use these for trend identification and support/resistance levels.
Practical Usage Tips
For Growth Investors: Focus on revenue growth, improving margins, and moderate valuation with emphasis on long-term outlook
For Value Investors: Prioritize margin of safety >25%, Buffett score ≥4, and fundamental strength
For Traders: Use volume analysis, technical levels, and strict position sizing with stop losses
For Risk-Averse Investors: Only consider stocks with investment grade A or B, minimal risk assessment, and strong cash positions
Warning Indicators
The system highlights critical risks:
Low float (<20%) - high volatility risk
Cash burn with <2 years runway
Overvaluation >150% of fair value
High debt (D/E >2)
Insufficient liquidity for position size
NX/CD IndicatorThe NX/CD Indicator is designed to help traders visualize market trends, momentum shifts, and volatility zones.
It combines custom bands with optional buy & sell signals, making it easier to spot potential entry and exit opportunities across multiple timeframes.
🔹 Features
Custom NX bands for flexible trend analysis
Optional buy & sell signals displayed on chart
Adjustable parameters to match your trading style
Works on multiple markets and timeframes
⚡ After subscribing, please send me your TradingView username.
Access to the invite-only script will be granted within 24 hours.
⚠️ Disclaimer
This indicator is for educational and informational purposes only.
It does not guarantee profits or financial returns.
All trading involves risk, and you are solely responsible for your own decisions.
KJ Swing StatsFor Internal Use Only, //@version=5
indicator("ADR / ATR / LoD / %FromMA / ATR-MA (inspiration-matched)", shorttitle="ADR-ATR-LoD-MA", overlay=true, max_bars_back=500)
// ---------------- Inputs ----------------
adrp_len = input.int(20, "ADR Length (days)", minval=1)
atr_len = input.int(14, "ATR Length (days)", minval=1)
ma_len = input.int(50, "MA50 Length (days)", minval=1)
posTable = input.string("Top Right", "Table Position", options= )
tbl_size = input.string("Normal", "Table Size", options= )
txt_col = input.color(color.orange, "Text Color")
bg_col = input.color(#00000000, "Background Color")
show_adr_pct = input.bool(true, "Show ADR%")
show_adr_price = input.bool(false,"Show ADR (price)")
show_atr_pct = input.bool(true, "Show ATR%")
show_pct_from_ma = input.bool(true, "Show % from MA50")
show_atr_multiple= input.bool(true, "Show ATR multiple (|price - MA50| / ATR)")
show_lod = input.bool(true, "Show LoD Dist")
// which ADR formula to use (inspiration uses ratio default)
adr_mode = input.string("Ratio (sma(high/low)-1)", "ADR% formula", options= )
// LoD denom default to ATR like your inspiration snippet
lod_denom_choice = input.string("ATR", "LoD denominator", options= )
// Price used for live measures: makes numbers stable across TFs when set to "Daily"
price_source = input.string("Daily", "Price source for live measures", options= )
// ---------------- Helpers ----------------
tablePos = switch posTable
"Top Left" => position.top_left
"Top Right" => position.top_right
"Bottom Left" => position.bottom_left
=> position.bottom_right
size_tbl = switch tbl_size
"Tiny" => size.tiny
"Small" => size.small
"Large" => size.large
=> size.normal
// ---------------- Daily-locked series (to avoid TF-mixing) ----------------
sym = syminfo.tickerid
// daily H/L/C (locked)
d_high = request.security(sym, "D", high)
d_low = request.security(sym, "D", low)
d_close = request.security(sym, "D", close)
// ADR price as avg(high-low) on daily and ADR% (two options)
d_adr_price = request.security(sym, "D", ta.sma(high - low, adrp_len))
// ADR% - ratio style (inspiration): 100 * (sma(high/low) - 1)
d_adr_ratio_pct = request.security(sym, "D", 100 * (ta.sma(high / low, adrp_len) - 1))
// ADR% - range/close style
d_adr_range_pct = d_adr_price == 0 ? na : 100 * d_adr_price / d_close
// choose ADR% final
d_adr_pct = adr_mode == "Ratio (sma(high/low)-1)" ? d_adr_ratio_pct : d_adr_range_pct
// ATR daily and ATR%
d_atr = request.security(sym, "D", ta.atr(atr_len))
d_atr_pct = d_atr == 0 ? na : 100 * d_atr / d_close
// MA50 on daily
d_ma50 = request.security(sym, "D", ta.sma(close, ma_len))
// ---------------- Price used for "live" measures ----------------
price_used = price_source == "Daily" ? d_close : close // close = chart timeframe close (intraday)
// ---------------- Calculations ----------------
// Percent distance FROM MA50 (correct formula = (price / MA50 - 1) * 100)
float pct_from_ma = na
pct_from_ma := (d_ma50 == 0 or na(d_ma50)) ? na : 100 * (price_used / d_ma50 - 1)
// ATR multiple = abs(price - MA50) / ATR (how many ATRs away price is from MA50)
float atr_multiple = na
atr_multiple := (d_atr == 0 or na(d_atr)) ? na : math.abs(price_used - d_ma50) / d_atr
// LoD Dist: (price_used - daily_low) / denom * 100
lod_denom = lod_denom_choice == "ADR" ? d_adr_price : d_atr
lod_dist = (lod_denom == 0 or na(lod_denom)) ? na : 100 * (price_used - d_low) / lod_denom
// ---------------- Formatting ----------------
fmtPct(v) => na(v) ? "-" : str.tostring(v, "0.00") + "%"
fmtSignedPct(v) => na(v) ? "-" : (v > 0 ? "+" + str.tostring(v, "0.00") + "%" : str.tostring(v, "0.00") + "%")
fmtNum(v, f) => na(v) ? "-" : str.tostring(v, f)
// ---------------- Table ----------------
var table t = table.new(tablePos, 2, 8, bgcolor=bg_col)
if barstate.islast
// empty top row like your inspiration
table.cell(t, 0, 0, "")
table.cell(t, 1, 0, "")
r = 1
if show_adr_pct
table.cell(t, 0, r, "ADR% (" + str.tostring(adrp_len) + "d)", text_color=txt_col, text_size=size_tbl)
table.cell(t, 1, r, fmtPct(d_adr_pct), text_color=txt_col, text_size=size_tbl)
table.cell_set_text_halign(t, 0, r, text.align_left)
table.cell_set_text_halign(t, 1, r, text.align_right)
r += 1
if show_adr_price
table.cell(t, 0, r, "ADR (price)", text_color=txt_col, text_size=size_tbl)
table.cell(t, 1, r, na(d_adr_price) ? "-" : str.tostring(d_adr_price, "0.000"), text_color=txt_col, text_size=size_tbl)
table.cell_set_text_halign(t, 0, r, text.align_left)
table.cell_set_text_halign(t, 1, r, text.align_right)
r += 1
if show_atr_pct
table.cell(t, 0, r, "ATR% (" + str.tostring(atr_len) + "d)", text_color=txt_col, text_size=size_tbl)
table.cell(t, 1, r, fmtPct(d_atr_pct), text_color=txt_col, text_size=size_tbl)
table.cell_set_text_halign(t, 0, r, text.align_left)
table.cell_set_text_halign(t, 1, r, text.align_right)
r += 1
if show_pct_from_ma
table.cell(t, 0, r, "% from MA" + str.tostring(ma_len), text_color=txt_col, text_size=size_tbl)
table.cell(t, 1, r, fmtSignedPct(pct_from_ma), text_color=txt_col, text_size=size_tbl)
table.cell_set_text_halign(t, 0, r, text.align_left)
table.cell_set_text_halign(t, 1, r, text.align_right)
r += 1
if show_atr_multiple
table.cell(t, 0, r, "ATR multiple (|price-MA|/ATR)", text_color=txt_col, text_size=size_tbl)
table.cell(t, 1, r, na(atr_multiple) ? "-" : str.tostring(atr_multiple, "0.00"), text_color=txt_col, text_size=size_tbl)
table.cell_set_text_halign(t, 0, r, text.align_left)
table.cell_set_text_halign(t, 1, r, text.align_right)
r += 1
if show_lod
table.cell(t, 0, r, "LoD Dist (" + lod_denom_choice + ")", text_color=txt_col, text_size=size_tbl)
table.cell(t, 1, r, na(lod_dist) ? "-" : str.tostring(lod_dist, "0.0") + "%", text_color=txt_col, text_size=size_tbl)
table.cell_set_text_halign(t, 0, r, text.align_left)
table.cell_set_text_halign(t, 1, r, text.align_right)
r += 1
RSI Strategy @ Sumith.KVRSI Strategy helps to trade based on different RSI Strategy...
Strategies included...
1. RSI Breakout
2. RSI Breakdown
3. RSI Overbought
4. RSI Oversold
Alerts are Configured for all the RSI Strategies....
Happy Trading :)
Multi Asset Position Size Calculator (Extended with Entry ModeMulti Asset Position Size Calculator (Extended with Entry Mode
Multi Asset Position Size Calculator Multi Asset Position Size Calculator (Extended with Entry Mode)_Mr_X