Indicator

Price to Sales Ratio [Gabremoku]Price to Sales Ratio is a valuation indicator designed to help investors analyze how expensive or cheap a stock is relative to its revenue.
The script calculates the P/S ratio using market capitalization divided by total trailing-twelve-month revenue, then enriches that raw valuation with historical averages, rolling Z-score, percentile ranking, 52-week extremes, and sector benchmark comparison. The price-to-sales ratio is commonly used as a revenue multiple, especially for companies where earnings may be weak, negative, or highly variable.
This makes the indicator useful for growth stocks, cyclical companies, and early-stage businesses where price-to-earnings can be less informative than revenue-based valuation.
What it shows
📊 Current P/S Ratio — the live valuation multiple based on:
current stock price
total shares outstanding
trailing-twelve-month revenue
📈 Historical Average — choose between:
Cumulative Average for the full available history
Rolling Average based on a user-defined lookback in years
🧮 Z-Score Mode — switch from raw P/S to a statistical valuation view that shows how far the current ratio is from its rolling average in standard deviations.
📍 Historical Percentile — shows where the current P/S sits within its historical range over the selected lookback.
📅 52-Week High / Low — provides a fast valuation range reference for the last trading year.
🏭 Sector Benchmark — compare the company’s P/S ratio against a benchmark using:
Auto-detected sector
Sector index
Manual sector value
Why P/S matters
The P/S ratio tells you how much investors are paying for each dollar of company revenue. A lower P/S ratio is often considered more attractive when comparing similar companies in the same industry, but sector differences matter a lot.
That last part is important: P/S should not be judged in isolation. Technology companies often trade at much higher revenue multiples than energy, materials, or consumer businesses, so comparing a stock only against a generic threshold can be misleading. Sector-relative comparison is generally more meaningful than absolute comparison.
Benchmark logic
This indicator includes one of its strongest features: sector context.
It can automatically estimate a sector benchmark through:
exact ticker lookup
keyword-based sector detection
manual fallback sector selection
That matters because P/S multiples vary materially by industry, and valuation comparison is most useful when done against companies or sectors with similar economic characteristics.
The script then colors the main P/S line with a practical valuation model:
🟢 Green — P/S below benchmark, potentially undervalued relative to sector
🟠 Orange — P/S above benchmark but below historical average, more neutral / fair-value zone
🔴 Red — P/S above historical average, potentially expensive relative to its own history
Features
✅ Live Price-to-Sales ratio calculation
✅ Uses total shares outstanding and TTM revenue
✅ Cumulative or rolling historical average
✅ Z-score mode for statistical valuation
✅ Historical percentile ranking
✅ 52-week valuation high/low
✅ Sector benchmark comparison
✅ Auto sector detection with hybrid logic
✅ Manual and sector-index benchmark options
✅ Dynamic color coding based on valuation regime
✅ Ultra-smooth gradient fill between current P/S and benchmark
✅ Dashboard with key statistics
✅ Last-value chart label
How to use
A practical way to read the script is:
🔎 Start with the current P/S ratio.
📊 Compare it with the sector benchmark to see whether the stock trades richer or cheaper than its industry.
🧮 Check the Z-score to understand whether the current valuation is stretched versus its own historical behavior.
📍 Use the percentile to see where today’s valuation sits within the selected lookback window.
This approach combines absolute valuation, relative valuation, and historical context in one screen, which is much more useful than reading the raw P/S ratio alone.
Operational suggestion
💡 Suggested workflow
🟢 Value watchlist setup: look for stocks with current P/S below sector benchmark and below their own historical average. A lower P/S relative to peers can indicate more attractive valuation, provided the business quality is not deteriorating.
🟠 Neutral zone: if the stock is above benchmark but still below or near its historical average, it may be in a fairer valuation zone rather than clearly cheap or expensive.
🔴 Stretch zone: if the stock is trading with a high Z-score, high percentile, and above both benchmark and average, it may be priced aggressively relative to its own history and sector context.
📈 Best use case: this indicator is especially useful for companies with unstable earnings, where P/E may be less reliable and revenue multiples can provide a cleaner valuation anchor.
A strong practical rule:
use P/S for initial screening
use sector benchmark for context
use Z-score and percentile for timing
then confirm with margins, growth, debt, and cash flow
Because revenue alone does not tell you whether that revenue is profitable.
Notes
This indicator is best suited for relative valuation analysis, not for making a final investment decision on its own. A low P/S ratio can reflect undervaluation, but it can also reflect weak margins, declining sales quality, or poor business outlook, so it should always be paired with profitability and growth analysis.
Author: Gabremoku Indicator

Indicator

Indicator

Bitcoin Compressing Power Law ChannelBitcoin Compressing Power Law Channel
Most Bitcoin power-law channels draw bands of a fixed width around a long-term trendline. This one is different: the channel width is not constant. It starts wide and compresses exponentially as Bitcoin matures, modeling the idea that long-term volatility around the trend tends to shrink over time. That decaying width is the core idea of this indicator.
Why a compressing channel
A standard power-law channel assumes the spread between its upper and lower bounds stays the same across Bitcoin's entire history. In practice, an asset's relative volatility tends to fall as it grows larger and more liquid. This indicator captures that by letting the channel narrow over time toward a configurable floor, so the bounds reflect a maturing market rather than a permanently fixed range.
How it works
The model assumes log(price) scales linearly with log(days since the genesis block), producing a fair-value trendline: logFair = intercept + slope * log10(days). A lower bound is offset below that line, and the upper bound is placed above the lower bound at a distance set by the channel width.
The width itself is the original part: width = minWidth + startWidth * exp(-decaySpeed * yearsSinceGenesis). Early in Bitcoin's history the exponential term is large and the channel is wide. As years pass, that term shrinks toward zero and the width converges to a minimum floor (minWidth). The result is a channel whose envelope tightens over time instead of staying fixed.
What it plots
Three lines in price space (upper, middle, lower) with a shaded fill between the upper and lower bounds. Optionally, a 200 SMA of the current timeframe and a 200 SMA from the weekly timeframe, each toggleable. The weekly SMA is requested from a higher timeframe with lookahead disabled, so it does not repaint using future data. A normalized "Decay Channel Oscillator" is exposed in the Data Window, showing where the current close sits within the channel on a 0 to 1 scale (0 = lower bound, 1 = upper bound).
Inputs
Every model parameter is adjustable: the genesis date, the power-law intercept and slope, the lower offset, the initial and minimum channel widths, and the decay speed that controls how fast the channel compresses. Colors for each line, the fill, and both SMAs are configurable.
How to use it
Apply it to a Bitcoin chart on a longer timeframe such as Daily or Weekly, where a power-law model is most meaningful. The middle line is the model's central estimate; the upper and lower lines describe the expected long-term range, narrowing as time goes on. The Data Window oscillator lets you read how stretched price is within the channel numerically.
Parameters and calibration
The default intercept and slope are starting values that approximate Bitcoin's historical power-law fit. They are not fixed truths. You should re-evaluate them and adjust them, along with the offset, widths, and decay speed, to suit your own analysis and the data range you are studying. Different calibrations will move the channel and change how aggressively it compresses.
Limitations and cautions
This is a model, not a prediction. The power-law relationship is an empirical observation that may break down at any time, and the decay parameters are assumptions, not facts. The compressing width is a hypothesis about volatility maturing over time; it may not hold. This indicator is built for Bitcoin and is not intended for other assets. Nothing here forecasts future prices, and the past behavior of the channel does not guarantee anything about how price will behave going forward.
The code is open-source under the Mozilla Public License 2.0. You are welcome to study it and build on it. Indicator

FX Position Size Calculator: Risk-Based Lot SizingEvery blown forex account has the same root cause: position size was too big for the stop loss. This indicator fixes that in one drag.
HOW IT WORKS
1. Set your account balance, account currency, and risk % (default 1%)
2. Click on the chart to drop the Entry line, then drag it to your planned entry
3. Click again to drop the Stop Loss line, drag it to your planned stop
4. (Optional) Add a Take Profit line for instant Reward:Risk
The info table updates live with:
• Lot Size (the headline number)
• Units and Micro Lots
• Stop distance in pips
• Risk in your account currency
• Reward:Risk ratio and potential reward
ACCOUNT CURRENCY CONVERSION
Supports USD, EUR, GBP, AUD, CAD, JPY, and CHF accounts. The indicator pulls the live cross rate from your broker so pip value is always converted correctly, no manual maths, no spreadsheet, no copy-paste between tabs.
COVERAGE
Forex majors and minors (any pair where the quote currency is one of the seven majors above). Indices, metals, and crypto are not supported, a warning shows if you load it on a non FX symbol.
WHY THIS EXISTS
Most "position size calculators" on PulseWire require you to type the stop in pips. That's the slow part, you have to switch to a measuring tool, count, switch back, type. This one reads the stop straight off the chart, so a full risk, managed setup takes about three seconds.
The web version at fxsizecalc.com adds prop firm presets (FTMO, MyForexFunds, FundedNext, etc.) that respect each firm's daily and overall drawdown rules, handy if you're trading a funded account and one bad sizing decision ends the challenge.
OPEN SOURCE & FREE
The source is fully open, fork it, modify it, build on it. If you want a feature added, drop a comment.
Trade safe. Indicator

Strategy

Automatic Support & Resistance1. Overview
This is an automatic Support and Resistance (S/R) level detector for PulseWire. It identifies significant price pivots (peaks and troughs) based on user-defined settings and plots up to 8 dynamic levels on your chart.
The script is intended for educational and informational purposes to demonstrate automatic S/R detection using pivot points and to help traders identify potential areas of interest.
2. Key Logic & Features
A. Pivot Detection
The script detects price pivots (local highs and lows) using ta.pivothigh() and ta.pivotlow().
Two detection speeds:
Regular Pivots: Use the Right Bars setting to define the confirmation period.
Quick Pivots: Use the Quick Right setting for more sensitive, faster-moving levels.
Source Selection: Choose between using Close price or High/Low values for detection.
B. Level Hierarchy
The script plots eight levels, organized as:
Resistance Levels (Red/Green): Levels 1, 3, 5, 7 (top 4 lines).
Support Levels (Red/Green): Levels 2, 4, 6, 8 (bottom 4 lines).
C. Visual Customization (NEW)
Line Styles: Independently set the style for Resistance and Support lines:
Solid (default for both)
Dotted (uses plot.style_circles)
Dashed (uses plot.style_stepline)
Color Logic: Each level dynamically changes color:
Green: Current close price is above the level (bullish context).
Red: Current close price is below the level (bearish context).
D. Additional Features
show_last=1: Only the most recent segment of each level is shown, keeping the chart clean.
trackprice=true: Extends the line horizontally to the right edge of the chart for easy reference.
3. User Inputs (Customization)
Input Description Default
Left Bars Number of bars to the left of a pivot. 50
Right Bars Number of bars to the right of a pivot (confirmation). 25
Quick Right Faster confirmation period for quick pivots. 5
Source Use Close or High/Low for pivot detection. Close
Resistance Line Style Style for top (resistance) levels. Solid
Support Line Style Style for bottom (support) levels. Solid
4. How to Use
Add the script to any chart.
Adjust Pivot Sensitivity:
Increase Left Bars and Right Bars for longer-term, stronger S/R levels.
Decrease them for more, shorter-term levels.
Use Quick Right to add a more sensitive, faster-responding layer.
Interpret the Levels:
Resistance (top lines): Price may face selling pressure when approaching these levels from below.
Support (bottom lines): Price may find buying pressure when approaching these levels from above.
Green level: Price is currently trading above that level (potentially acting as support).
Red level: Price is currently trading below that level (potentially acting as resistance).
Combine with other tools: Use this as one component of a complete trading strategy, alongside trend indicators, candlestick patterns, or volume analysis.
5. Compliance & Transparency
No Financial Advice: This script is strictly for educational and informational purposes. It does not provide financial advice, trading recommendations, or guaranteed results. All trading decisions are your own responsibility.
Original Work: The code is the original work of the author, based on standard Pine Script pivot functions (ta.pivothigh, ta.pivotlow). It is published under the Mozilla Public License 2.0.
No Guarantee: The accuracy, reliability, or profitability of the detected S/R levels is not guaranteed. Different market conditions may require different parameter adjustments.
6. Technical Notes & Limitations
Version: Converted to Pine Script v6 for optimal performance and future compatibility.
Repainting: Pivot-based levels are non-repainting by nature (ta.pivothigh/low only confirms after the right bars have passed). However, the dynamic coloring reacts to each new bar's close.
Performance: The script is lightweight and runs efficiently on most charts.
7. Credits & Open Source
This script is published under the Mozilla Public License 2.0. You are free to use, modify, and share this code for non-commercial purposes, provided you retain the original license and attribution. No private keys, external dependencies, or hidden functions are included. Indicator

Indicator

Indicator

Order Block Mitigation Profiler [forexobroker]Order Block Mitigation Profiler locates institutional order blocks and tracks each one through a full lifecycle: OPEN (untouched), TOUCHED (price traded back in), and MITIGATED (price closed through). The unique angle is the dual-layer engine: instead of only firing the rare classic one-shot retest, a fresh block arms a persistent directional bias and entries are timed by an EMA reclaim inside that bias, keeping signal cadence usable on live charts.
🔶 ALGORITHM
1. Confirm swing structure with symmetric pivots (ta.pivothigh / ta.pivotlow), tracking the most recent confirmed swing high and low.
2. Detect a Break of Structure (BOS): close crosses the last confirmed swing pivot (close > lastPH while prior close was at or below it, mirrored for bearish).
3. Walk back up to OB Search Lookback bars from the BOS to find the last opposing-direction candle; that candle's high/low defines the order block.
4. Validate displacement: the impulse leg from the block must span at least Min Impulse x ATR, filtering out non-institutional moves.
5. Lifecycle state machine per block: state 1 (OPEN), 2 (TOUCHED on first retest), 3 (MITIGATED when the mitigation reference closes/wicks through).
6. Persistent bias: a freshly formed OB sets bias +1 / -1; the bias clears only when that block is mitigated.
7. Entry timing: within an active bias, an EMA reclaim (ta.crossover / ta.crossunder of close vs the Entry Reclaim EMA) fires the trade. Retest-Only Mode swaps this for the strict first-retest event.
🔶 SIGNAL LOGIC
- Buy: bullish bias active (fresh bull OB, not yet mitigated) and close crosses over the Entry Reclaim EMA (or, in Retest-Only Mode, the first bull OB retest), in session, with position not already long, after the cooldown window has elapsed, and only on barstate.isconfirmed; a position-lock state flips to LONG to prevent stacking.
- Sell: bearish bias active (fresh bear OB, not yet mitigated) and close crosses under the Entry Reclaim EMA (or the first bear OB retest), in session, position not already short, cooldown elapsed, on barstate.isconfirmed; position-lock flips to SHORT.
Only fires when a fresh, unmitigated order block has set directional bias.
🔶 INPUTS
- Structure: pivot length for swing confirmation (default 8), OB search lookback, and ATR length.
- Impulse filter: minimum impulse measured in ATR multiples to qualify a block (default 1.0x ATR).
- Mitigation rule: mitigate on close versus wick-through toggle (default close).
- Signal Logic: Entry Reclaim EMA length (default 9) and Retest-Only Mode toggle (default off = regime + EMA reclaim).
- Cooldown: minimum bars between signals (default 5).
- Filters: optional session restriction with a session window, and one-signal-per-block lock (default on).
- Visual: OB zone boxes, dashboard, 3-layer glow, buy/sell colors, and dashboard background.
🔶 ALERTS
OBM Buy, OBM Sell, OBM Any Signal, OBM Bull BOS, OBM Bear BOS, OBM Bull OB Formed, OBM Bear OB Formed, OBM Bull Mitigated, OBM Bear Mitigated, OBM Bull Retest, OBM Bear Retest, OBM Structure Break, OBM Webhook JSON.
🔶 LIMITATIONS
- Requires warm-up: pivots only confirm after Pivot Length bars on each side, so early chart history produces no structure.
- Defaults (ATR 14, impulse 1.0x) are tuned for liquid instruments; thin or low-volatility symbols may need a lower impulse multiple.
- Retest-Only Mode is intentionally rare and can go long stretches with no signal; the default regime + EMA reclaim mode trades more frequently.
- Non-repainting by design (pivots confirmed, signals on bar close), which means the swing that anchors a block appears Pivot Length bars after it actually formed.
- Order blocks are structural zones, not guaranteed reversals; the impulse and ATR filters reduce but do not eliminate false breaks.
Indicator

MTF Structure Vote [forexobroker]MTF Structure Vote polls three independent higher timeframes and lets each one cast a directional vote based on where price sits relative to its own structural trend EMA. When enough timeframes agree, a confluence regime is declared, and a precise local EMA reclaim then times the entry. The unique angle is treating multi-timeframe alignment as a discrete vote count rather than a single blended bias, which makes chop filtering explicit and tunable.
🔶 ALGORITHM
1. Three higher timeframes (default 60, 240, D) are read via request.security with barmerge.lookahead_off.
2. Each timeframe computes a trend EMA (default length 50) on its own closes. Close above the HTF EMA returns +1, below returns -1.
3. The three votes are summed into a net vote ranging from -3 to +3.
4. A local reclaim EMA (default 9) is computed on the chart timeframe to time entries.
5. Bull confluence is declared when net vote is greater than or equal to the threshold; bear confluence when it is less than or equal to the negative threshold.
6. ATR (default 14) is tracked for context in the dashboard.
7. Each signal flips a persistent position state and stamps the bar so the cooldown can enforce spacing.
🔶 SIGNAL LOGIC
- Buy: net vote reaches the bull confluence threshold AND local close crosses over the reclaim EMA AND session filter passes AND position is not already long AND cooldown bars elapsed since last signal AND barstate.isconfirmed.
- Sell: net vote reaches the bear confluence threshold AND local close crosses under the reclaim EMA AND session filter passes AND position is not already short AND cooldown bars elapsed since last signal AND barstate.isconfirmed.
Only fires when the multi-timeframe net vote has reached the configured confluence threshold.
🔶 INPUTS
- MTF group: three higher-timeframe selectors; HTF 1 default 60.
- HTF Trend EMA: length of the structural EMA computed on each higher timeframe; default 50.
- Local Reclaim EMA: chart-timeframe EMA used to time entries; default 9.
- Signal Logic group: minimum absolute net vote required; default 2 (at least 2 of 3 agree).
- ATR Length: volatility reference shown in the dashboard; default 14.
- Cooldown Bars: minimum bars between signals; default 5.
- Filters group: optional session restriction; session window default 0000-2400.
- Visual group: dashboard, 3-layer glow, local EMA plot, buy/sell colors, dashboard background; glow on by default.
🔶 ALERTS
MSV Buy, MSV Sell, MSV Any Signal, MSV Bull Conf, MSV Bear Conf, MSV Unanimous Bull, MSV Unanimous Bear, MSV Vote Change, MSV Local Up, MSV Local Down, MSV Any Conf, MSV Webhook JSON.
🔶 LIMITATIONS
- The higher-timeframe EMAs need warm-up history; on fresh symbols early bars carry no reliable vote.
- request.security on higher timeframes is read with lookahead_off on the confirmed bar, so values are non-repainting but update only when the HTF bar closes, introducing natural lag.
- Defaults are tuned for liquid instruments; thin symbols may need wider thresholds or different timeframes.
- Confluence gating intentionally suppresses signals during mixed regimes, so trending-only behavior is expected.
- The local reclaim is a fast EMA cross and can whipsaw inside a valid confluence regime during low volatility.
Indicator

Indicator

FlowScope Range Edge v1.0What This Indicator Shows
The indicator automatically builds a rolling intraday range and displays:
New York open vertical line
Active NY session range high
Active NY session range low
Range midpoint
Adaptive upper and lower edge zones
Range box shading
Reversal confirmation markers
Breakout and retest markers
Long and short trigger triangles
Relative volume context
Chop-risk logic
Compact dashboard showing the current range state
Main Concept
At the upper range edge, price can either:
Reject and rotate lower, creating a possible short reversal setup.
Break above, hold outside the range, retest, and continue higher.
At the lower range edge, price can either:
Reject and rotate higher, creating a possible long reversal setup.
Break below, hold outside the range, retest, and continue lower.
Range Edge Reversal
A range edge reversal happens when price tests or briefly pushes through a range edge, then closes back inside the range.
For a bullish reversal:
Price tests the lower range edge.
Sellers fail to continue lower.
Price closes back inside the range with bullish confirmation.
A long trigger appears if price breaks above the confirmation candle.
For a bearish reversal:
Price tests the upper range edge.
Buyers fail to continue higher.
Price closes back inside the range with bearish confirmation.
A short trigger appears if price breaks below the confirmation candle.
These trades typically look for rotation back toward the range midpoint, VWAP area, or the opposite side of the range.
Range Breakout Continuation
A range breakout continuation happens when price closes outside the range, holds beyond the edge, retests the broken range boundary, and then continues.
For a bullish continuation:
Price closes above the range high.
Price holds outside the range.
Price retests the upper edge from above.
A long trigger appears after the retest confirms.
For a bearish continuation:
Price closes below the range low.
Price holds outside the range.
Price retests the lower edge from below.
A short trigger appears after the retest confirms.
Marker Meanings
REV = Range edge rejection/reversal confirmation
Price tested a range edge and closed back inside.
BR = Range breakout
Price closed outside the range.
RT = Breakout retest
Price retested the broken range edge and held outside.
Green triangle = Long trigger
A bullish reversal or continuation trigger has appeared.
Red triangle = Short trigger
A bearish reversal or continuation trigger has appeared.
Dashboard States
The dashboard summarizes current range behavior:
WAITING — No active range-edge condition.
EDGE WATCH — Price is near the upper or lower edge.
REV LONG — Lower-edge reversal setup is active.
REV SHORT — Upper-edge reversal setup is active.
BREAK LONG — Bullish breakout continuation is developing.
BREAK SHORT — Bearish breakout continuation is developing.
LONG TRIGGER — Long trigger has fired.
SHORT TRIGGER — Short trigger has fired.
CHOP RISK — Two-sided range breaks suggest messy conditions.
OFF SESSION — Outside the New York active session.
For continuation trades, elevated volume can help confirm that the breakout has participation behind it. For reversal trades, volume can help show whether the edge test had enough activity to matter.
Best Used For
5-minute charts
New York cash session
Rotational or range-bound market conditions
Failed breakout or range expansion decisions
Important Notes
The strongest setups usually occur when:
The range is clearly defined.
Price reaches a true range edge, not the middle.
There is enough room to target at least 1.5R–2R.
The trigger does not appear directly into a major opposing level.
The market is not in a strong one-directional trend. Indicator

Strategy

FlowScope Sweep & Reclaim v1.0This setup is designed for traders who want to avoid chasing breakouts and instead wait for proof that a move beyond a key level has failed.
What This Indicator Tracks
The indicator automatically plots and monitors important levels, including:
New York open vertical line
Opening range high and low
Premarket high and low
Previous day high and low
Optional opening range midpoint
Sweep markers
Reclaim markers
Long and short trigger triangles
Relative volume / “Trap Fuel” context
A compact dashboard showing the current setup state
How the Setup Works
A bullish Sweep & Reclaim happens when price moves below an obvious support level, triggers stops or breakout shorts, then closes back above that level.
A bearish Sweep & Reclaim happens when price moves above an obvious resistance level, triggers breakout buyers or short stops, then closes back below that level.
The trade idea is not to enter during the sweep. The trade idea is to wait for the reclaim and then use the reclaim candle as the trigger structure.
For a long setup:
Price sweeps below support.
The sweep must exceed the minimum MNQ sweep threshold.
Price closes back above the swept level.
A reclaim marker appears.
A long trigger appears if price breaks above the reclaim candle high.
Stop placement is generally below the sweep low, with a small MNQ buffer.
For a short setup:
Price sweeps above resistance.
The sweep must exceed the minimum MNQ sweep threshold.
Price closes back below the swept level.
A reclaim marker appears.
A short trigger appears if price breaks below the reclaim candle low.
Stop placement is generally above the sweep high, with a small MNQ buffer.
Marker Meanings
S = Sweep
Price has moved beyond an obvious level by the required sweep distance.
R = Reclaim
Price has closed back through the swept level, suggesting the breakout or breakdown may have failed.
Green triangle = Long trigger
Price broke above the bullish reclaim candle high.
Red triangle = Short trigger
Price broke below the bearish reclaim candle low.
Dashboard States
The dashboard summarizes the current condition:
WAITING — No active sweep setup.
SWEEP BELOW — Price has swept below a support level.
SWEEP ABOVE — Price has swept above a resistance level.
LONG TRAP — Bullish reclaim is active.
SHORT TRAP — Bearish reclaim is active.
LONG TRIGGER — Long trigger has appeared.
SHORT TRIGGER — Short trigger has appeared.
OFF SESSION — Outside the active New York session.
Volume Context
The indicator includes relative volume context to help judge whether the sweep may have meaningful participation behind it.
For this setup, strong volume can be interpreted differently than in a normal breakout strategy.
If price sweeps a level on high volume and then reclaims, that volume may become trap fuel, because traders who entered the failed breakout may be forced to exit.
Volume states include:
Weak
Normal
Elevated
Trap Fuel
Best Used For
This indicator is best used on:
5-minute charts
New York cash session
Failed breakout / failed breakdown reversal setups
It is especially useful around:
Opening range high
Opening range low
Premarket high
Premarket low
Previous day high
Previous day low
Important Notes
This indicator is not intended to predict every reversal. A sweep does not automatically mean price must reverse.
The strongest setups usually happen when:
The level is obvious.
The sweep is meaningful.
Price reclaims quickly.
The reclaim candle is strong.
There is enough room to target at least 1.5R–2R.
The trade is not directly into a major opposing level.
Always use proper risk management and confirm the broader market context before entering a trade. Indicator

FlowScope ORB Retest v1.0What This Indicator Shows
The indicator automatically marks the New York opening range and tracks whether price is breaking, retesting, failing, or chopping around that range.
It includes:
New York session opening range from 9:30–9:45 AM ET
Opening range high and low
Opening range midpoint
Adaptive MNQ retest zones based on ATR
Bullish and bearish retest confirmation markers
Long and short trigger markers
Failed breakout warnings
Two-sided breakout/chop warnings
Relative volume context
Compact dashboard showing the current setup state
Core Setup Logic
The main setup is an Opening Range Breakout Retest.
For a bullish setup, price must break above the opening range high, hold outside the range, and then retest the breakout zone. A long trigger appears only after retest confirmation.
For a bearish setup, price must break below the opening range low, hold outside the range, and then retest the breakdown zone. A short trigger appears only after retest confirmation.
This is designed to avoid chasing the first breakout candle and instead focus on cleaner continuation opportunities after the market shows acceptance outside the opening range.
MNQ-Specific Design
MNQ/NQ often pierces key levels before deciding direction, so this indicator treats the opening range levels as zones, not perfect tick-by-tick lines.
The retest zones are calculated using ATR, with configurable minimum and maximum point values. This helps the indicator adjust to different volatility conditions while staying practical for MNQ.
Dashboard States
The dashboard helps simplify the current market condition:
BUILDING — Opening range is still forming.
WATCH — Range is set, waiting for breakout.
LONG WATCH — Price has broken above the opening range.
SHORT WATCH — Price has broken below the opening range.
LONG RETEST — Bullish retest area is active.
SHORT RETEST — Bearish retest area is active.
LONG TRIGGER — Bullish retest trigger has appeared.
SHORT TRIGGER — Bearish retest trigger has appeared.
FAILED — Breakout failed back inside the range.
TWO-SIDED — Price has broken both sides of the range, increasing chop risk.
Volume Context
The indicator includes a relative volume readout to help judge whether the breakout has meaningful participation behind it.
Volume is not treated as the only signal. It is used as context:
Weak volume may suggest a lower-quality breakout.
Elevated or strong volume may support continuation.
Strong volume followed by failure may signal trap behavior.
Best Used For
This indicator is best used on:
MNQ1!
NQ1!
5-minute charts
New York cash session trading
Opening range breakout/retest playbook execution
It is intended to complement a broader trading process, especially for traders who want to avoid chasing and prefer waiting for confirmation.
Important Notes
This indicator is for education, chart context, and discretionary trading support. It does not guarantee profitable trades and should not be used as a standalone trading system.
Opening range breakouts can fail, especially on choppy or news-driven days. Always use proper risk management, confirm market context, and avoid taking signals blindly. Indicator

Indicator

Indicator

Best Position Size CalculatorBEST POSITION SIZE CALCULATOR (PINE SCRIPT V6)
OVERVIEW:
Most traders fail not because of poor entries, but due to terrible risk management. Standard position size calculators are static, rigid, and tedious to use. The Best Position Size Calculator is a dynamic, institutional-grade risk management dashboard built directly into your chart.
Instead of just multiplying a percentage by your account balance, this script dynamically optimizes your share size based on live market volatility, broad market conditions, liquidity depth, and execution environments. It serves as an ultimate Go/No-Go gauge for entering trades safely.
WHAT THE SCRIPT DOES:
The indicator calculates the exact number of shares or contracts to purchase based on your personalized account settings. It visually displays this data in a clean, customizable on-screen dashboard.
Beyond simple calculations, the script acts as an automated defensive filter. If market conditions are highly dangerous (parabolic extensions, extreme overbought levels, dry liquidity, or a broken macro trend), the calculator will dynamically lock execution and flag a warning directly on your table, preventing you from taking high-risk setups.
HOW IT DOES IT (THE CORE ENGINE):
This script features a multi-layered calculation engine across several parameters:
Flexible Risk Architectures: You can determine your risk per share using six distinct methodologies:
1. LOD (Low of Day): Dynamically calculates risk based on the current session's low.
2. % of Account: A fixed percentage layout.
3. Volatility Matrix: Uses four specialized volatility tools across multi-timeframe structures (ATR, ADR, qADR, or StDev).
Progressive Risk Scaling: It pulls data from a major reference index (like NASDAQ:QQQ) and tracks its Z-score. When the broader market is healthy, it securely scales your risk up (up to 4x base risk); when the broad market is hostile, it dials your risk back down.
Smart Rounding Logic: Instead of suggesting fractional shares for large accounts (like buying 4,532.12 shares), the script uses an advanced tiered system to floor shares logically based on block size (rounding to the nearest 10, 50, 100, or 1000 shares dynamically).
Defensive Filtering Matrix: The script checks five separate conditions before displaying a size:
1. Liquidity Filter: Assesses average daily dollar volume to protect you from illiquid slippage.
2. Volume Cap Filter: Limits total share size to a maximum percentage of the daily average volume so your order doesn't disrupt the book.
3. Parabolic Filter: Flags when daily and weekly RSIs are simultaneously overextended (above or equal to 80).
4. Z' Trend and Overbought Filters: Maps out the asset's current Z-Score profile (Hostile, Weak, Neutral, Strong, or Overbought).
5. Long-Term Trend Filter: Utilizes a Weekly Rate of Change (ROC 50) filter to verify macro market direction.
HOW TO USE IT:
1. Input Your Metrics: Open the settings panel and enter your total Account Size, Base Risk %, and Max Position Size boundaries.
2. Select Your Sizing Method: Choose how you plan to manage stops (such as placing stops under the Low of Day or wrapping it around an ATR multiple).
3. Read the Dashboard:
- Blue text indicates a healthy environment with your optimal share size calculated.
- Orange text indicates that your size was safely capped to protect you from illiquidity or excessive capital concentration.
- Red or Gray text warnings (like Overbought, Low Liquidity, or wROC less than 0) warn you that a filter has triggered, notifying you to skip the trade or exercise extreme caution.
WHY THIS SCRIPT IS TRULY ORIGINAL:
Traditional position sizing scripts are blind. They treat a trade the exact same way during a roaring bull market as they do in a choppy bear market, or on a highly liquid stock versus an illiquid micro-cap.
This script is unique because it introduces dynamic adaptability and defensive restrictions. It combines cross-asset index tracking (Progressive Risk) with localized volatility indicators, then routes the output through institutional volume-cap guardrails and smart rounding. It is not just a calculator; it is an automated risk manager that scales your position size up when odds are in your favor and freezes entry sizes when market conditions turn toxic.
IMPORTANT NOTICE AND RISK DISCLAIMER:
This tool is designed strictly for informational and educational purposes. Every effort has been made to ensure the mathematical calculations within this Pine Script are correct, robust, and functional. However, software errors, data feed latencies, and market anomalies can occur.
Trading financial markets involves substantial risk of loss. Utilizing this script does not guarantee profitability or protection against loss. If you execute a trade and lose money, it is entirely your responsibility. The author assumes no financial liability for any losses, missed opportunities, or damages incurred from the use of this indicator. Always cross-verify position sizes manually before committing capital. Use at your own discretion. Indicator

Indicator

Indicator

Indicator
