Institutional RSI Trendline Breakout StrategyKey Features:
1. RSI Trendline Detection
Automatically identifies RSI resistance (bearish) and support (bullish) trendlines
Requires minimum touch points for validation
Dynamic trendline calculation with configurable pivot lookback
2. Market Structure Analysis
Detects swing highs/lows to identify uptrends and downtrends
Combines multiple trend confirmation methods (swing structure + moving averages)
Visual background highlighting for trend confirmation
3. Breakout Signals
Buy Signal: RSI breaks above resistance trendline + bullish market structure
Sell Signal: RSI breaks below support trendline + bearish market structure
Configurable breakout threshold to avoid false signals
4. ATR-Based Stop Loss
Dynamic stop loss placement based on market volatility
Multiplier-adjustable for different risk profiles
Visual plotting of stop loss levels
5. Signal Filters
Volume filter to confirm breakout validity
RSI level filters to avoid extreme conditions
Multiple validation layers for institutional-grade accuracy
6. Professional Visualization
Clear buy/sell signal markers on chart
Information dashboard with real-time metrics
Trend background highlighting
Stop loss level indicators
7. Alert System
Ready-to-use alerts for both buy and sell signals
Includes entry price and stop loss in alert messages
This script provides institutional-grade signal quality with multiple confirmation layers, optimal risk management, and comprehensive market analysis.
Candlestick analysis
CandleTrack Pro | Pure Price Action Trend Detection📖 CandleTrack Pro | Pure Price Action Trend Detection
CandleTrack Pro is a clean, non-repainting trend detection tool built purely on price action logic.
It uses a dynamic ATR-based trailing system to detect trend shifts while keeping the chart visually simple.
🧠 How It Works
Tracks volatility using ATR.
Identifies trend shifts when price crosses trailing stops.
Highlights bullish and bearish bars visually for easy reading.
⚙️ Inputs
ATR Sensitivity: Controls how fast the trend adapts.
Use High/Low for Stop: Enables candle wick–based structure tracking.
📊 Ideal For
Traders who want a minimalist price action view with clear trend direction — no clutter, no lagging oscillators.
⚠️ Disclaimer
This script is for educational and technical analysis purposes only.
It is not financial advice. Always confirm setups using your own judgment and risk management.
Adaptive Range Breakout (UPDATED RBVC)RBVC UPDATED WITH TIGHTER RANGE TIMELY BREAKOUT. This as an updated version for range breakout with volume as the earlier indicator had delayed response time
M15 Daily Open Candle Highlighter — v6Tô màu cây nến 15 phút đầu tiên của mỗi NGÀY giao dịch (theo múi giờ của symbol).
Heikin Ashi 3-Bar Momentum Alert by nqbrooksTrying some stuffz out yahuuur, HIKEYNASHIEEEHH 3 bar -4h momemtum aelerTT
LW Outside Day Strategy[SpeculationLab]This strategy is inspired by the “Outside Day” concept introduced by Larry Williams in Long-Term Secrets to Short-Term Trading, and has been extended with configurable risk management tools and realistic backtesting parameters.
Concept
The “Outside Day” is a classic price action pattern that reflects strong market rejection or continuation pressure.
An Outside Bar occurs when the current bar’s high exceeds the previous high and the low falls below the previous low.
A body-size filter ensures only significant candles are included.
Entry Logic
Buy setup: Price closes below the previous low (bullish rejection).
Sell setup: Price closes above the previous high (bearish rejection).
Only confirmed bars are used (no intrabar signals).
Stop-Loss Modes
Prev Low/High: Uses the previous swing point ± ATR-based buffer.
ATR: Dynamic stop based on Average True Range × multiplier.
Fixed Pips: User-defined fixed distance (for forex testing).
Take-Profit Modes
Prev High/Low (PHL): Exits near the opposite swing.
Risk-Reward (RR): Targets a user-defined multiple of the stop distance (default = 2 : 1).
Following Price Open (FPO): Exits on the next bar’s open if price opens in profit (used to test overnight price continuation).
Risk Management & Backtest Settings
Default risk per trade is set at 10% of account equity (user-adjustable).
Commission = 0.1% and slippage = 2 ticks are applied to simulate realistic conditions.
For reliable statistics, test on data that yields over 100 trades.
Suitable for daily and 4-hour timeframes across stocks, forex, and crypto markets.
Visual Elements
Green and red triangles show entry signals.
Stop-loss (red) and take-profit (green) reference lines are drawn for clarity.
Optional alerts notify when a valid setup forms.
Disclaimer
This script is for educational and research purposes only.
It does not constitute financial advice or guarantee profits.
Always backtest thoroughly and manage your own risk.
Enhancements over Classic Outside Bar Models
Adjustable stop and target logic with ATR and buffer multipliers.
“Following Price Open” exit logic for realistic day-end management.
Optimized to avoid repainting and bar-confirmation issues.
Built with realistic trading costs and position sizing.
策略逻辑
外包线识别
当日最高价高于前一日最高价,且当日最低价低于前一日最低价,即形成外包线。
同时过滤掉较小实体的 K 线,仅保留实体显著大于前一根的形态。
方向过滤
收盘价低于前一日最低价 → 视为买入信号。
收盘价高于前一日最高价 → 视为卖出信号。
止损设置(可选参数)
前低/高止损:以形态前低/前高为止损,带有缓冲倍数。
ATR 止损:根据平均波动率(ATR)动态调整。
固定点数止损:按照用户设定的点数作为止损范围。
止盈设置(可选参数)
前高/低止盈(PHL):以前高/前低为目标。
固定盈亏比(RR):根据用户设定的风险回报比自动计算。
隔夜开盘(FPO):若次日开盘价高于进场价(多单)或低于进场价(空单),则平仓。
信号标记
在图表中标注买入/卖出信号(三角形标记)。
绘制止损与目标位参考线。
使用说明
适用周期:建议用于 日线图(Daily)。
适用市场:股票、外汇、加密货币等各类市场均可。
提示:此策略为历史研究与学习用途,不构成投资建议。实际交易请结合自身风险管理。
Orderflow Label with OffsetThis Pine Script automatically displays orderflow labels on the chart to visualize the current market structure and potential breakout or reversal zones.
It compares the current candle’s high and low with those of the previous cycle (e.g., 90 minutes) and places descriptive labels that highlight possible bullish or bearish behavior.
Functionality & Logic (Step-by-step explanation)
Inputs:
cycleLength: Defines the duration of one “cycle” in minutes (for example, 90 minutes).
labelXOffset: Moves the label a few bars to the right, so it doesn’t overlap the current candle.
labelStyleOffset: Controls whether labels appear pointing to the right or left side of the chart.
Previous Cycle:
The script uses request.security to retrieve the high and low from the previous cycle timeframe.
These act as reference points (similar to key levels or market structure highs/lows).
Current Candle:
The script reads the current bar’s high, low, and close values for comparison.
Orderflow Conditions:
bullSupport: The current high and close are both above the previous high → bullish breakout (strong continuation).
bullReject: The high breaks above the previous high but closes below → bullish rejection / possible top.
bearRes: The low and close are both below the previous low → bearish breakdown (continuation to downside).
bearReclaim: The low goes below the previous low but closes above → bearish reclaim / possible reversal.
Label Logic:
Before creating a new label, the previous one is deleted (label.delete(flowLbl)) to avoid clutter.
The label’s X position is shifted using xPos = bar_index + labelXOffset.
The style (left/right) is set based on the user’s preference.
Displayed Labels:
🟢 Bullish Breakout → price closes above the previous cycle high.
🟠 Bullish Rejection → fake breakout or possible top.
🔴 Bearish Breakdown → price closes below the previous cycle low.
🟡 Bearish Reclaim → failed breakdown or potential trend reversal.
⚪ Neutral (Wait) → no clear signal, advises patience and watching for setups (like CHoCH or FVGs).
Visual Behavior:
The labels appear slightly to the right of the bar for better visibility.
The color and text alignment dynamically adjust depending on whether the label is pointing left or right.
Real-Time Risk Calculator (v6) - FixedRisk calculator based on account size and a low of day stop loss
特典インジケーター (ボリンジャーバンド+移動平均線)BTCやSP500向けのチャート解析ツールです。
- ボリンジャーバンド(オレンジ上下線、水色中央線)
- EMA5(青線)、EMA25(黄色線)、EMA200(赤線)
使い方のポイント
- トレンド判定: EMA200(赤)より上なら上昇基調、下なら下降基調が優勢。
- 短中期の勢い: EMA5(青)とEMA25(黄)のゴールデンクロス/デッドクロスで勢いの変化を確認。
- ボラティリティと逆張り: ボリンジャーバンドの上限/下限タッチは伸びの継続か反転の初動かを、中央線(基準・水色)復帰でフォロー確認。
- 時間軸: 1時間~4時間は短期、日足は中期のトレンド確認に適合。複数時間軸で整合性を取ると精度が上がります。
ツールの解説
ボリンジャーバンド(Bollinger Bands)
ボリンジャーバンドは、20期間の単純移動平均(SMA)を中央線とし、その上下に標準偏差×2のバンドを配置します。
- 上限バンド:相場の上振れが過熱している可能性を示すレジスタンスライン
- 下限バンド:相場の下振れが過冷却している可能性を示すサポートライン
- バンド幅の拡大:ボラティリティ上昇局面を示唆
- バンド幅の収縮:レンジ相場や転換前の低ボラティリティを示唆
---------------------
EMA5(Exponential Moving Average 5)
EMA5は直近5本の価格により重み付けされた指数移動平均です。
- 非常に短期的な価格の変化を捉え、エントリーや還流のタイミングに敏感
- EMA25とのクロスオーバーで、短期モメンタムの変化を判断
EMA25(Exponential Moving Average 25)
EMA25は中期的なトレンドを表す指数移動平均です。
- EMA5との位置関係でトレンドの強さや方向性を評価
- 価格がEMA25を上回れば短期的な買い優勢、下回れば売り優勢
EMA200(Exponential Moving Average 200)
EMA200は長期トレンドの大局を示す指数移動平均です。
- プロのトレーダーにも重要視されるサポート/レジスタンスライン
- 価格がEMA200を上回ると長期的に強気、市場全体のセンチメント確認に利用
Chart Analysis Tool for BTC and S&P500
- Bollinger Bands (orange upper/lower lines, light blue middle line)
- EMA5 (blue line), EMA25 (yellow line), EMA200 (red line)
Stop Hunt Candlesticks (Liquidity Wicks)🕯️ Stop Hunt Candlesticks
Wick Highlighter – Spot Extreme Wicks Instantly
This indicator highlights candles where the upper or lower wick exceeds a customizable percentage of the asset’s price — perfect for quickly spotting strong rejections, liquidity grabs, stop hunts or exhaustion moves.
💡 Key Features
Visual Background Highlight: Automatically colors the chart background when a wick surpasses your defined % threshold (default 1%).
Customizable Threshold: Adjust wick sensitivity to suit different assets or timeframes.
Upper & Lower Wick Filters: Choose whether to track upper wicks, lower wicks, or both.
Dynamic Price Basis: Compare wick size relative to Close, Open, HL2, or OC2.
Optional Labels: Display the exact wick percentage directly on the chart.
Alerts Ready: Get notified whenever a candle shows an extreme wick condition.
⚙️ How It Works
The script measures each candle’s wick size relative to your chosen price basis:
Upper wick % = (High − max(Open, Close)) / Basis × 100
Lower wick % = (min(Open, Close) − Low) / Basis × 100
If the result exceeds your chosen threshold, the chart background changes color.
Red for upper wicks, green for lower wicks by default.
🎯 Use Cases
Identify strong rejections or stop hunts near key levels.
Confirm price exhaustion or potential reversals.
Filter fake breakouts or high-volatility events.
🧩 Customization
Tweak colors, transparency, and label visibility to fit seamlessly into your chart setup.
Larry Williams Oops StrategyThis strategy is a modern take on Larry Williams’ classic Oops setup. It trades intraday while referencing daily bars to detect opening gaps and align entries with the prior day’s direction. Risk is managed with day-based stops, and—unlike the original—all positions are closed at the end of the session (or at the last bar’s close), not at a fixed profit target or the first profitable open.
Entry Rules
Long setup (bullish reversion): Today opens below yesterday’s low (down gap) and yesterday’s candle was bearish. Place a buy stop at yesterday’s low + Filter (ticks).
Short setup (bearish reversion): Today opens above yesterday’s high (up gap) and yesterday’s candle was bullish. Place a sell stop at yesterday’s high − Filter (ticks).
Longs are only taken on down-gap days; shorts only on up-gap days.
Protective Stop
If long, stop loss trails the current day’s low.
If short, stop loss trails the current day’s high.
Exit Logic
Positions are force-closed at the end of the session (in the last bar), ensuring no overnight exposure. There is no take-profit; only stop loss or end-of-day flat.
Notes
This strategy is designed for intraday charts (minutes/seconds) using daily data for gaps and prior-day direction.
Longs/shorts can be enabled or disabled independently.
3-1-2 Strat Combo by NaturalBelleThe 3-1-2 Strat Combo by NaturalBelle automatically detects and highlights one of The Strat’s most powerful reversal patterns — the 3-1-2 setup.
When a 3 (outside bar) is followed by a 1 (inside bar) and then a 2 that breaks direction, this script plots yellow triangles and draws yellow box zones across the sequence, giving traders a clean visual cue for potential reversals or continuations.
Features:
Highlights both bullish (3-1-2-Up) and bearish (3-1-2-Down) sequences
Draws yellow boxes covering the 3-1-2 structure for easy zone recognition
Optional text labels for clarity
Adjustable box extension and transparency
Built-in alert conditions for both up and down setups
This clean, no-clutter version focuses purely on price action — no indicators, no noise. Just the pattern.
🟡 Best used on: Any timeframe
🟡 Strategy: Combine with market structure, EMAs, or supply & demand zones for confirmation
Created by NaturalBelle — keeping Strat analysis simple, visual, and precise.
GR33NGR33N — by TanTechTrades
GR33N is a clean, lightweight confirmation/alert tool that fires only when trend, breakout, and momentum all agree. It combines a Hull Moving Average, a Donchian Trend Ribbon, and ADX/DI into one “all green / all red” signal you can trade or use to filter other systems.
What it does
Trend (Hull MA 55): Detects short-to-medium trend direction. Line turns green when rising, red when falling.
Breakout (Donchian 20): Labels regime as bullish after a close above the prior Donchian high, bearish after a close below the prior Donchian low.
Momentum (ADX/DI 14): Confirms direction with DI+ > DI− for bullish pressure or DI− > DI+ for bearish pressure.
A signal prints only when all three align:
All Green → Hull rising and Donchian bullish and DI+ > DI−
All Red → Hull falling and Donchian bearish and DI− > DI+
The chart shades faintly and plots triangles at bars where the alignment occurs. Built-in alerts let you automate entries or notifications.
Plots & Visuals
Hull MA (color-coded by slope)
Background highlight on qualifying bars
Triangle Up/Down markers at “All Green / All Red” events
Inputs
Source: Price source for Hull (default: close)
Hull Length: Default 55
Donchian Period: Default 20
ADX Length: Default 14
Alerts
All Green Alert: “All indicators are green!”
All Red Alert: “All indicators are red!”
Set alerts on “Once per bar close” for confirmed signals.
How to use
Add GR33N to your chart and keep defaults to start.
Trade with the signal:
Long bias on “All Green”; consider entries on pullbacks or break of signal bar high.
Short bias on “All Red”; consider entries on pullbacks or break of signal bar low.
Risk manage with your own SL/TP (e.g., beyond recent swing or ATR).
Optional: Use GR33N as a filter—only take strategy entries in the direction of the latest signal.
Tips
Shorter Donchian or Hull = more signals, more noise. Longer = fewer, more selective.
Works well on intraday FX, indices, and crypto; always validate per symbol/timeframe.
Pair with structure levels, session filters, or volume for higher quality setups.
Notes
This is an indicator/alert tool, not a strategy. Past performance ≠ future results.
Signals are generated on bar close; enabling “realtime bar” alerts may lead to earlier—but less confirmed—notifications.
Built by TanTechTrades — keep it simple, keep it green. ✅
Larry Williams Bonus Track PatternThis strategy trades the day immediately following an Inside Day, under specific directional and timing conditions. It is designed for daily-based setups but executed on intraday charts to ensure orders are placed exactly at the open of the following day, rather than at the daily bar close.
Entry Conditions
Only trades on Monday, Thursday, or Friday.
The previous day must be an Inside Day (its high is lower than the prior high and its low is higher than the prior low).
The bar before the Inside Day must be bullish (close > open).
On the following day (t):
The daily open must be below both the Inside Day’s high and the highest high of the two days before that.
A buy stop is placed at the highest high of the three previous days (Inside Day and the two days before it).
If the new day’s open is already above that level (gap up), the strategy enters long immediately at the open.
Exit Rules
Stop Loss: Fixed, defined in points or percentage (user input).
FPO (First Profitable Open): the position is closed at the first daily open after the entry day where the open price is above the average entry price (the first profitable open).
Notes
The script must be applied on an intraday timeframe (e.g., 15-minute or 1-hour) so that the strategy can:
Detect the Inside Day pattern using daily data (request.security).
Execute orders in real time at the next day’s open.
Running it directly on the daily timeframe will delay executions by one bar due to Pine Script’s evaluation model.
Relative Volume Spike (Bullish vs Bearish)relative volume compared to 20day averages
used to detect when big money is coming in.
Combined Triggers Dashboard//@version=6
indicator("Combined Triggers Dashboard", overlay=true)
// ======================= INPUTS =======================
// Daily Trigger
shortDEMA_D = input.int(10, "Daily 10 DEMA")
longDEMA_D = input.int(20, "Daily 20 DEMA")
volAvgLen_D = input.int(20, "Daily 20-day Avg Volume")
volMultiplier_D = input.float(3, "Daily Volume Multiplier")
weekDEMAlen_D = input.int(10, "10-Week DEMA Reference for Daily Trigger")
// Weekly Trigger
shortDEMA_W = input.int(10, "Weekly 10 W DEMA")
longDEMA_W = input.int(20, "Weekly 20 W DEMA")
volAvgLen_W = input.int(50, "50-day Avg Volume for Weekly Trigger")
volMultiplier_W = input.float(3, "Weekly Volume Multiplier")
// Original Trigger (example)
shortDEMA_O = input.int(10, "Original 10 DEMA")
longDEMA_O = input.int(20, "Original 20 DEMA")
volAvgLen_O = input.int(20, "Original 20-day Avg Volume")
volMultiplier_O = input.float(3, "Original Volume Multiplier")
// ======================= FUNCTIONS =======================
f_dema(_src, _len) =>
ema1 = ta.ema(_src, _len)
ema2 = ta.ema(ema1, _len)
2 * ema1 - ema2
// ======================= DAILY TRIGGER =======================
dema10D = f_dema(close, shortDEMA_D)
dema20D = f_dema(close, longDEMA_D)
dailyVol = volume
avgVol20 = ta.sma(dailyVol, volAvgLen_D)
volCondition_D = dailyVol > volMultiplier_D * avgVol20
priceCondition_D = close > dema10D
demaCondition_D = dema10D > dema20D
weeklyClose_D = request.security(syminfo.tickerid, "W", close)
dema10W_D = ta.ema(weeklyClose_D, weekDEMAlen_D) * 2 - ta.ema(ta.ema(weeklyClose_D, weekDEMAlen_D), weekDEMAlen_D)
trigger_D = priceCondition_D and demaCondition_D and volCondition_D
plotshape(trigger_D, title="Daily Trigger", style=shape.triangleup, location=location.abovebar,
text="DTRG", textcolor=color.white, color=color.new(#FF4500, 0), size=size.small)
alertcondition(trigger_D, title="Daily DEMA Trigger Alert", message="Daily DEMA trigger detected")
// ======================= WEEKLY TRIGGER =======================
weeklyClose_W = request.security(syminfo.tickerid, "W", close)
dema10W = f_dema(weeklyClose_W, shortDEMA_W)
dema20W = f_dema(weeklyClose_W, longDEMA_W)
dailyVolW = volume
avgVol50 = ta.sma(dailyVolW, volAvgLen_W)
volCondition_W = dailyVolW > volMultiplier_W * avgVol50
priceCondition_W = close > dema20W
demaCondition_W = dema10W > dema20W
trigger_W = priceCondition_W and demaCondition_W and volCondition_W
plotshape(trigger_W, title="Weekly Trigger", style=shape.triangledown, location=location.abovebar,
text="WTRG", textcolor=color.white, color=color.new(#1E90FF, 0), size=size.small)
alertcondition(trigger_W, title="Weekly DEMA Trigger Alert", message="Weekly DEMA trigger detected")
// ======================= ORIGINAL TRIGGER =======================
dema10O = f_dema(close, shortDEMA_O)
dema20O = f_dema(close, longDEMA_O)
dailyVolO = volume
avgVolO = ta.sma(dailyVolO, volAvgLen_O)
volCondition_O = dailyVolO > volMultiplier_O * avgVolO
priceCondition_O = close > dema10O
demaCondition_O = dema10O > dema20O
trigger_Orig = priceCondition_O and demaCondition_O and volCondition_O
plotshape(trigger_Orig, title="Original Trigger", style=shape.labelup, location=location.belowbar,
text="TRG", textcolor=color.white, color=color.new(#32CD32, 0), size=size.small)
// ======================= COMBINED TABLE =======================
var table dash = table.new(position.top_right, 2, 20, border_width=1)
if barstate.islast
// --- DAILY TRIGGER (rows 0-4) ---
table.cell(dash, 0, 0, "Daily Trigger", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 0, trigger_D ? "YES ✅" : "NO ❌", text_color=color.white, bgcolor=trigger_D ? color.new(#FF4500, 0) : color.new(#555555, 50))
table.cell(dash, 0, 1, "CMP > 10D DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 1, str.tostring(close, format.price), text_color=color.white, bgcolor=priceCondition_D ? color.new(#32CD32, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 2, "10D > 20D DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 2, str.tostring(dema10D, format.price) + " > " + str.tostring(dema20D, format.price), text_color=color.white, bgcolor=demaCondition_D ? color.new(#FFFF00, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 3, "Daily Vol > 3x20D Avg", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 3, str.tostring(dailyVol, format.volume) + " / " + str.tostring(avgVol20, format.volume), text_color=color.white, bgcolor=volCondition_D ? color.new(#FF00FF, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 4, "10W DEMA Ref", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 4, str.tostring(dema10W_D, format.price), text_color=color.white, bgcolor=color.new(#00FFFF, 0))
// --- WEEKLY TRIGGER (rows 5-9) ---
table.cell(dash, 0, 5, "Weekly Trigger", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 5, trigger_W ? "YES ✅" : "NO ❌", text_color=color.white, bgcolor=trigger_W ? color.new(#1E90FF, 0) : color.new(#555555, 50))
table.cell(dash, 0, 6, "CMP > 20W DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 6, str.tostring(close, format.price), text_color=color.white, bgcolor=priceCondition_W ? color.new(#32CD32, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 7, "10W > 20W DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 7, str.tostring(dema10W, format.price) + " > " + str.tostring(dema20W, format.price), text_color=color.white, bgcolor=demaCondition_W ? color.new(#FFFF00, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 8, "Daily Vol > 3x50D Avg", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 8, str.tostring(dailyVolW, format.volume) + " / " + str.tostring(avgVol50, format.volume), text_color=color.white, bgcolor=volCondition_W ? color.new(#FF00FF, 0) : color.new(#AAAAAA, 50))
// --- ORIGINAL TRIGGER (rows 10-14) ---
table.cell(dash, 0, 10, "Original Trigger", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 10, trigger_Orig ? "YES ✅" : "NO ❌", text_color=color.white, bgcolor=trigger_Orig ? color.new(#32CD32, 0) : color.new(#555555, 50))
table.cell(dash, 0, 11, "CMP > 10D DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 11, str.tostring(close, format.price), text_color=color.white, bgcolor=priceCondition_O ? color.new(#32CD32, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 12, "10D > 20D DEMA", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 12, str.tostring(dema10O, format.price) + " > " + str.tostring(dema20O, format.price), text_color=color.white, bgcolor=demaCondition_O ? color.new(#FFFF00, 0) : color.new(#AAAAAA, 50))
table.cell(dash, 0, 13, "Daily Vol > 3x20D Avg", text_color=color.white, bgcolor=color.new(#555555, 30))
table.cell(dash, 1, 13, str.tostring(dailyVolO, format.volume) + " / " + str.tostring(avgVolO, format.volume), text_color=color.white, bgcolor=volCondition_O ? color.new(#FF00FF, 0) : color.new(#AAAAAA, 50))
ATR SL 10/10 This indicator draws an ATR-based trailing stop on the main chart and shows two compact labels:
• Stop line = Low − (ATR × Multiplier).
• “Today” label: the current bar’s stop price.
• “5-bar Max” label: the highest stop value over the last N bars (rolling window). Labels auto-separate slightly if they overlap so both remain readable.
ATR selection logic
• On confirmed bars (after close): uses today’s ATR.
• In real-time (bar not confirmed): uses max(today’s ATR, yesterday’s ATR) to avoid under-estimating volatility early in the session.
Inputs
• Length: ATR period.
• Smoothing: RMA/SMA/EMA/WMA for ATR.
• Multiplier: stop distance in ATR units.
• Long Base: price source for the long stop (usually Low).
• Show Price Line: toggle the pink stop line.
• Lookback: window for the rolling 5-bar maximum label.
Notes
• Overlay = true; the line scales with the price chart.
• Prices/labels use mintick formatting for clean alignment.
• Works on any timeframe; ATR is computed from the active chart’s bars with the above real-time safeguard.
Volume Quintile Candle ColorsRecolors the candles based on the quintile of volume in that candle compared to the most recent 100 candles
ATR RS 10/11ATR RS — What it does (English)
• Purpose: A compact risk-sizing helper that plots Daily ATR(10, RMA) in a separate panel and shows a live sizing summary (ATR used, Stop, Per-unit risk, Risk, Size, Bet). Works on any chart timeframe.
• Daily ATR logic (robust intraday handling):
– Before first trade of the session: use yesterday’s daily ATR only.
– During the session (daily candle unconfirmed): use max(today’s daily ATR, yesterday’s daily ATR) to avoid underestimating volatility early in the day.
– After the daily candle closes: use today’s daily ATR.
• Stop rule (long bias):
Stop = Today’s Daily Low − Multiplier × ATR_used
• Position sizing:
Per-unit risk = max(Entry − Stop, 0) × PointValue
Raw size = RiskAmount / Per-unit risk
Final size = floor(Raw size / LotSize) × LotSize
(Optional cap via Max Position Cap; negatives coerced to 0.)
• “Entry” price: current chart close (i.e., real-time last for intraday, or close for historical/confirmed bars).
• Panel fields:
– ATR(10): Daily ATR(10, RMA)
– ATR used: the volatility value selected by the intraday rule above
– Stop: computed stop price (you can snap to tick if desired)
– Per-unit: risk per share/contract = (Entry − Stop) × PointValue
– Risk: user input, account currency
– Size: position size after lot rounding and cap
– Bet: Entry × Size × PointValue
• Inputs:
– ATR Length (Daily RMA), Multiplier (for stop), Risk Amount, Point Value (stocks=1; futures=contract point value), Lot Size, Max Position Cap, Show summary table.
• Notes:
– Uses request.security(“D”, …) with no lookahead, so the same ATR is used consistently regardless of the chart timeframe.
– If your venue has fractional ticks, consider snapping the Stop to tick size so labels and price markers match perfectly.
Larry Williams - Smash Day (SL/TP in %)This strategy implements Larry Williams’ “Smash Day” reversal concept on any symbol and timeframe (daily is the classic). A Smash Day is a bar that closes beyond a recent extreme and then potentially reverses on the next session.