MyMA PrismThis script implements the Binary Logic Trading (BLT) algorithm to calculate a score from 0 to 7. This score is calculated assigning a power of 2 weight to the positive sign of 3 Phi^3 distant Moving Average (MA) slopes. The largest MA slope positive sign receives weight 4, the middle length MA slope positive sign receives weight 2 and the shortest MA slope positive sign receives weight 1. The positive sign of an MA is defined as 1 if the slope of the MA is positive and 0, otherwise. Therefore, for MAs 305, 72 and 17, if slope(MA305) > 0, slope(MA72) < 0 and slope(MA17) > 0, then score will be 4*1 + 2*0 + 1*1 = 5. Up to my knowledge, this score was first proposed by Bo Williams and named by him as Prisma.
The used Moving Averages can be chosen between EMA and MyMA. MyMA is a Moving Average that tries to mimic Bo William's MIMA. Due to the close resemblance between MyMA and MIMA, I do not feel comfortable to open this script source code. In order to learn how this script operates with EMAs, please refer to my Custom EMA Prism indicator that has its source code open.
Due too sampling issues, this script ONLY WORKS with graphic time of 1d. I would like to thanks to MrBitmanBob for showing me how to get quotations from a graphic time distinct from the current one.
This script also gets sampling data from graphic times 2h and 30m to calculate their score. As, even for smaller graphic times, price data is sampled at the current time frequency, the MA lengths for those smaller graphic times needed to be proportionally decreased, meaning that when calculating the score for 1d with lengths 305, 72 and 17, the score for 2h must be calculated with lengths 72, 17 and 4, and the score for 30m must be calculated with lengths 17, 4 an 1. I understand that some precision may be lost but it is the best that is possible.
There is an optional setting for Crypto Currencies that instead of calculating the score for 1d, 2h and 30m, it calculates the score for 1d, 4h and 60m. This is due to the fact that Crypto Currencies are traded 24x7. Despite of this setting, the labels at the Style tab of the settings window remains 2h and 30m, because they must be constants.
This script with the corresponding MyMAs chart and the MyMAs Angle chart provides a broader view of the trading scenario.
חפש סקריפטים עבור "BOS"
MyMA AngleThis script shows the angle of 6 Moving Averages (MAs) to perform trade analysis. The MA angle is also known as its Rate Of Change ( ROC ). The 6 MAs (I, II, III , IV, V and VI ) default lengths come from one of the Fibonacci Phi^3 and Phi^3/2 sub series (17, 34, 72, 144, 305 and 610), but can be changed to any values, particularly to the traditionally used 20, 40, 50, 100, 200 and 300. Up to my knowledge, Fibonacci Phi^3 and Phi^3/2 sub series lengths were first proposed by Bo Williams.
The used Moving Averages can be chosen between EMA and MyMA. MyMA is a Moving Average that tries to mimic Bo William's MIMA. Due to the close resemblance between MyMA and MIMA, I do not feel comfortable to open this script source code. In order to learn how this script operates with EMAs, please refer to my Custom EMA + FIBO indicator that has its source code open.
Angle calculation is performed by calculating the tangent over a delta interval. Normalization is required to make the angle independent of the price range.
This script is meant to be used together with the corresponding MAs on the candle pane. Non normalized view shows a more realistic angle condition but, if intended to be used with the MyMAS indicator, normalized view should be used.
MyMA StrategyThis script combines 3 Moving Averages (MAs) with Bollinger Bands to build a trend based trading strategy. The 3 MAs (I, II and III ) default lengths come from one of the Fibonacci Phi^3/2 sub series (17, 72 and 305), but can be changed to any values, particularly to the traditionally used 20, 50 and 200.
The used Moving Averages can be chosen between EMA and MyMA. MyMA is a Moving Average that tries to mimic Bo William's MIMA. Due to the close resemblance between MyMA and MIMA, I do not feel comfortable to open this script source code. In order to learn how this script operates with EMAs, please refer to my Custom EMA Strategy indicator that has its source code open.
Bollinger Band length is set to the same length as MA I. Up to my knowledge, Fibonacci Phi^3/2 sub series lengths were first proposed by Bo Williams.
Buy Recommendations happen when src (close) > MA I > MA II, MA I angle > 0 degree, MA II angle > -1 degree and MA III angle > -1 degree. My simulations have show that -1 degree usage results in better returns than zero degree.
Top Buy Recommendations happen when, besides Buy recommendation conditions are met, src (close) > HBand, the Bollinger Band High Band.
Sell Recommendations come in 3 flavors: Short Term (close < MA I), Medium Term (close < MA2) and Long Term (MA I < MA II).
Angle calculation is performed by calculating the "normalized" tangent over a delta interval. Normalization is required to make the angle independent of the price range.
Custom EMA + FIBOThis script combines 6 EMAs with 3 Donchian Channel 78.6% and 21.4% intermediary level lines to perform trade analysis. The 6 EMAs (I, II, III , IV, V and VI ) default lengthes come from one of the Fibonacci Phi^3 and Phi^3/2 sub series (17, 34, 72, 144, 305 and 610), but can be changed to any values, particularly to the traditionally used 20, 40, 50, 100, 200 and 300. Up to my knowledge, Fibonacci Phi^3 and Phi^3/2 sub series lengthes were first proposed by Bo Williams.
The 3 Donchian Channels used have default lengthes 72, 305 and 1292, calculated after the first length default value of 72. For each of the 3 Donchian Channels only an upper line, set by default at 78.6%, is plotted in green and its complement, set to 21.4%, is plotted in red. When the closing price is above 3 green lines, we say it is Forbidden to Sell ( PV ), and when the closing price is below 3 red lines, we say it is Forbidden to Buy ( PC ). Those conditions are flagged on the chart. These PV-PC conditions were, up to my knowledge, first proposed by Bo Williams.
PAT [PieTrader]This Pine Script (//@version=6) is an advanced Price Action Toolkit (PAT) – PieTrader, enhanced by the PieTrader community to combine core Smart Money Concepts into one visual framework. It integrates market structure, liquidity sweeps, order blocks, and dynamic trendlines, with customizable settings for flexibility.
Market Structure (Zigzag): The script tracks trend shifts using a configurable zigzag length. Swing highs and lows are recorded, and optional zigzag lines visualise price movement. Structure shifts are highlighted with Change of Character (CHoCH) or Break of Structure (BoS) labels, providing clear signals of directional intent.
Order Blocks: On detecting structure breaks, bullish and bearish order blocks are marked with ATR-based zones. These are drawn as shaded boxes, with user control over how many remain visible. Invalid or broken blocks are automatically removed to keep the chart clean.
Liquidity Sweeps: Pivot highs and lows over a chosen lookback define liquidity levels. These are shown as horizontal lines that switch to dashed style once swept by price. Markers (“x”) identify sweep points, helping traders spot liquidity grabs. To optimise performance, older levels are deleted beyond a fixed storage limit.
Trendlines: Using pivot detection, the system identifies bullish and bearish trendlines. Valid lines with upward or downward slopes are extended in real time, updating dynamically with price. Bullish lines are teal; bearish lines are red.
Additional Features: A watermark option displays “PieTrader” on the chart, and colour themes are fully customizable.
In summary, the PieTrader community’s enhancements make this toolkit a comprehensive visual aid for analysing market structure, liquidity, and trend alignment within a streamlined charting solution.
Daniel SnipeDaniel Snipe Indicator Lets you trade while using BOS and smart money concepts, it reads price action both on the 15m, 30m and all time frames available
SMC Pro (Wellington) v1.4.2This SMC indicator combines BOS/CHoCH, OBs, FVGs, liquidity, and Premium/Discount with confirmation on the 1H (EMA200).
Entries only appear when 3+ confluences align, filtering noise and delivering clear signals.
✅ Ready-to-use alerts (LONG, SHORT, or unified)
✅ Real-time HUD
✅ Strategy tailored for XAUUSD
STOCK SCHOOL | FVGThe Stock School FVG Indicator is designed to help traders identify and trade Fair Value Gaps (FVGs) and Inverse FVGs (IFVGs) with precision.
Built for both intraday and swing traders, this tool highlights high-probability trading zones where institutions leave imbalances in the market.
✨ Key Features:
Auto-detects FVGs & IFVGs in real-time
Works on all timeframes and instruments (Nifty, BankNifty, Stocks, Forex, Crypto)
Non-repainting logic for reliable signals
Clean and easy-to-use interface with Stock School styling
Perfect for Smart Money Concept (SMC) traders
🚀 With this indicator, you can:
Spot institutional footprints quickly
Combine with BOS, CHoCH, Order Blocks for high accuracy
Trade liquidity sweeps + FVG collisions with confidence
💡 Disclaimer:
This indicator is for educational purposes only. Trading involves risk. Always use proper risk management.
Aslan - Signals, Overlays & PA Toolkit [6.4]SIGNALS & OVERLAYS INDICATOR
Next-generation trading signals powered by advanced algorithms, paired with precision overlays for added confidence.
Features:
3 Signal Models: Contrarian, Confirmation & Kernel
6 Asset-Class Specific Signal Filters
Auto Fibonacci Retracements
Dynamic Kernel-Based Support & Resistance
Trend Status Meter (Bar Coloring)
Volatility Bands (Standard Deviation)
PRICE ACTION TOOLKIT
Comprehensive price action analysis designed to highlight key market POIs and institutional levels with clarity.
Features:
Full Multi-Timeframe Functionality
Institutional Volumized Supply & Demand
Market Structure (BOS, MSS, CHoCH, EQL, EQH)
Displacement & Inducement Zones
Fair Value Gaps & Liquidity Mapping
Key Levels & Session Levels
Point of Control & Dealing Ranges
Equilibrium Tracking
Smart Trendlines & Trendline Signals
Aslan - Signals, Overlay & PA Toolkit [6.4]⟪ SIGNALS AND OVERLAYS INDICATOR ⟫
Cutting-edge trading signals driven by advanced algorithms, as well as helpful overlays to give extra confidence.
Three signal models (Contrarian, Confirmation and Kernel)
6 Signal filters each built for a separate asset class
Auto Fibonacci retracement
Dynamic kernel S&R
Trend status meter (Bar color)
Volatility bands (Standard Deviation)
⟪ PRICE ACTION TOOLKIT ⟫
Effectively analyzes complex price action so you don’t miss key market POIs.
FULL Multi timeframe functionality
Institutional Volumised S&D
Market structure (BOS, MSS, CHoCH, EQL, EQH)
Displacement
Inducement zones
Fair value gaps
Liquidity
Key levels
Session levels
Point of control
Dealing range
Equillibrium
Trendlines & Trendline signals
SMC by Falcon TraderInvite-Only Script
Focuses on BOS & CHoCH.
Entries confirmed by 2 consecutive Engulfing candles.
Recommended on 15m+ timeframes.
⚠️ For educational purposes only. Use proper risk management
emavelas StrategyThe "emavelas Strategy" is a TradingView Pine Script (v6) for trend-following trading, combining EMA crossovers (7 and 25 periods) with candlestick patterns, market structure (HH/HL, BOS/CHOCH), volume/RSI filters, and multi-timeframe alignment (5m to Daily). It generates confirmed buy/sell signals, visualizes trends with lines/labels/tables, and includes backtesting with risk management (RR 2:1, dynamic SL/TP based on swings). Ideal for stocks, forex, or crypto on lower timeframes. Customizable via inputs; test in Strategy Tester. Note: Trading involves risks; not financial advice.
RUBY SYSTEM📋 Step 1: Setup & Installation
Add to TradingView:
Copy the entire Pine Script code from the artifact above
Open TradingView → Go to Pine Editor (bottom of screen)
Paste the code and click "Add to Chart"
Boom! Your chart now has institutional-level analysis
Customize Your Settings:
Click the ⚙️ gear icon on the indicator to adjust:
EMA Length: Keep at 9 (optimal for price action)
Stop Loss Method: Choose "Structure" (uses swing highs/lows)
Risk:Reward: TP1 at 1.5R, TP2 at 3R (customize as needed)
Volume Filter: Keep ON (avoids low-conviction moves)
🎯 Step 2: Reading the Visual Signals
What You'll See on Your Chart:
📊 Core Lines:
🟠 Orange Line: VWAP (institutional fair value)
🔵 Blue Line: EMA 9 (trend filter)
📦 Order Flow Boxes:
🟢 Green Boxes: Bullish Order Blocks (banks bought here)
🔴 Red Boxes: Bearish Order Blocks (institutions sold here)
📱 Green/Red FVG Boxes: Fair Value Gaps (price imbalances)
🎯 Entry Signals:
🟢 Green Triangle UP: Long entry signal
🔴 Red Triangle DOWN: Short entry signal
💎 Orange Diamonds: Liquidity sweeps (stop hunts)
⬆️ Lime Arrows: Bullish Break of Structure
⬇️ Purple Arrows: Bearish Break of Structure
📏 Trade Management Lines:
🔴 Red Dashed Line: Stop Loss level
🟢 Green Dashed Line: Take Profit level
🚀 Step 3: How to Trade
🔍 BEFORE Entering Any Trade:
Check the Dashboard (top-right corner):
HTF Trend: Only trade WITH the trend
Volume Surge: Want this to be TRUE
Market Structure: Look for BoS signals
📈 LONG ENTRY Checklist:
✅ Green triangle appears (entry signal)
✅ Price above VWAP (orange line)
✅ Price above EMA (blue line)
✅ HTF Trend shows "Bullish"
✅ Volume Surge = True
✅ Recent Break of Structure UP (↑)
📉 SHORT ENTRY Checklist:
✅ Red triangle appears (entry signal)
✅ Price below VWAP (orange line)
✅ Price below EMA (blue line)
✅ HTF Trend shows "Bearish"
✅ Volume Surge = True
✅ Recent Break of Structure DOWN (↓)
💰 Step 4: Trade Management
🛑 Stop Loss (Red Dashed Line):
Automatically calculated at recent swing high/low
NEVER move your stop against you
Only move to break-even after hitting first target
🎯 Take Profit (Green Dashed Line):
TP1: 1.5 Risk:Reward (take 50% profits)
TP2: 3.0 Risk:Reward (take remaining 50%)
Or hold until price closes opposite side of EMA
🚪 Exit Rules:
LONG: Exit when price closes BELOW EMA (blue line)
SHORT: Exit when price closes ABOVE EMA (blue line)
Or hit your stop loss
🏆 Step 5: Advanced Strategies
🎪 The "Liquidity Sweep" Setup:
Wait for orange diamond (liquidity sweep)
Look for immediate reversal back into structure
Enter when green/red triangle confirms
These are PREMIUM setups - highest win rate
📦 The "Order Block Retest":
Wait for price to hit a green/red box (order block)
Look for rejection from that zone
Enter when triangle signal appears
Institutions often defend these levels
🔄 The "VWAP Retest":
Price breaks VWAP with volume
Comes back to retest VWAP (orange line)
Gets support/resistance at VWAP
Enter on triangle signal confirmation
🚨 Step 6: Risk Management Rules
⚠️ NEVER Trade When:
Volume Surge = False (low conviction)
HTF Trend contradicts your direction
No Break of Structure signal
Market Structure shows "Ranging"
💡 Position Sizing:
Risk 1-2% per trade maximum
Use the stop loss line to calculate position size
Never risk more than you can afford to lose
📊 Best Timeframes:
5M-15M: Scalping (quick in/out)
1H-4H: Swing trading (hold longer)
Daily: Position trading
🎯 Quick Start Checklist:
✅ Add indicator to chart
✅ Wait for green/red triangle signal
✅ Check dashboard shows favorable conditions
✅ Confirm HTF trend alignment
✅ Enter trade at signal
✅ Set stop at red dashed line
✅ Take profits at green dashed line
✅ Exit if price closes opposite side of EMA
🚀 Pro Tips:
Be patient - wait for ALL confirmations
Quality over quantity - fewer high-probability trades win
Practice on paper before going live
Backtest on historical data to build confidence
Set up alerts so you don't miss signals
Yaso- Structural Signals: Buy/Sell (Clean v5)//@version=5
indicator("Structural Signals: Buy/Sell (Clean v5)", overlay=true)
//===================== Inputs =====================
grpCtx = "Context (Structure)"
lenDon = input.int(20, "Donchian Lookback (S/R proxy)", minval=5, group=grpCtx)
ema20On = input.bool(true, "Show EMA 20", group=grpCtx)
ema50On = input.bool(true, "Show EMA 50", group=grpCtx)
ema200On = input.bool(true, "Show EMA 200", group=grpCtx)
grpVol = "Volume Confirmation"
volLen = input.int(20, "Volume SMA Length", minval=2, group=grpVol)
volMult = input.float(1.5, "Volume Spike × SMA", minval=1.0, step=0.1, group=grpVol)
grpCand = "Candlestick Reversal (at Structure)"
useHammer = input.bool(true, "BUY: Hammer/Bottoming Tail near Support", group=grpCand)
useStar = input.bool(true, "SELL: Shooting Star/Topping Tail near Resistance", group=grpCand)
srNearPct = input.float(0.004, "‘Near’ S/R tolerance (0.004=0.4%)", step=0.001, minval=0.0, group=grpCand)
grpBreak = "Breakouts / Breakdowns"
useBO = input.bool(true, "BUY: Breakout above Resistance (Donchian High)", group=grpBreak)
useBD = input.bool(true, "SELL: Breakdown below Support (Donchian Low)", group=grpBreak)
grpPats = "Double Tops / Bottoms (pivots)"
useDB = input.bool(true, "BUY: Double Bottom / Higher Low", group=grpPats)
useDT = input.bool(true, "SELL: Double Top / Lower High", group=grpPats)
pvLeft = input.int(3, "Pivot Left Bars", minval=2, group=grpPats)
pvRight = input.int(3, "Pivot Right Bars", minval=2, group=grpPats)
matchTolPct = input.float(0.0075, "Price Match Tolerance (0.75%)", step=0.0005, minval=0.0, group=grpPats)
grpXover = "Trend Filters (Crosses)"
useGolden = input.bool(true, "BUY: Golden Cross (EMA50 > EMA200)", group=grpXover)
useDeath = input.bool(true, "SELL: Death Cross (EMA50 < EMA200)", group=grpXover)
grpGap = "Gap Fills (Daily preferred)"
useGapUpRev = input.bool(true, "SELL: Gap-Up Fill & Reversal (close < prior close)", group=grpGap)
useGapDnRev = input.bool(true, "BUY: Gap-Down Fill & Reversal (close > prior close)", group=grpGap)
minGapPct = input.float(0.01, "Min Gap % (1% = 0.01)", minval=0.0, step=0.001, group=grpGap)
grpAgg = "Alert Controls"
aggregateAlerts = input.bool(true, "Enable Aggregate BUY/SELL Alerts", group=grpAgg)
//===================== Context =====================
ema20 = ta.ema(close, 20)
ema50 = ta.ema(close, 50)
ema200 = ta.ema(close, 200)
donHi = ta.highest(high, lenDon)
donLo = ta.lowest(low, lenDon)
plot(ema20On ? ema20 : na, "EMA 20", color=color.new(color.teal, 0), linewidth=2)
plot(ema50On ? ema50 : na, "EMA 50", color=color.new(color.orange, 0), linewidth=2)
plot(ema200On ? ema200 : na, "EMA 200", color=color.new(color.blue, 0), linewidth=2)
plot(donHi, "Donchian High", color=color.new(color.red, 40))
plot(donLo, "Donchian Low", color=color.new(color.green,40))
volSMA = ta.sma(volume, volLen)
volSpike = volume > volSMA * volMult
//===================== Helpers =====================
near(val, ref, pct) =>
// true if |val - ref| / ref <= pct (with nz guard)
math.abs(val - ref) / nz(ref, val) <= pct
lowerWick() =>
(open < close ? open : close) - low
upperWick() =>
high - (open > close ? open : close)
bodySize() =>
math.abs(close - open)
isHammer() =>
lw = lowerWick()
uw = upperWick()
bd = bodySize()
lw >= bd * 2 and uw <= bd * 0.6 and close > open
isShootingStar() =>
lw = lowerWick()
uw = upperWick()
bd = bodySize()
uw >= bd * 2 and lw <= bd * 0.6 and close < open
nearSupport = near(low, donLo, srNearPct) or near(low, ema200, srNearPct)
nearResist = near(high, donHi, srNearPct) or near(high, ema200, srNearPct)
//===================== Signals =====================
// Breakouts / Breakdowns
buyBreakout = useBO and ta.crossover(close, donHi ) and (volSpike or close > donHi )
sellBreakdown = useBD and ta.crossunder(close, donLo ) and (volSpike or close < donLo )
// Pivots → Double Bottom / Top
pL = ta.pivotlow(low, pvLeft, pvRight)
pH = ta.pivothigh(high, pvLeft, pvRight)
lastLow = ta.valuewhen(pL, low , 0)
prevLow = ta.valuewhen(pL, low , 1)
lastHigh = ta.valuewhen(pH, high , 0)
prevHigh = ta.valuewhen(pH, high , 1)
priceMatch(a, b, tol) =>
not na(a) and not na(b) and math.abs(a - b) / b <= tol
doubleBottom = useDB and priceMatch(lastLow, prevLow, matchTolPct) and nz(lastLow) > nz(prevLow)
doubleTop = useDT and priceMatch(lastHigh, prevHigh, matchTolPct) and nz(lastHigh) < nz(prevHigh)
// Crosses (trend)
goldenCross = useGolden and ta.crossover(ema50, ema200)
deathCross = useDeath and ta.crossunder(ema50, ema200)
// Gap fill reversals (daily)
isDaily = timeframe.isdaily
gapUp = isDaily and open > close * (1 + minGapPct)
gapDown = isDaily and open < close * (1 - minGapPct)
gapUpFillRev = useGapUpRev and gapUp and high >= close and close < close
gapDnFillRev = useGapDnRev and gapDown and low <= close and close > close
// Candles at structure
hammerAtSupport = useHammer and isHammer() and nearSupport
starAtResist = useStar and isShootingStar() and nearResist
// Aggregate booleans (no arrays, no loops)
anyBuy = hammerAtSupport or buyBreakout or doubleBottom or goldenCross or gapDnFillRev
anySell = starAtResist or sellBreakdown or doubleTop or deathCross or gapUpFillRev
//===================== Plots =====================
plotshape(hammerAtSupport, title="BUY: Hammer @ Support", style=shape.triangleup, color=color.new(color.lime, 0), size=size.tiny, location=location.belowbar, text="Hammer@S")
plotshape(buyBreakout, title="BUY: Breakout", style=shape.triangleup, color=color.new(color.green, 0), size=size.tiny, location=location.belowbar, text="BO")
plotshape(doubleBottom, title="BUY: Double Bottom", style=shape.triangleup, color=color.new(color.teal, 0), size=size.tiny, location=location.belowbar, text="DB")
plotshape(goldenCross, title="BUY: Golden Cross", style=shape.triangleup, color=color.new(color.aqua, 0), size=size.tiny, location=location.belowbar, text="GC")
plotshape(gapDnFillRev, title="BUY: Gap-Down Reversal",style=shape.triangleup, color=color.new(color.fuchsia,0), size=size.tiny, location=location.belowbar, text="GapDnREV")
plotshape(starAtResist, title="SELL: Star @ Resistance",style=shape.triangledown, color=color.new(color.red, 0), size=size.tiny, location=location.abovebar, text="Star@R")
plotshape(sellBreakdown, title="SELL: Breakdown", style=shape.triangledown, color=color.new(color.maroon, 0), size=size.tiny, location=location.abovebar, text="BD")
plotshape(doubleTop, title="SELL: Double Top", style=shape.triangledown, color=color.new(color.orange, 0), size=size.tiny, location=location.abovebar, text="DT")
plotshape(deathCross, title="SELL: Death Cross", style=shape.triangledown, color=color.new(color.purple, 0), size=size.tiny, location=location.abovebar, text="DC")
plotshape(gapUpFillRev, title="SELL: Gap-Up Reversal", style=shape.triangledown, color=color.new(color.yellow, 0), size=size.tiny, location=location.abovebar, text="GapUpREV")
plotshape(aggregateAlerts and anyBuy, title="BUY (Aggregate)", style=shape.labelup, color=color.new(color.green, 70), textcolor=color.black, text="BUY", location=location.belowbar, size=size.tiny)
plotshape(aggregateAlerts and anySell, title="SELL (Aggregate)", style=shape.labeldown, color=color.new(color.red, 70), textcolor=color.black, text="SELL", location=location.abovebar, size=size.tiny)
//===================== Alerts =====================
alertcondition(hammerAtSupport, "BUY: Hammer @ Support", "Hammer/Bottoming Tail at support on {{ticker}} {{interval}}")
alertcondition(buyBreakout, "BUY: Breakout", "Breakout above Donchian High on {{ticker}} {{interval}}")
alertcondition(doubleBottom, "BUY: Double Bottom", "Double Bottom/Higher Low on {{ticker}} {{interval}}")
alertcondition(goldenCross, "BUY: Golden Cross", "EMA50 crosses above EMA200 on {{ticker}} {{interval}}")
alertcondition(gapDnFillRev, "BUY: Gap-Down Reversal","Gap-down filled & reversed on {{ticker}} {{interval}}")
alertcondition(starAtResist, "SELL: Star @ Resistance","Shooting Star/Topping Tail at resistance on {{ticker}} {{interval}}")
alertcondition(sellBreakdown, "SELL: Breakdown", "Breakdown below Donchian Low on {{ticker}} {{interval}}")
alertcondition(doubleTop, "SELL: Double Top", "Double Top/Lower High on {{ticker}} {{interval}}")
alertcondition(deathCross, "SELL: Death Cross", "EMA50 crosses below EMA200 on {{ticker}} {{interval}}")
alertcondition(gapUpFillRev, "SELL: Gap-Up Reversal", "Gap-up filled & reversed on {{ticker}} {{interval}}")
// Aggregate
alertcondition(aggregateAlerts and anyBuy, "BUY: Aggregate", "Structural BUY signal on {{ticker}} {{interval}}")
alertcondition(aggregateAlerts and anySell, "SELL: Aggregate", "Structural SELL signal on {{ticker}} {{interval}}")
B A N K $ - Breaks & SweepsThis indicator automatically maps on Breaks of Structure & Liquidity Sweeps. It works by calculating pivot points based on how many candles are above/below either side of a pivot.
The user can manually set how many candles need to be above/below either side of a pivot if they would prefer to change it.
The indicator will dynamically adjust the lines as the user changes timeframe to allow for seamless analysis.
Features
Break of Structure lines
Liquidity Sweep lines
Dealing Range - this allows the user to visualise the current dealing range
Explanation
A sweep is determined by whether a candle closes through a pivot point with a body closure or not. If the candle wicks this level but fails to close through it, the line will turn red to indicate a liquidity sweep.
If the following 3 candles go on to close through the break line, this will then update it from a red sweep line to the normal break line again. (sometimes the initial candle that touches a level will not close through it but price will continue to break that level in the next few candles).
Muzyorae - Quarterly CyclesQuarterly Theory — NY Session Macro Model
The Quarterly Theory is a time-based framework for analyzing intraday market behavior during the New York session. It divides the session into four sequential quarters (Q1–Q4), each reflecting institutional activity, liquidity accumulation, and directional bias.
Q1 – Accumulation (9:30–10:00 AM): Early positioning, initial liquidity sweeps, and potential early breakouts (AMDX - XAMD patterns).
Q2 – Manipulation/Expansion (10:00–11:30 AM): Main directional move with structure breaks, fair value gaps, and liquidity sweeps.
Q3 – Distribution/Retracement (11:30 AM–1:30 PM): Consolidation, profit-taking, and market chop.
Q4 – Final Expansion/Repricing (1:30–4:00 PM): Trend continuation, reversals, and session high/low formation.
Key Features:
Fractal-based cycles scalable across intraday or multi-day timeframes.
Supports AMDX (Accumulation → Manipulation → Distribution → Expansion) and XAMD reversal sequences.
Highlights early Q1 expansions, Q2 open reference, and critical liquidity zones.
Fully synchronized to NY time and compatible with ICT concepts (SMT, FVGs, OBs, BOS).
Professional visualization with optional labels and vertical markers.
Purpose:
Provides traders a systematic framework to align with institutional flow, anticipate liquidity accumulation, identify optimal entry/exit zones, and structure trades around high-probability intraday cycles.
FVG SuiteSupercharge your charts with FVG Suite! Detect Smart Money structures, Fair Value Gaps, and key Multi-Timeframe levels—all in one powerful indicator. Perfect for both intraday and swing traders.
⚡ Highlights:
📈 Smart Money Structure: BoS & CHoCH signals with customizable colors and sensitivity.
💎 Fair Value Gaps: Bullish & Bearish FVGs with filters, max extension, and automatic cleanup.
🕒 Multi-Timeframe Levels: Daily, Weekly, and Monthly Highs & Lows with solid/dashed/dotted lines.
📊 Volume Activity: Real-time 4H & 24H volume analysis in a neat table.
🎨 Fully Customizable: Colors, transparency, and labels for a clean, easy-to-read chart.
Make smarter trade decisions with clear market structure insights and gap detection! 🚀
Muzyorae - Quarterly TheoryQuarterly Theory — NY Session Macro Model
The Quarterly Theory Model is a structured framework for analyzing intraday market behavior based on institutional activity and macro-level cycles.
It divides the New York trading session into four sequential “quarters” (Q1–Q4), each representing distinct phases of market participation, liquidity accumulation, and directional bias.
This model is designed for professional traders who aim to align their strategies with institutional flows, key liquidity zones, and market structure shifts.
It accommodates both AMDX (Accumulation → Manipulation → Distribution → Expansion) and XAMD (reversal sequences) fractal patterns, allowing traders to adapt to varying market conditions.
Price action may expand early during Q1 in an XAMD sequence, representing an initial breakout or early liquidity sweep before the typical Q2 manipulation phase. Traders should be aware that Q1 can occasionally produce unexpected volatility or directional bias in such sequences.
Session Breakdown (New York Time)
Q1 – Accumulation
Time: 9:30 – 10:00 AM
Phase Characteristics: Early session positioning, initial liquidity sweeps, and false moves. Institutions build positions while retail participants often react to gaps and premarket activity.
Note: Price may expand early in an XAMD sequence, creating a short-term directional move before Q2.
Q2 – Manipulation / Expansion
Time: 10:00 – 11:30 AM
Phase Characteristics: The main directional move develops, often characterized by breaks of structure, fair value gaps, and liquidity sweeps. This is a prime area for trend initiation.
Q3 – Distribution / Retracement
Time: 11:30 AM – 1:30 PM
Phase Characteristics: Price consolidates and retraces into prior accumulation zones, reflecting profit-taking or redistribution by institutions. Market chop and sideways movement are common.
Q4 – Final Expansion / Repricing
Time: 1:30 – 4:00 PM
Phase Characteristics: The afternoon session often produces final liquidity sweeps, trend continuation, or reversals, setting the high or low of the day and completing the daily macro cycle.
Key Features of the Model
Fractal-Based Structure: Q1–Q4 cycles reflect institutional behavior at a macro level, scalable to other intraday or multi-day fractals.
Supports AMDX & XAMD: Allows for both standard accumulation → manipulation → distribution → expansion sequences and reversal patterns depending on market behavior.
Early Expansion in Q1: Recognizes that in XAMD sequences, Q1 may produce early directional moves or breakout activity.
True Open Q2 Line: Highlights the opening price of Q2 as a reference for trend validation and potential entry zones.
Dynamic Time Alignment: Fully synchronized with New York (ET) time zone, ensuring accurate representation of market cycles.
Professional Visualization: Optional labels and vertical markers for each quarter, supporting quick visual analysis and pattern recognition.
Integration with ICT Concepts: Compatible with Smart Money Techniques (SMT), Fair Value Gaps (FVGs), Order Blocks (OBs), and Break of Structure (BOS) for enhanced trade planning.
Purpose and Application
Anticipates areas of liquidity accumulation and manipulation.
Identifies optimal entry and exit zones within institutional cycles.
Structures trades around probable trend initiation and continuation periods.
Aligns retail activity with institutional flow for higher probability setups.
Adapts to market variability through AMDX and XAMD fractal patterns.
Accounts for early expansions or breakout activity during Q1 in XAMD sequences.
By using the Quarterly Theory Model, traders gain a systematic, time-based framework to interpret market structure and maximize alignment with institutional participants.
Third Eye ORB Pro (0915-0930 IST, no-plot)Third Eye ORB Pro (Opening Range Breakout + Range Mode)
This indicator is designed specifically for Indian stocks and indices (NIFTY, BANKNIFTY, FINNIFTY, MIDCAP, etc.) to track the Opening Range (09:15–09:30 IST) and generate actionable intraday trade signals. It combines two key modes — Range Mode (mean reversion inside the opening range) and Breakout Mode (momentum trading beyond the range).
1. Opening Range Framework (09:15–09:30 IST)
The indicator automatically plots the Opening Range High (ORH) and Opening Range Low (ORL) after the first 15 minutes of market open.
The area between ORH and ORL acts as the intraday battlefield where most price action occurs (historically ~70–80% of the day is spent inside this zone).
A shaded box and horizontal lines mark this range, serving as a visual reference for support and resistance throughout the day.
2. Range Mode (Mean Reversion Inside OR)
When price trades inside the Opening Range, the indicator looks for edge rejections to capture range-bound trades.
Range BUY (RB): Triggered near ORL when a bullish rejection candle forms (strong body + long lower wick).
Range SELL (RS): Triggered near ORH when a bearish rejection candle forms (strong body + long upper wick).
Optional filters (toggleable in settings):
RSI Filter: Only allow range buys if RSI is oversold (≤45) and range sells if RSI is overbought (≥55).
VWAP Filter: Only allow range trades if price is not too far from VWAP (distance ≤ X% of OR size).
Labels show suggested Stop Loss (just outside the OR band) and Target (midline/VWAP).
Cooldown logic prevents consecutive whipsaw signals.
3. Breakout Mode (Directional Moves Beyond OR)
When price closes strongly outside the ORH/ORL with momentum, the indicator confirms a breakout/breakdown trade.
Buffers are applied to avoid false breakouts:
ATR Buffer: Price must extend at least ATR × multiplier beyond the range edge.
% Buffer: Price must extend at least a percentage of OR size (default 10%).
Confirmation Filters:
Candle must have a strong body (≥60% of total bar range).
Optional “two closes” rule: price must close outside the range for 2 consecutive candles.
BUY BO: Trigger when price closes above ORH + buffer with momentum.
SELL BD: Trigger when price closes below ORL – buffer with momentum.
Labels and alerts are plotted for quick action.
4. Practical Usage
Works best on 5-minute charts for intraday trading.
Designed to help traders capture both:
Range-bound moves during the day (mean reversion plays).
Strong directional breakouts when institutions push price beyond the opening range.
Particularly effective on expiry days, trending sessions, and major news days when breakouts are more likely.
On sideways days, Range Mode provides reliable scalp opportunities at the OR edges.
5. Features
Auto-plots Opening Range High, Low, Midline.
Box + line visuals (no repainting).
Buy/Sell labels for both Range Mode and Breakout Mode.
Customizable buffers (ATR, % of range) to suit volatility.
Alerts for all signals (breakouts and range plays).
Built with risk management in mind (suggested SL and TP shown on chart).
ICT Unicorn Strategy [RoboQuant]What it detects
Structure: uses pivots (ta.pivothigh/low) to build a mini zigzag (A–B–C–D).
“Unicorn” Pattern:
Bull: bullish direction, C below A (protected swing), with a bullish “BRB” candle at B.
Bear: mirrored version.
FVG: searches for a valid gap between candle i and i+2 inside the BRB candle range and greater than 0.05 × ATR (quality filter).
When an FVG appears, it plots boxes/lines (top/bottom of range, protected swing, FVG box).
How it enters
Bull Trigger: a candle opens inside the FVG and closes above the top of the FVG (mitigation + continuation).
SL = protected swing (firstBl.swing, pivot C).
TP = top + (top - swing) * (reward/risk).
Draws Risk and Reward boxes if showTargets=true.
Bear Trigger: mirror setup (opens inside FVG and closes below bottom).
Management & sizing
Sizing: calculates position size = riskAmount / SL distance, capped by maxPositionSize.
RR configurable with risk and reward (default 1:2).
Trailing optional: adjusts TsL using short pivots (lenS).
Trade closes at SL (break of swing) or TP (target reached).
combine: if false, a bull setup cancels a bear setup (and vice versa). If true, both can coexist.
Key parameters
len: pivot sensitivity (structure).
riskAmount and maxPositionSize: risk control.
trail, lenS: trailing logic.
Box colors/visibility (showTargets, colRisk, colReward).
ICT translation
Seeks impulse → FVG → pullback into FVG → expansion, with a protected swing (implicit BOS/MSS via zigzag) and mitigation of imbalance.
The ATR * 0.05 filter avoids micro-gaps without intent.
How I’d use it (quick checklist)
Mark HTF bias (only take bull or bear setups with the trend).
On LTF, wait for a valid FVG inside the BRB candle.
Enter only if a candle re-enters the FVG and closes breaking its edge.
SL at swing C, TP by RR (default 1:2).
Enable trailing only after 1R is reached (optional, tuned via lenS).
Vietnamese: Swing Low Detection with SMA Bands & BackgroundThis script detects **swing lows** using a dynamic SMA-based logic and visually highlights them on the chart.
Features
Customizable Moving Averages: Supports multiple MA types (SMA, EMA, WMA, RMA, HMA, DEMA, TEMA, VWMA).
Swing Low Visualization: Identifies swing lows when price closes below the SMA of lows and exits once price trades above the SMA of highs.
Smart Rectangles: Marks detected swing lows with labeled boxes for clear visual reference.
Background Highlights**: Dynamically shades the chart background when price breaks below recent swing lows, helping traders spot potential breakdown zones.
Configurable Parameters: Period length, rectangle length, and MA source can all be tuned.
Use Cases
Spot breakdown/bearish continuation signals when price closes under recent lows.
Combine with higher timeframe trend analysis for confluence.
Notes
* This tool is designed for **visual analysis** and is not a standalone buy/sell signal.
* Works best when combined with broader trend analysis, support/resistance levels, and volume.