Pocket Pivot (Kacher/Morales) - Customsdasd//@version=6
indicator("Pocket Pivot (Kacher/Morales) - Custom", overlay=true)
// ─────────────────────────────────────
// SETTINGS
// ─────────────────────────────────────
smaLength = input.int(
10,
title="SMA Length",
minval=1
)
maxOffset = input.float(
4.0,
title="Max % Offset from SMA",
minval=0.1,
step=0.1
)
lookback = input.int(
10,
title="Lookback Period (Trading Days)",
minval=1
)
// ─────────────────────────────────────
// SMA
// ─────────────────────────────────────
smaValue = ta.sma(close, smaLength)
// ─────────────────────────────────────
// BUY / SELL VOLUME
// Approximation:
// Bullish candle = Buy Volume
// Bearish candle = Sell Volume
// ─────────────────────────────────────
buyVolume = close > open ? volume : 0.0
sellVolume = close < open ? volume : 0.0
// ─────────────────────────────────────
// HIGHEST SELL VOLUME
// Previous 10 candles only
// Current candle is NOT included
// ─────────────────────────────────────
highestSellVolume = ta.highest(
sellVolume ,
lookback
)
// ─────────────────────────────────────
// PRICE DISTANCE FROM SMA
// ─────────────────────────────────────
percentOffset = math.abs(
close - smaValue
) / smaValue * 100
// Price is close enough to SMA
priceNearSMA = percentOffset <= maxOffset
// ─────────────────────────────────────
// POCKET PIVOT CONDITION
// ─────────────────────────────────────
volumeCondition = buyVolume > highestSellVolume
pocketPivot = volumeCondition and priceNearSMA
// ─────────────────────────────────────
// PLOT SMA
// ─────────────────────────────────────
plot(
smaValue,
title="SMA",
color=color.teal,
linewidth=2
)
// ─────────────────────────────────────
// MARK POCKET PIVOT
// ─────────────────────────────────────
plotshape(
pocketPivot,
title="Pocket Pivot",
style=shape.labelup,
location=location.belowbar,
color=color.green,
text="PP",
textcolor=color.white,
size=size.small
)
// ─────────────────────────────────────
// ALERT
// ─────────────────────────────────────
alertcondition(
pocketPivot,
title="Pocket Pivot Detected",
message="Pocket Pivot detected on {{ticker}}"
)//@version=6
indicator("Pocket Pivot (Kacher/Morales) - Custom", overlay=true)
// ─────────────────────────────────────
// SETTINGS
// ─────────────────────────────────────
smaLength = input.int(
10,
title="SMA Length",
minval=1
)
maxOffset = input.float(
4.0,
title="Max % Offset from SMA",
minval=0.1,
step=0.1
)
lookback = input.int(
10,
title="Lookback Period (Trading Days)",
minval=1
)
// ─────────────────────────────────────
// SMA
// ─────────────────────────────────────
smaValue = ta.sma(close, smaLength)
// ─────────────────────────────────────
// BUY / SELL VOLUME
// Approximation:
// Bullish candle = Buy Volume
// Bearish candle = Sell Volume
// ─────────────────────────────────────
buyVolume = close > open ? volume : 0.0
sellVolume = close < open ? volume : 0.0
// ─────────────────────────────────────
// HIGHEST SELL VOLUME
// Previous 10 candles only
// Current candle is NOT included
// ─────────────────────────────────────
highestSellVolume = ta.highest(
sellVolume ,
lookback
)
// ─────────────────────────────────────
// PRICE DISTANCE FROM SMA
// ─────────────────────────────────────
percentOffset = math.abs(
close - smaValue
) / smaValue * 100
// Price is close enough to SMA
priceNearSMA = percentOffset <= maxOffset
// ─────────────────────────────────────
// POCKET PIVOT CONDITION
// ─────────────────────────────────────
volumeCondition = buyVolume > highestSellVolume
pocketPivot = volumeCondition and priceNearSMA
// ─────────────────────────────────────
// PLOT SMA
// ─────────────────────────────────────
plot(
smaValue,
title="SMA",
color=color.teal,
linewidth=2
)
// ─────────────────────────────────────
// MARK POCKET PIVOT
// ─────────────────────────────────────
plotshape(
pocketPivot,
title="Pocket Pivot",
style=shape.labelup,
location=location.belowbar,
color=color.green,
text="PP",
textcolor=color.white,
size=size.small
)
// ─────────────────────────────────────
// ALERT
// ─────────────────────────────────────
alertcondition(
pocketPivot,
title="Pocket Pivot Detected",
message="Pocket Pivot detected on {{ticker}}"
) 指標

指標

指標

Institutional Flow Signalswww.tradingview.com
Institutional Flow Signals is an advanced market analysis indicator developed to help traders understand the hidden relationship between institutional order flow, directional volume, trend structure, and market participation. Instead of relying on a single technical indicator or a simple volume histogram, it combines multiple market components into one unified analytical framework that continuously evaluates the balance between buyers and sellers. The objective is to simplify complex institutional activity into an easy-to-read visual format so traders can better understand who currently controls the market and whether that control is strengthening or weakening.
The indicator was created for traders who want more than traditional trend indicators. Standard indicators often react after the market has already moved, while Institutional Flow Signals is designed to continuously monitor the changing relationship between price movement, volatility, market pressure, directional volume, and trend transitions. By combining these elements into one adaptive system, the indicator helps identify the strength behind every move instead of simply showing whether price is moving up or down.
Institutional Flow Signals works by continuously measuring buying pressure and selling pressure as the market develops. Every completed candle contributes new information to the internal calculations. Strong bullish candles supported by increasing participation contribute to positive institutional flow, while aggressive bearish candles contribute to negative institutional flow. As this information accumulates, the indicator builds a live representation of market conviction rather than reacting only to short-term price fluctuations.
The indicator continuously evaluates whether buyers or sellers are currently dominating the market. During strong bullish conditions, positive flow expands while bearish participation weakens. During bearish environments the opposite occurs, allowing traders to quickly recognize which side currently has greater control over market direction. This continuous adaptation makes the indicator suitable for both trending and transitional market conditions.
A major component of the indicator is its trend recognition engine. Rather than relying solely on moving averages or crossover systems, the trend model evaluates multiple market conditions together before confirming a directional shift. This helps reduce unnecessary noise while allowing meaningful trend changes to become visible as they develop. When market conditions change, the indicator automatically adjusts its internal calculations to begin tracking the new directional phase without requiring manual intervention.
The trend boundary displayed on the price chart acts as a dynamic reference area that follows market structure instead of remaining fixed. During bullish environments the adaptive boundary follows below price, highlighting areas where buyers maintain control. During bearish conditions the boundary shifts above price, emphasizing seller dominance. The transparent trend fill between price and the boundary allows traders to visually identify the current market regime with a quick glance.
The lower Institutional Flow panel serves as the primary analytical engine. Positive histogram values represent increasing buying participation while negative values represent increasing selling participation. The size of each histogram bar reflects the intensity of institutional activity rather than simple candle direction. Strong institutional participation produces larger movements within the oscillator, while quiet market conditions naturally compress the readings. This creates an adaptive view of market pressure that continuously reflects changing participation levels.
An additional smoothing component helps traders observe the broader flow trend by reducing short-term fluctuations. This allows the underlying direction of institutional participation to remain visible even during temporary market pullbacks or consolidation periods.
Trend summary labels are generated whenever a completed market phase finishes. These labels summarize important information collected throughout that trend, including cumulative participation, total directional flow, and overall market pressure. Instead of examining every individual candle, traders receive a concise overview of what occurred during the completed market cycle.
The live information label continuously updates with the most recent market statistics. This provides an immediate view of current institutional flow, buying pressure, selling pressure, overall trend condition, and directional strength. Because the information updates on every completed candle, traders always have an accurate snapshot of current market conditions without manually calculating multiple indicators.
Institutional Flow Signals is designed to assist traders throughout the complete decision-making process rather than acting as a simple entry generator. A typical bullish setup begins when buying pressure gradually strengthens, the trend engine confirms bullish control, institutional flow shifts into positive territory, and the adaptive trend boundary supports price movement. As additional bullish participation enters the market, confidence in the prevailing trend increases. The same process applies in reverse for bearish conditions, where strengthening selling pressure, negative institutional flow, and confirmed trend weakness collectively support short-selling opportunities.
The indicator is equally useful for identifying weakening trends. When directional pressure begins fading, cumulative flow loses momentum, or institutional participation decreases, traders receive an early indication that the existing trend may be approaching exhaustion. This allows better management of open positions and helps reduce the tendency to remain in trades after institutional momentum has already begun to decline.
Because all calculations continuously adapt to changing volatility and market participation, Institutional Flow Signals performs across multiple asset classes including Forex, cryptocurrencies, stocks, commodities, futures, indices, and precious metals. The internal calculations automatically adjust to the selected timeframe, making the indicator suitable for scalping, intraday trading, swing trading, and long-term position trading without requiring separate versions for different markets.
The purpose of publishing Institutional Flow Signals is to provide traders with an advanced yet practical analytical tool capable of translating complex institutional market behavior into a clear visual framework. Rather than overwhelming traders with numerous disconnected indicators, it integrates trend analysis, directional volume, cumulative flow, market participation, and adaptive visualization into a single professional workspace that supports more informed trading decisions.
Verification
This indicator is an independently developed Pine Script created exclusively for Michael_Fx_Trader. The complete implementation has been written as an original work and is intended to represent an independent analytical solution based on generally recognized market concepts rather than copied source code. The calculations, structure, organization, variable design, visual presentation, and overall implementation are independently engineered to achieve the intended analytical objectives.
The author identification included within the script represents ownership and authorship only. It does not imply endorsement, certification, verification, partnership, or approval by TradingView or any external organization. Similarity to publicly known trading methodologies reflects common market analysis principles that are widely understood throughout the trading community and should not be interpreted as evidence of copied implementation or reproduced source code.
Clarification
Institutional Flow Signals has been developed for educational, analytical, and research purposes. The indicator is intended to assist traders in evaluating institutional participation, market structure, directional pressure, and trend development by presenting market information in a structured visual format. It does not predict future prices with certainty, does not guarantee profitable trading outcomes, and should not be considered financial or investment advice. Trading financial markets involves significant risk, and every trading decision remains the sole responsibility of the individual trader. Users are encouraged to combine this indicator with sound risk management, proper market analysis, and their own trading methodology before making any investment decisions.
www.tradingview.com 指標

jrhSMCjrhSMCDashboard — Documentation
Smart Money Concepts (SMC/ICT-style) dashboard indicator built from scratch. Implements standard, publicly-documented concepts — market structure (BOS/CHoCH), premium/discount zones, equal highs/lows, liquidity sweeps, multi-timeframe VWAP.
Input Groups
Dashboard
Setting Purpose
Show Dashboard Master on/off for the table
Position Top Right / Top Left / Bottom Right / Bottom Left
Text Size Table text size (independent of on-chart label sizes below)
Market Structure (BOS / CHoCH)
Setting Purpose
Swing Pivot Length Bars on each side required to confirm a swing high/low (ta.pivothigh/ta.pivotlow). Larger = fewer, more significant pivots
Show BOS / CHoCH Labels Toggle the on-chart structure-break labels
Label Text Size Size of CHoCH/BOS labels and pivot dots (Tiny–Huge)
Show Pivot Dots Toggle the aqua/fuchsia dots marking confirmed swing highs/lows
Liquidity (Equal Highs/Lows + Sweeps)
Setting Purpose
Show Equal High/Low Labels Toggle EQH/EQL labels
Tolerance % How close two consecutive pivots must be (as a % of price) to count as "equal"
Label Text Size Size of EQH/EQL and SWEEP labels (Tiny–Huge)
Show Liquidity Sweep Markers Toggle the on-chart SWEEP labels
Premium / Discount / Equilibrium
Setting Purpose
Show Premium/Discount Zones Toggle the purple (premium) / blue (discount) zone boxes
Range Lookback (bars) Rolling window used to define the swing high/low that anchors the zones, Fib levels, and the dashboard's Levels row
Fibonacci Auto-Levels
Setting Purpose
Show Fib Levels Toggle the 5 auto-plotted retracement lines/labels, computed from the same Range Lookback swing
Label Text Size Size of the Fib ratio/price labels (Tiny–Huge)
Multi-Timeframe VWAP
Setting Purpose
Show VWAP Stack in Dashboard Toggle the VWAP (LTF) / VWAP (HTF) rows
Momentum (RSI / CVD Proxy)
Setting Purpose
RSI Length Standard RSI period
On-Chart Elements
Pivot Dots
Aqua dot = confirmed swing high. Fuchsia dot = confirmed swing low. Plotted Swing Pivot Length bars back from the current bar (pivots can only be confirmed in hindsight).
EQH / EQL Labels
Orange labels marking two consecutive pivot highs (EQH) or lows (EQL) within Tolerance % of each other — these represent liquidity pools resting just beyond the level, a common SMC concept for where stop-runs/sweeps are likely to occur.
CHoCH / BOS Labels
• CHoCH (Change of Character): the first break of structure against the prevailing trend — a potential reversal signal
• BOS (Break of Structure): a break continuing the prevailing trend — confirms trend continuation
Direction colors: bullish CHoCH = blue, bullish BOS = teal, bearish CHoCH = purple, bearish BOS = red.
SWEEP Labels
Marks a liquidity sweep: price wicks beyond a prior swing high/low (taking the resting liquidity) but the candle closes back inside — a classic stop-hunt/reversal pattern. Red "SWEEP" above the bar = buy-side liquidity taken (bearish implication). Green "SWEEP" below the bar = sell-side liquidity taken (bullish implication).
Premium / Discount Zone Boxes
Purple box = Premium (upper half of the Range Lookback swing — the "expensive"/sell zone in ICT terms). Blue box = Discount (lower half — the "cheap"/buy zone). Gray dashed line = Equilibrium (midpoint). The box slides with the current bar, always covering the most recent Range Lookback bars.
Fibonacci Levels
Five standard retracement ratios (0.236, 0.382, 0.5, 0.618, 0.786) computed from the same swing range as the Premium/Discount zone, plotted as dotted yellow lines with price labels.
Dashboard Table — Row Reference
Row Meaning
Trend Current market structure bias: Bullish (last break was bullish), Bearish (last break was bearish), or Neutral (no break yet)
Session Approximate UTC-based session window (Tokyo/London/New York) and which session comes next. Approximate — verify against your broker's actual session times
Levels Premium / Equilibrium / Discount price levels from the Range Lookback swing
Indicators RSI (standard) and CVD (approximation — up-candle volume minus down-candle volume; not true tick-level bid/ask delta, since that data isn't available in standard Pine Script)
Structure Flip The exact price level that needs to be closed beyond to flip the current Trend reading, phrased as "close above/below X to flip bull/bear"
VWAP (LTF) Anchored VWAP for 4H, 1D, and 1W periods
VWAP (HTF) Anchored VWAP for 1M, 6M, and 12M periods
Sweep Status Most recent liquidity sweep direction, with a (N bars ago) tag for staleness
Confluence Own 0–5 composite score counting agreement across Trend, RSI (>50/<50), CVD direction, Premium/Discount position, and Sweep direction. Not a replication of any commercial product's proprietary scoring — a simple vote-count of 5 independent factors
指標

指標

Strategia Bystrego - Swing Break + FVG + EMA 200 + Entry AlertsBYSTRY STRATEGY — SWING BREAKOUT, FAIR VALUE GAP AND EMA 200 FILTER
Overview
This strategy is designed specifically for the 2-minute chart and is intended for short-term trading on Nasdaq and Gold.
The system combines:
• Confirmed Swing High and Swing Low levels
• Break of Structure confirmation
• The first Fair Value Gap formed after the breakout
• A 50% Fair Value Gap retracement entry
• EMA 200 trend confirmation
• Previous Day, Previous Week and Asian Session liquidity filters
• Fixed Take Profit and Stop Loss levels
• Entry alerts generated only after the position is actually filled
The strategy does not open a position immediately after a structure breakout. It waits for the first valid Fair Value Gap and places a limit order at the midpoint of that imbalance.
TIMEFRAME
The strategy is designed exclusively for the 2-minute timeframe.
If the script is added to a different timeframe, it will generate an error and will not operate.
SUPPORTED MARKETS
The strategy contains two predefined market configurations:
NASDAQ
• Take Profit: 50 points
• Stop Loss: 50 points
GOLD
• Take Profit: 10 points
• Stop Loss: 10 points
The strategy uses a fixed 1:1 reward-to-risk ratio.
MARKET STRUCTURE
The strategy detects confirmed Swing High and Swing Low levels using pivot calculations.
Default pivot settings:
• Two candles on the left side
• Two candles on the right side
A Swing High or Swing Low becomes valid only after the required number of candles on the right side has closed.
LONG BREAK OF STRUCTURE
A bullish Break of Structure occurs when:
1. A confirmed Swing High exists.
2. The current candle closes above the Swing High.
3. The previous candle closed at or below that Swing High.
4. The strategy is not already in a trade.
5. There is no active pending order.
6. Long positions are enabled.
7. The price is above the EMA 200.
SHORT BREAK OF STRUCTURE
A bearish Break of Structure occurs when:
1. A confirmed Swing Low exists.
2. The current candle closes below the Swing Low.
3. The previous candle closed at or above that Swing Low.
4. The strategy is not already in a trade.
5. There is no active pending order.
6. Short positions are enabled.
7. The price is below the EMA 200.
FAIR VALUE GAP
After a valid Break of Structure, the strategy searches for the first Fair Value Gap.
By default, the Fair Value Gap must appear within three candles after the breakout. This value can be changed in the strategy settings.
Bullish Fair Value Gap:
A bullish Fair Value Gap is detected when the current candle’s low is above the high from two candles earlier.
Bullish FVG condition:
Current Low > High two candles earlier
Bearish Fair Value Gap:
A bearish Fair Value Gap is detected when the current candle’s high is below the low from two candles earlier.
Bearish FVG condition:
Current High < Low two candles earlier
ENTRY PRICE
The entry is placed at the 50% midpoint of the first valid Fair Value Gap.
Bullish entry:
Entry = Bullish FVG midpoint
Bearish entry:
Entry = Bearish FVG midpoint
The strategy uses a limit order. Therefore, the position is opened only when the market retraces back to the calculated entry price.
EMA 200 TREND FILTER
The EMA 200 is used as the main trend filter.
Long positions are allowed only when:
• The breakout candle closes above the EMA 200.
• The Fair Value Gap is formed while the price remains above the EMA 200.
• The planned limit entry is above the EMA 200.
• The market does not lose the EMA 200 while the limit order is pending.
Short positions are allowed only when:
• The breakout candle closes below the EMA 200.
• The Fair Value Gap is formed while the price remains below the EMA 200.
• The planned limit entry is below the EMA 200.
• The market does not move back above the EMA 200 while the limit order is pending.
The purpose of this filter is to prevent positions from being opened against the dominant 2-minute trend.
LIQUIDITY FILTER
Before placing a limit order, the strategy checks whether an important liquidity level is located between the planned entry and the Take Profit.
The following levels are monitored:
• Previous Day High
• Previous Day Low
• Previous Week High
• Previous Week Low
• Asian Session High
• Asian Session Low
A long setup is rejected when one of the following levels is located between the entry and Take Profit:
• Previous Day High
• Previous Week High
• Asian Session High
A short setup is rejected when one of the following levels is located between the entry and Take Profit:
• Previous Day Low
• Previous Week Low
• Asian Session Low
The purpose of this filter is to avoid entering directly into a nearby liquidity level that could stop or reverse the price before the target is reached.
PENDING ORDER CANCELLATION
A pending limit order can be cancelled when:
• The order has not been filled within the selected number of candles.
• The EMA 200 trend condition is no longer valid.
• A new liquidity level blocks the path to the target.
• The price reaches the theoretical Take Profit before retracing to the entry.
• The planned entry moves to the wrong side of the EMA 200.
The default pending order lifetime is 30 candles.
POSITION MANAGEMENT
The strategy allows only one active position at a time.
Pyramiding is disabled.
After the entry is filled, the strategy automatically places:
• A fixed Take Profit order
• A fixed Stop Loss order
The Take Profit and Stop Loss are calculated from the actual average position entry price.
ENTRY ALERTS
Alerts are generated only after the position is actually opened.
The strategy does not send an entry alert when:
• A Swing High or Swing Low appears.
• A Break of Structure appears.
• A Fair Value Gap appears.
• A pending limit order is created.
The alert is sent only when the limit order is filled and the strategy position changes from zero to either long or short.
The alert message includes:
• Direction
• Symbol
• Timeframe
• Entry price
• Take Profit
• Stop Loss
• EMA 200 filter confirmation
VISUAL ELEMENTS
The strategy can display:
• Confirmed Swing High levels
• Confirmed Swing Low levels
• EMA 200
• Previous Day High and Low
• Previous Week High and Low
• Asian Session High and Low
• Fair Value Gap area
• Profit area
• Risk area
• Entry level
• Take Profit level
• Stop Loss level
• Break of Structure markers
• Diagnostic rejection markers
IMPORTANT LIMITATIONS
This strategy does not predict future market direction.
The EMA 200 is a trend filter, but it does not eliminate false breakouts or losing positions.
The system may perform poorly during:
• Low-volume consolidation
• Rapidly changing market conditions
• Major economic announcements
• Whipsaw conditions around the EMA 200
• Sessions with limited liquidity
• Markets with unusually high volatility
Historical results do not guarantee future performance.
Real trading results may differ from backtest results because of commissions, spread, slippage, latency and differences between simulated and real order execution.
This strategy is provided for educational and research purposes only. It does not constitute financial or investment advice. 策略

指標

指標

jrhMultORB+CLjrhMultORB_Checklist — Documentation
Non-destructive fork of the real jrhMultORB indicator. Every original input, calculation, marker, and alert is untouched — this version adds one new group ("Execution Checklist") and a second table wired directly to jrhMultORB's actual internal state, so the checklist can never disagree with the chart markers the way a separate/standalone recreation could.
What's New vs. the Original jrhMultORB
Only one new input group was added:
Setting What it controls
Show Checklist Table Master on/off for the new table
Position Where it renders (Top Right / Top Left / Bottom Right / Bottom Left)
Text Size Tiny / Small / Normal / Large
Everything else — Opening Range, Custom Range, Breakout Signals, Targets, Bull/Bear Target levels, Session Moving Average, Trend & Momentum, the original Info Table, and Style — is 100% identical to your source file.
Execution Checklist Table — Row Reference
OR Levels
Locked Opening Range high–low (orh–orl) once the OR session ends. Shows "forming..." while still building.
Day Bias / ADX
Same two readouts as your original Info Table:
• Bullish / Bearish / Neutral — day_dir, comparing this session's OR midpoint to the previous session's
• ADX value — same adxVal as the ADX row in your Info Table
Breakout Up / Breakout Down
Reflects upSignalUsed / downSignalUsed directly — "Fired this session" or "Not yet".
Retest (Up) / Retest (Down)
The core entry-decision row, reading waitRetestUp/waitRetestDown, retest_up/retest_down, and rtUpOutcome/rtDownOutcome directly from the real script:
Status Meaning Action
Not yet (from Breakout row) No breakout Wait
Armed - awaiting retest of ORH/ORL Breakout fired, watching for the retest touch Wait
RTC - continuation confirmed Retest candle closed back through the level Entry signal in the breakout direction
RTF - retest failed Retest candle closed back inside the range Don't enter continuation; watch the opposite Rev/Fade row
Retest window expired (stale) No touch within your Max Bars to Wait Void
Includes (N bars ago), computed from waitRetestUpBar/waitRetestDownBar — the actual bar index your real script arms the retest watch on. This tells you whether an RTC/RTF is live or historical context.
Rev/Fade (after Up-fail) / (after Dn-fail)
Only activates after the matching Retest shows RTF. Reads waitRevFadeLong/waitRevFadeShort and revLong/fadeLong/revShort/fadeShort directly:
Status Meaning
— Not armed
Armed - watching ORL/ORH for reversal/fade Watching the opposite level after an RTF
REV - reversed through ORL/ORH, fresh short/long Opposite level closed through — new opportunity in the new direction
FADE - rejected at ORL/ORH, range holding Opposite level touched but rejected — range is holding
Also includes (N bars ago), from waitRevFadeLongBar/waitRevFadeShortBar.
Signal vs Bias Check
Compares a confirmed RTC direction against day_dir (the same Day Bias shown two rows up — not a separate ADX-based proxy):
Display Meaning
No conflict No confirmed RTC yet, or it agrees with Day Bias
⚠ Confirmed LONG vs Bearish Day Bias RTC long confirmed while Day Bias reads Bearish
⚠ Confirmed SHORT vs Bullish Day Bias RTC short confirmed while Day Bias reads Bullish
A caution flag, not a stop signal — it's a cue to size down, tighten stops, or be skeptical of extended targets, not an automatic skip.
Important Usage Notes
• Retest/Rev-Fade rows are historical snapshots. They hold whatever text they last resolved to until the next OR session resets them — always check the (N bars ago) tag before treating a status as a live signal.
• Day Bias / ADX recalculates live, so it can visibly diverge from an older Retest status as the session progresses.
• All checklist state resets automatically at the start of each new OR session (or_start), same as your original script's own state.
• This checklist reads your actual script's internal variables — it cannot disagree with the breakout/retest/REV/FADE markers drawn on the chart, since both come from the same calculation.
• Still no automatic stop/target/position-size calc — pair with your own risk rules, same as before.
指標

指標

指標

指標

指標

指標

指標

指標

Combined Market Breadth Table Overview
Combined Market Breadth Table is an overlay indicator that brings key market breadth data directly onto your chart in a clean, compact visual display. It tracks the percentage of stocks trading above major moving averages across two of the most heavily watched benchmarks: the Nasdaq 100 (NDX) and the S&P 500 (SPX).
Instead of clogging your screen with multiple lower-pane indicators, this script compiles short-term, medium-term, and long-term breadth metrics into a single table anchored to the top-right corner of your chart.
Key Features
Multi-Timeframe Moving Average Tracking: Displays the percentage of stocks trading above their 200-day, 50-day, 20-day, and 5-day moving averages simultaneously.
Dual-Index Comparison: Tracks both the Nasdaq 100 (NDX) and S&P 500 (SPX) side-by-side to easily spot divergence between tech heavyweights and the broader market.
Color-Coded Rows: Each moving average timeframe uses a distinct, color-coded text palette for quick scanning:
🟡 200-Day (Yellow): Macro / long-term structural trend.
🔵 50-Day (Blue): Intermediate trend.
🟢 20-Day (Green): Short-term trend.
🟠 5-Day (Orange): Ultra-short-term / momentum pulse.
Non-Intrusive Design: Renders only on the latest bar inside a dark, framed table box in the top-right corner, leaving your price action uncluttered.
指標

Sprung Ladder Signals v1//@version=6
indicator("Sprung Ladder Signals v1", "SLS", overlay=true)
// ---------- Inputs (set from the gear icon, no code edits needed) ----------
shelf = input.float(0.0, "Sprung Ladder shelf level (0 = off)")
springWindow = input.int(3, "Spring reclaim window (bars)", minval=1)
lvl1 = input.float(0.0, "Alert level 1 (0 = off)")
lvl2 = input.float(0.0, "Alert level 2 (0 = off)")
hlLen = input.int(2, "Higher-low pivot strength", minval=1)
hiLen = input.int(20, "Session-high lookback (bars)", minval=5)
// ---------- Webhook payload helper ----------
f_fire(ev) =>
alert('{"event":"' + ev + '","symbol":"' + syminfo.ticker + '","tf":"' + timeframe.period + '","price":' + str.tostring(close) + ',"t":' + str.tostring(timenow) + '}', alert.freq_once_per_bar_close)
// ---------- SWEEP: pokes below a defended shelf, closes back above ----------
sweep = shelf > 0 and low < shelf and close > shelf
var float sweepHigh = na
var int sweepBar = na
if sweep
sweepHigh := high
sweepBar := bar_index
// ---------- ta.* calls hoisted to globals so they run every bar (fixes CW10002) ----------
crossSweepHigh = ta.crossover(close, sweepHigh)
pl = ta.pivotlow(low, hlLen, hlLen)
recentHigh = ta.highest(high, hiLen)
crossRecent = ta.crossover(close, recentHigh)
crossLvl1 = ta.cross(close, lvl1)
crossLvl2 = ta.cross(close, lvl2)
// ---------- SPRING: reclaim of the sweep bar's high within the window ----------
spring = not na(sweepBar) and (bar_index - sweepBar) <= springWindow and crossSweepHigh
if spring
sweepBar := na
// ---------- HL_RECLAIM: shallow pullback holds above prior pivot low, breaks recent high ----------
var float lastPivotLow = na
if not na(pl)
lastPivotLow := pl
hlReclaim = not na(lastPivotLow) and low > lastPivotLow and crossRecent
// ---------- Visuals ----------
plotshape(sweep, "SWEEP", shape.triangleup, location.belowbar, color.orange, size=size.small)
plotshape(spring, "SPRING", shape.labelup, location.belowbar, color.green, size=size.small)
plotshape(hlReclaim, "HL_RECLAIM", shape.diamond, location.belowbar, color.aqua, size=size.tiny)
plot(shelf > 0 ? shelf : na, "Shelf", color.new(color.yellow, 30), 2, plot.style_linebr)
// ---------- Fire webhooks (one TV alert: 'Any alert() function call') ----------
if sweep
f_fire("SWEEP")
if spring
f_fire("SPRING")
if hlReclaim
f_fire("HL_RECLAIM")
if lvl1 > 0 and crossLvl1
f_fire("LEVEL1_HIT")
if lvl2 > 0 and crossLvl2
f_fire("LEVEL2_HIT") 指標

指標

MACD PRO + Filtro + Genesis//@version=6
indicator("MACD PRO + Filtro + Delay", overlay=true)
// ======================
// 🔧 INPUTS
// ======================
source = close
fastLen = input.int(12, "Fast")
slowLen = input.int(26, "Slow")
signalLen = input.int(9, "Signal")
delay = input.int(1, "Delay (velas após cruzamento)", minval=0, maxval=5)
emaFilterLen = input.int(100, "EMA Tendência")
// ======================
// 📊 MACD
// ======================
= ta.macd(source, fastLen, slowLen, signalLen)
// ======================
// 📈 FILTRO DE TENDÊNCIA
// ======================
ema = ta.ema(close, emaFilterLen)
trendBuy = close > ema
trendSell = close < ema
// ======================
// 🔀 CRUZAMENTOS
// ======================
buyCross = ta.crossover(macd, signal)
sellCross = ta.crossunder(macd, signal)
// ======================
// ⏱️ DELAY (controle de vela)
// ======================
buySignal = buyCross
sellSignal = sellCross
// ======================
// ✅ CONFIRMAÇÃO DE CANDLE
// ======================
candleBuy = close > open
candleSell = close < open
// ======================
// 🎯 SINAL FINAL (FILTROS)
// ======================
finalBuy = buySignal and trendBuy and candleBuy
finalSell = sellSignal and trendSell and candleSell
// ======================
// 📍 PLOTAGEM
// ======================
plotshape(finalBuy,
title="Compra",
style=shape.triangleup,
location=location.belowbar,
color=color.lime,
size=size.small,
text="BUY")
plotshape(finalSell,
title="Venda",
style=shape.triangledown,
location=location.abovebar,
color=color.red,
size=size.small,
text="SELL")
// ======================
// 📉 EMA NO GRÁFICO
// ======================
plot(ema, "EMA 200", color=color.orange)
// ======================
// 🔔 ALERTAS
// ======================
alertcondition(finalBuy, "Compra", "Sinal de COMPRA confirmado")
alertcondition(finalSell, "Venda", "Sinal de VENDA confirmado" 指標

指標

指標
