Market Structure with ATR trailing stop [EDGE]Market Structure with ATR trailing stop — Multi-Timeframe Structure + ATR Trailing Stop.
A precision market-structure tool that goes beyond a simple pivot indicator by combining SMC-style swing detection, multi-timeframe CHoCH/BOS tracking, and a school-standard ATR trailing stop — all adapted automatically to the chart timeframe.
How it works:
The indicator scans pivot highs and lows using an SMC-calibrated Length (automatically picked for the current timeframe or set manually). Each broken pivot is classified as CHoCH (character change, phase start) or BOS (continuation) using your chosen breakout method — Wick, Body, or 2-Close confirmation. The same logic is mirrored across D1, H4, H1 and M5 in a summary table, so you always see whether the higher timeframes agree with the current one.
What it calculates:
- Swing pivots with HH / HL / LH / LL classification (optional labels)
- CHoCH / BOS counter — "UP (C)", "UP (C+1)", "DOWN (C+2)" — showing phase maturity per timeframe
- Trend direction on D1 / H4 / H1 / M5 in one summary table
- ATR trailing stop with EMA basis and one-directional ratcheting
- Live ATR% with a dynamic percentile-based "normal range" window
- Distance to trailing stop in %
Key features:
- Auto Length by timeframe (SMC standard: M5 = 7, H1 = 15, H4 = 20, D1 = 30 …)
- Three breakout modes: Wick (early), Body (default), 2-Close (conservative)
- Auto ATR multiplier and EMA basis per timeframe — sourced from Raschke, Carter, Chandelier Exit, Minervini, Wilder and Weinstein school standards
- Multi-timeframe trend dashboard with CHoCH/BOS phase counter
- Dynamic ATR% range (percentile lookback) — instant read on whether volatility is normal, muted or hot
- Configurable trailing-stop history window (2 or 10 last ranges)
- Optional HH / HL / LH / LL swing labels
- Fully customizable up/down colors
- Built-in alerts: trend flip up, trend flip down, stop touch up, stop touch down
- Disabled on timeframes below 5M with an on-chart notice — the indicator is calibrated for 5M and above
Who it's for:
Traders who want a single, opinionated structure tool that reads the market the same way institutional and SMC playbooks do — with automatic parameters that respect every timeframe, a clean multi-TF dashboard, and a trailing stop built from real trading-school standards rather than arbitrary defaults. Indicator

VASA Position Size & ATR Stop vFMost blown accounts come down to one thing: size, not signal. This tool does the math the pros do before every trade. Tell it your account size and how much you're willing to risk on the trade (1% is a sane default), and it places a stop a set number of ATRs away, then tells you exactly how many units that risk budget allows.
What it does: • ATR-based stop distance, long or short • Position size from your account size and risk % • On-chart table: entry, stop, stop distance, dollar risk, units • Entry and stop lines drawn on the chart • No signals, nothing to repaint — it's a calculator
How to use: set your account size and risk % once. Pick your entry (defaults to the current close, or type one in). Read the position size off the table and use it. The idea is boring on purpose — fixed fractional risk is how you survive a losing streak long enough for your edge to show up. Plan from a closed bar so the ATR reading is settled.
Educational only — not financial advice. Position sizing does not remove market risk. Trading involves substantial risk of loss.
Indicator

cephxs / Risk Calculator [Pro +]Risk Calculator
Type your stop in ticks and the dollars you accept to lose. The table tells you how many contracts fit, and what those contracts actually risk.
WHAT IT DOES
Position sizing is the one calculation that decides whether a losing streak is survivable, and it is the one most people do in their head, wrong, on the way into a trade.
This is a manual sizer. Two inputs, one small table, nothing else on your chart. No signals, no boxes, no arrows, no alerts. It reads the symbol you are on, converts your stop from ticks into dollars, and reports how many contracts fit inside the risk you set.
It reports both the standard contract and its micro sibling, side by side, every time. There is no micro toggle to remember, because the choice between one mini and twelve micros is a trading decision, not a setting. This tool is calibrated specifically to Futures contracts, Updates will follow soon for support for Forex CFD Lots and instructions on how to understand them and speed up your trading for cross platform trading (externl execution and PulseWire charting for example.)
HOW IT WORKS
Three ideas, and the third is the one that gets sizers wrong.
1. Ticks, not points. You think in ticks, because that is what your stop is measured in on the DOM. Contract specifications are quoted per point . The script converts between them using the symbol's own tick size, so a 50-tick stop on CME_MINI:RTY1! (0.1 tick) and a 50-tick stop on CME_MINI:ES1! (0.25 tick) are correctly priced as different distances instead of being treated as the same number.
2. A contract pair, not a contract. The script carries a lookup of index, metal, energy and FX futures. Each entry stores the dollar value of a one-point move for the standard contract and for its micro. The same pair resolves whichever side of it you are charting: load CME_MINI:NQ1! or load CME_MINI:MNQ1! and you get the same two columns, in the same order. Micro tickers are matched before their standard root, so CME_MINI:MNQ1! is never mistaken for the CME_MINI:NQ1! entry.
3. Floor division, and no rounding up. Contract counts come from your risk budget divided by the dollar cost of one contract at your stop, rounded down . A partial contract is not a contract. This means the reported figures are never the budget read back at you — they are what the position genuinely risks, which is at or under the budget by the size of the remainder.
HOW TO READ THE TABLE
Four stacked rows. The example below is a 25-tick stop with a $400 budget on CME_MINI:ES1! (Same as the publication Screenshot):
ES1!
25 ticks
$313 / $375
1 mini / 12 micros
Row 1 — Asset. The symbol the numbers were computed for. Confirms the script resolved what you think it resolved.
Row 2 — Stop. Your stop, as typed.
Row 3 — Risk. What each position actually loses if the stop is hit.
Row 4 — Size. What to place.
Rows 3 and 4 are a pair and read column for column. Standard contract on the left, micro on the right. $313 is what that 1 mini risks. $375 is what those 12 micros risk. Both sit under the $400 budget. Neither is the budget itself.
The colors are the warnings.
Grey — normal. Both sides are tradeable.
Amber — one standard contract already exceeds your budget. Its count reads 0. Only the micro column is tradeable.
Red — even one micro exceeds your budget. Row 4 reads "Risk too big", and row 3 switches to showing what one of each contract would cost, so you can see how far over you are.
Every cell carries a tooltip with the full arithmetic: ticks, dollars per tick, dollars per contract, and the budget the counts were divided by. Hover it when a number surprises you.
HOW TO USE
Load it on the futures contract you trade.
Set Preferred Risk once. This is your per-trade loss limit in dollars, and it should not change trade to trade.
Before each entry, set Stop Size to where your stop actually goes — below the swing, past the level, wherever your method puts it. Do not pick the stop that makes the size convenient.
Read row 4 and place that size.
If the block turns red, the trade is not untradeable — the stop is too wide for your account at this risk. Wait for a tighter structure rather than moving the stop in.
The order matters. Risk is fixed, stop is dictated by the chart, and size is the output of those two. Sizing first and then hunting for a stop that fits is the habit this table exists to break.
INPUTS
Stop Size (ticks): 25. Distance to your stop, in ticks. Drives everything. Fully customizable.
Preferred Risk ( AMEX:USD ): 400. Maximum dollars you accept to lose. Both contract counts stay at or below it. Add a small leeway $50 if you're willing to get even closer to your preferred risk.
Table Position: Bottom Left. Any of the nine pane anchors.
Layout: Values Only, or Labeled (adds a dimmed caption column).
Text Align: Left, Center, Right. Applies to the value column.
Edge Padding (rows): 2. Blank rows between the block and the pane edge it hugs. Inert on the three Middle positions, which have no edge to lift off.
Text / Warn / Error colors: the three states above, in that order.
Table Text Size: Standard. Compact through Extra Large, or Auto.
The table draws as plain text with no background and no border, so it sits on the chart without covering price.
SYMBOLS COVERED
Indices: CME_MINI:NQ1! · CME_MINI:MNQ1! · CME_MINI:ES1! · CME_MINI:MES1! · CBOT_MINI:YM1! · CBOT_MINI:MYM1! · CME_MINI:RTY1! · CME_MINI:M2K1!
Metals: COMEX:GC1! · COMEX_MINI:MGC1! · COMEX:SI1! · COMEX_MINI:SIL1! · COMEX:HG1! · COMEX_MINI:MHG1!
Energy: NYMEX:CL1! · NYMEX:MCL1! · NYMEX:RB1! · NYMEX:HO1!
FX: CME:6E1! · CME_MINI:M6E1! · CME:6B1! · CME_MINI:M6B1! · CME:6C1! ·
NYMEX:RB1! and NYMEX:HO1! have no micro, so they report a single column. Every other symbol reports the pair.
LIMITS — read these
It does not know your account. There is no balance, no margin check, no daily loss limit. If your broker's day-trade margin will not carry 12 micros, the table will still say 12. That number is what your risk allows, not what your buying power allows.
It does not know your position. It is a pre-trade calculator, not a position tracker. It never reads open orders or fills.
Commissions and fees are excluded. Twelve micros cost meaningfully more in round-turn fees than one mini for the same risk. That gap is real and this table does not show it.
Off-list symbols degrade, they do not fail. On anything outside the list above, the script falls back to the symbol's own point value, finds no sibling, and collapses to a single column labeled in plain "contracts". Stocks, crypto and forex spot will produce a number this way. Confirm it against your broker before you trade it.
Futures-first by design. The tick-to-dollar chain assumes a contract with a fixed point value. It is not a share sizer.
No performance claim is made or implied. Correct sizing controls the size of a loss. It does not make a losing setup profitable.
FAQ
why does it show both minis and micros instead of picking one?
Because the right answer depends on what you are doing, not on the arithmetic. Twelve micros let you scale out in twelve pieces and cost more in fees. One mini is cheaper and all-or-nothing. The table gives you both and stays out of the decision.
why is the risk figure lower than my preferred risk?
Rounding down. If one contract costs $400 and your budget is $500, one contract fits and $100 goes unused, because 1.25 contracts do not exist. The figure shown is the real risk of the real position.
it says "Risk too big" — is something broken?
No. One micro at your current stop costs more than your entire budget. Either the stop is wider than your account can carry at that risk, or the risk input is set low. Row 3 shows what one of each contract would cost, so you can see the gap.
does it repaint?
There is nothing to repaint. The table is computed on the last bar from your two inputs and the symbol's specification. It uses no history, no higher timeframe requests and no future data.
my broker's contract value differs from the table.
Trust your broker. Contract specifications change and exchanges list variants. The tooltip shows the exact dollars-per-tick used, so you can compare in one look.
DISCLAIMER
This script is a calculator. It gives no trade signals and makes no forecast. Contract specifications are hardcoded and can become out of date, and off-list symbols use a fallback value — always confirm the numbers against your broker before you place an order. Trading futures involves substantial risk of loss and is not suitable for every investor. Nothing here is financial advice.
Open source under the Mozilla Public License 2.0. Read the code, fork it, change the contract table to suit your instruments.
Indicator

Indicator

Indicator

Prop Key Levels & Order Blocks - Buy Sell Signals with TP/SLA complete intraday trading suite built around one idea: the decision candle.
Instead of guessing where price might turn, the script marks the exact candles
where the market already made a decision, and then tells you what happened when
price came back to them.
Everything is evaluated on closed bars. Printed signals never move.
━━ WHAT IT DRAWS ━━
MAJOR KEY DETECTION
The origin candle of an impulsive displacement leg. Its body becomes a level
that extends to the right. Green for bullish decisions, red for bearish ones.
When price closes clean through a key, the level is greyed out — it failed, and
you can see that it failed. The detection level (1–100) sets how far price must
travel out of a candidate before it is accepted, so you can go from "every small
turn" to "only the moves that really expanded".
MAJOR ORDER BLOCKS
The last opposing candle before a structural break. Drawn as a box that survives
until price closes through it.
TREND DETECTION
A volatility-scaled trailing line under price, green while bullish and red while
bearish. It is the filter one of the two entry engines uses, and a weighted
component of the other.
ORDER POOL
Price levels that were rejected repeatedly and still hold unfilled resting
orders. Each pool is parked as an arrow at the right edge of the chart. You
decide what happens once price trades through one: remove it (the orders are
spent) or keep it dimmed, so you can still trade the reaction after the sweep.
SMART FVGS
Three-candle imbalances, filtered by a minimum size so the chart is not buried
under meaningless micro-gaps.
━━ THE ENTRY ENGINE ━━
Two independent algorithms, selectable in the settings.
PROP MODE — conservative. A signal needs the trend filter, a key level or order
block, and a confirmation candle to agree, and price must not already be
extended. Fewer trades, built for accounts where a handful of clean entries
beats constant activity.
AI-MODE — adaptive. Trend, momentum, key level, order block, pool sweep, fair
value gap and candle quality each contribute a weighted score. The engine fires
when the combined score clears a threshold you control, so it also takes the
reversals the conservative mode filters away.
Every entry comes with three take profits (Minor, Major, Highest) and a stop.
All four are expressed in volatility units — one unit is the ATR at the signal
bar — so the distances breathe with the market instead of being a fixed point
value that is wrong on half the days.
The reward box, the risk box and the projection line are drawn forward from the
entry, so one glance tells you whether the trade is worth taking. Hover any
signal badge to read why it fired and every price it produced.
━━ COOLDOWN ━━
After a signal, the engine mutes itself for a configurable number of bars. This
is what stops it from firing ten entries into the same move — the single
fastest way to run into a daily loss limit.
━━ DASHBOARDS ━━
A trade metrics table in the corner lists the live entry, all three targets, the
stop, the reward-to-risk and the cooldown state — the numbers you copy into your
order ticket.
A cockpit panel shows the live checklist (trend, key level, order block, pool
sweep, candle, cooldown), the running position, and a hit count across the whole
loaded history: how often each target was reached and how often the stop came
first.
━━ ALERTS ━━
Entry, take-profit hit and stop hit, as readable text or as a JSON object
carrying side, entry, all three targets, the stop and the reward-to-risk — the
format execution bridges expect.
━━ SETTINGS ━━
① Engine Control — strategy type, score threshold, cooldown, metrics table
② Trade Config — Minor / Major / Highest TP, SL, volatility unit
③ Insight Matrix — key detection and its level, order blocks, trend
④ Orderflow & Smart FVGs — order pool, touch count, tolerance, fill handling
⑤ Visuals — theme, candle colouring, boxes, price lines, panel, drawing budget
⑥ Alerts — what to fire and in which format
Every input carries a tooltip explaining what it does and what changes when you
move it.
━━ NOTES ━━
Designed for intraday work on index CFDs, gold and FX. The defaults were set up
on 1- to 15-minute charts; on higher timeframes raise the cooldown and the key
detection level.
This is an analysis tool, not financial advice. Past behaviour of any level or
signal says nothing about future results. Test any configuration on your own
instrument and timeframe before trading it. Indicator

TheStrat Suite [Open Source] Entries, Targets, and Stop LossTheStrat Suite automates the detection, visualization, and alerting of price action setups based on TheStrat methodology (developed by Rob Smith) across up to six configurable timeframes simultaneously.
The guiding principle: show only the most valuable information. Rather than cluttering charts with every possible level and signal, the indicator uses logic based on user settings to determine what's relevant and worth displaying at any given moment.
WHAT IT DOES
The indicator identifies candle combinations (combos), actionable signals (inside bars, hammers, shooters), Failed 2s (range reclaims), and calculates magnitude and exhaustion targets — then draws entries, targets, stop losses, and take action windows directly on your chart. A real-time data table displays combo status, bar types, and Full Timeframe Continuity (FTFC) across all enabled timeframes. Candles themselves can be colored by Strat classification or by FTFC. Alerts can be filtered by timeframe continuity, signal type, specific timeframes, or Domino setups.
HOW IT WORKS
Multi-Timeframe Data Architecture
The indicator requests OHLC data from up to six user-configured timeframes in a single pass, then processes each timeframe's candle relationships independently. This allows the 5-minute, 60-minute, daily, and weekly structure to coexist on one chart without switching views.
Candle Classification Logic
Each closed candle is classified by comparing its high and low to the prior candle's range. A candle entirely within the prior range is type 1 (inside). A candle that exceeds one side is type 2 (directional). A candle that exceeds both sides is type 3 (outside). Directional bias (u/d) is determined by comparing close to open. A Failed 2 (also known as a Range Reclaim, 2d Green, or 2u Red) occurs when a directional candle breaks one side of an inside bar but fails to continue.
Hammer and Shooter Detection
The indicator offers three detection methods. Classic requires the candle to breach the prior candle's high or low but close back inside the prior range. Pin Bar adds a wick-to-body ratio requirement, filtering for candles where the rejecting wick is significantly longer than the body. Broad relaxes the close requirement, allowing the close to be near (not strictly inside) the prior range. Users select which method matches their trading style.
Failed 2 / Range Reclaim Detection
A Failed 2 occurs when price breaks one side of an inside bar (type 1) but reverses through the opposite side. The indicator provides four detection methods. Open flags the setup when the reversal candle opens beyond the broken level. Reclaim flags when price closes back through the opposite side of the inside bar's range. Both requires both conditions (open beyond AND close reclaim). Either flags when either condition is met. This configurability lets traders match detection to their preferred confirmation style.
Stop Loss Levels
When a signal fires with stops enabled, the indicator places a stop loss level on the opposite side of the trigger and locks it for the duration of the signal. The stop reference is selectable — the current candle for tighter risk, or C1 for wider invalidation — and an optional Break Even mode moves the stop to entry once magnitude or exhaustion is hit. A Smallest Timeframe Only mode draws just the tightest active stop when several timeframes are in force. Stop prices can be appended to alert messages.
Level Hierarchy and Consolidation
When multiple timeframes produce levels at similar prices, the indicator intelligently consolidates them into combined labels rather than hiding important information. Higher timeframes take display priority over lower timeframes — a weekly level takes precedence over a daily level at the same price — but both are represented in the consolidated label. Actionable signals (inside bars, hammers, shooters with defined triggers) take priority over static reference levels. This prevents chart clutter while preserving all relevant information in a readable format.
Intelligent Label Adaptation
Labels dynamically update as market structure changes. When a magnitude target from one timeframe coincides with a trigger level from another, the label consolidates to reflect both roles (e.g., "W MAG + D Trigger"). When levels are hit, invalidated, or superseded, labels update color and text to reflect current status rather than disappearing — preserving context for the trader.
Full Timeframe Continuity (FTFC) Filtering
FTFC status is calculated by evaluating directional bias across all enabled timeframes. When all timeframes show bullish bias (closing up relative to open), FTFC is bullish. When all show bearish bias, FTFC is bearish. Mixed bias means no continuity. Users can filter signals to only appear when FTFC aligns with the signal direction, reducing noise during consolidation.
Take Action Windows
When a signal forms on a higher timeframe, the indicator highlights the period during which that timeframe's candle remains open. This visual window reminds traders when a setup is "in force," providing a frame of reference for seeking entries on smaller timeframes.
Domino Detection
A Domino setup occurs when a signal on one timeframe can trigger another signal on an adjacent timeframe. The indicator detects and alerts on these conditions.
Bar Coloring
New in v3. Chart candles can be painted by their Strat classification or by the current Full Timeframe Continuity state, with optional highlighting when a bar flips to a Failing 2. One mode is active at a time, and coloring is off by default.
Preview Mode
When the market is closed, the indicator shifts to the next period's levels so setups can be planned before the open. The Auto default detects the instrument type and activates during off-hours — weekends for futures, pre/post-market for equities, even holidays — and turns itself off when trading resumes.
IMPLEMENTATION DETAILS
This implementation addresses several practical challenges traders face.
Multi-timeframe consolidation: Rather than constantly switching chart timeframes or mentally tracking multiple structures, all analysis exists in one view with intelligent deduplication when levels overlap.
Configurable detection methods: Hammer/shooter and Failed 2 detection aren't one-size-fits-all. The four Failed 2 methods and three hammer/shooter definitions let traders match the indicator to their specific confirmation requirements rather than accepting a single rigid definition.
Dynamic level management: Levels don't just appear and disappear — they adapt. A target becoming a trigger, a level being hit, or a setup invalidating all produce specific visual feedback rather than simply removing information. This preserves market context as price develops.
Alert filtering depth: Alerts can be filtered by FTFC alignment, signal type, specific timeframes, or Domino conditions — and the consolidated alert can append trigger, magnitude, exhaustion, and stop prices plus the FTFC state to each message — allowing traders to specify exactly which conditions warrant notification without building complex alert logic manually.
Performance optimization: Multi-timeframe analysis can be computationally expensive. This implementation consolidates data requests and limits historical depth on intensive calculations to maintain fast load times without sacrificing real-time functionality.
HOW TO USE IT
Setup
Pick a timeframe preset — TheStrat Classic, Scalp, Day Trade, Futures/Crypto, Swing Trade, or Investing — or set Custom to configure all six timeframe slots manually. Enable or disable specific bar combinations you want to see (e.g., 2-1, 3-2, etc.). Configure your preferred hammer/shooter and Failed 2 detection methods. Toggle FTFC filtering on/off based on your strategy.
Reading the Display
Solid lines represent reference levels (prior high/low). Dashed lines represent actionable triggers. Stop loss levels sit on the opposite side of the trigger. Color indicates direction (configurable) and status (hit, failed, active). Labels show timeframe, level type, and price — in Strat notation (2d-1-2u HAM) or a plain-language Universal style (REVERSAL, CONTINUATION, INSIDE, OUTSIDE, EXPANSION, FAILING). The data table shows current combo, bar type, and FTFC status per timeframe, in a Full layout or a Compact color-coded row.
Alerts
Set your chart timeframe equal to or lower than your lowest configured indicator timeframe, and set the alert interval accordingly. One consolidated alert covers every enabled timeframe with per-timeframe filtering, or use the individual alert conditions. Use alert filters to specify which conditions trigger notifications.
DOES IT REPAINT?
No. Completed-bar signals are built from confirmed higher-timeframe data and do not change on reload. The forming candle updates in real time by design — that is the live trigger you are watching — and the engineering rules that enforce this are documented in the repository.
DEFINITIONS
Combo: Two or more numbers representing the relationship between consecutive candles (e.g., 2-1, 3-2, 2-1-2). Each number indicates the candle type in sequence.
Candle Types: 1 = Inside, 2 = Directional, 3 = Outside.
Directional Bias: u = price above open, d = price below open.
C1/C2: C1 is the most recent closed candle, C2 is two bars back.
Magnitude: The measured move target, typically the C2 high or low.
Exhaustion: Extended targets beyond magnitude, indicating potential reversal zones.
FTFC: Full Timeframe Continuity — all timeframes aligned in the same direction.
Domino: A setup where one signal triggering can cascade into triggering adjacent timeframe signals.
KNOWN LIMITATIONS
PulseWire cannot request data from timeframes lower than your chart. Set chart timeframe accordingly.
Bar replay performance is unreliable with small timeframes and can produce runtime errors with certain low-timeframe combinations (PulseWire limitation).
Exhaustion calculations are limited to recent bars for performance.
Label overlap at similar price levels is a PulseWire rendering limitation.
OPEN SOURCE
The complete source is published under the Mozilla Public License 2.0, together with the engineering documentation (the no-repaint contract, the multi-timeframe correctness rules), a full changelog, and a settings reference. The repository and setup-guide links are in my signature and on my profile. This publication open-sources my earlier invite-only listing of the same name; that listing stays up for its existing users, and updates continue here.
Trading involves risk. This is a charting tool, not financial advice. Past performance does not guarantee future results. Indicator

Edge Profiler - Self-Learning Signal StatisticsAlmost every indicator answers one question: when should I enter. Edge Profiler answers the two questions that actually decide whether an entry is tradable: how far did this exact setup historically go against me before it resolved, and how long did it usually take.
It does that by keeping a record of its own signals on the symbol and timeframe you have open, and turning that record into a stop distance, a target and an expected holding time.
WHAT IT MEASURES
For every signal it has ever produced on the current chart, the script stores four numbers:
MAE, Maximum Adverse Excursion. How far price travelled against the signal before the signal resolved, measured in ATR units so the value is comparable across symbols and volatility regimes.
MFE, Maximum Favourable Excursion. How far price travelled in favour, in the same units.
Duration. How many bars the signal remained the active one.
Outcome. The signal-to-signal return, again in ATR units.
The last N signals are kept, older ones are dropped, so the statistics describe the current regime rather than a market that no longer exists. The sample size is adjustable.
WHAT IT DERIVES
Data Stop. Entry minus the 80th percentile of historical MAE, times the ATR at entry. Read plainly, this is a stop level that 80 percent of past signals on this chart never reached. The percentile is adjustable, so 90 gives a wider and safer stop, 70 a tighter and more aggressive one.
Data Target. Entry plus the median historical MFE. A level that half of past signals reached before resolving. Also adjustable by percentile.
Expected duration. The median bar count of past signals. The panel shows the age of the open signal as a percentage of that median, which flags a move that has already outlived what this setup normally delivers.
Expectancy. The average signal-to-signal return in ATR units. Positive means the engine has historically produced more favourable resolution than adverse on this chart. Negative is a warning, and it is deliberately shown rather than hidden.
Win rate. The share of stored signals whose signal-to-signal return was positive.
WHY EXCURSION STATISTICS AND NOT A BACKTEST
A backtest tells you what a complete rule set produced, and it is only as honest as its exit assumptions. Excursion statistics measure something narrower and more robust: the shape of the move that follows a trigger, independent of any exit rule. That makes the numbers usable no matter how you personally manage the trade. If the median adverse excursion on this chart is 0.4 ATR and you are risking 0.15 ATR, the data is telling you the stop is inside the noise, and no entry technique will fix that.
BRING YOUR OWN SIGNAL
Three transparent entry engines are included, and the statistics profile whichever one is selected:
Volatility Trail. An ATR trailing stop that flips direction when price closes through it. Default.
EMA Cross. Close crossing a single exponential moving average.
Donchian Breakout. Close breaking the highest high or lowest low of the last N bars.
Switching the engine reprofiles everything from scratch on the same chart, which makes it easy to see which of the three has the cleaner statistical footprint on the instrument you actually trade. Two engines with the same win rate can have very different adverse excursion, and that difference is what decides whether a stop survives.
ON THE CHART
Entry line, Data Stop line and Data Target line for the currently open signal.
Shaded risk zone between entry and stop, reward zone between entry and target.
Triangles at each signal.
Bars tinted by the active signal direction.
A panel with the full statistics and the live state of the open signal, including its running MAE and MFE so you can see in real time whether the current move is behaving like its own history or not.
ALERTS
Long signal.
Short signal.
Open signal has moved further against entry than the historical stop percentile.
Open signal has outlived the median duration.
SETTINGS THAT MATTER
Entry Engine. Which signal gets profiled.
Sample Size. How many past signals are kept. Smaller adapts faster and is noisier, larger is more stable and slower to react to a regime change.
Minimum Sample. Statistics stay hidden below this count instead of showing numbers built on four observations. Default 15.
Stop Percentile. The single most consequential setting. It is the trade-off between stop survival and risk size.
READING IT HONESTLY
These are descriptive statistics of past signals on one chart. They are not a forecast and they carry no guarantee. A sample of 20 signals is a hint, not evidence. Statistics drawn from a trending period will misprice risk the moment the market goes sideways, and the percentile you choose is an assumption about how much you are willing to be wrong before you are stopped. Load enough history for the sample to fill, check that expectancy is positive before you take the levels seriously, and treat a negative expectancy reading as the script telling you this engine has no edge here.
This is an analysis tool, not financial advice, and not a trading system on its own. Use it with your own risk management and position sizing. Past behaviour of any method does not guarantee future results. Indicator

Indicator

ATR Range Adaptive ATR Range Adaptive — TF-adaptive volatility bands with dashboard.
A precision volatility tool that projects the statistical extent of a "normal" bar move as five horizontal levels around the previous close — and recalculates automatically on whatever timeframe you're viewing.
How it works:
Add the indicator once. From the previous closed bar of the current chart timeframe it draws the middle line (previous close) plus four ATR-multiplied bands — ±0.5 × ATR and ±1.0 × ATR. Switch to 1H → hourly levels. Switch to 5M → 5-minute levels. No presets to change.
What it shows:
- Previous close as the anchor (middle line)
- +100% band (upper strong resistance) at previous close + 1 × ATR
- +50% band (intermediate resistance) at previous close + 0.5 × ATR
- -50% band (intermediate support) at previous close - 0.5 × ATR
- -100% band (lower strong support) at previous close - 1 × ATR
- Corner dashboard: current TF, previous close, 1 ATR as a percentage of price, and each level's value + distance from the live price
Key features:
- Fully TF-adaptive: no fixed daily/monthly assumption — bands follow the chart's timeframe
- Selectable ATR smoothing: RMA (Wilder), EMA, SMA, WMA
- Adjustable ATR length and multiplier
- Level lines extend a configurable number of bars to the right
- Middle line can be toggled independently of the ATR bands
- Dashboard: 6 anchor positions, 4 text sizes, adjustable cell transparency
- Full color palette for each band + header and text
- Tooltip on "1 ATR, %" explains volatility bands (low / normal / elevated / high)
- Clean overlay: only 5 lines and 1 dashboard, no chart clutter
Who it's for:
Traders who want a fast, timeframe-aware read on how far price has already stretched from the previous close — and where a "normal" move statistically ends. Useful for intraday range trading, scalping around ATR extremes, sizing stops, and spotting bars that break out of typical volatility. Indicator

Luxy UT God Mode - UT-Bot Forecast, Signals, Zones and RiskLuxy UT God Mode turns the classic UT Bot ATR trailing-stop into a complete, self-contained trading cockpit: momentum-adaptive buy/sell signals, a forward-looking Trend Duration Forecast, auto support/resistance zones, a 0-100 Confidence Score, a built-in multi-currency Risk Calculator, and automatic Stop Loss / Take Profit levels - all on one overlay, all non-repainting.
Note: Every forecast, probability, and statistic in this tool is a calculation based on the chart's own historical behavior. They describe past patterns, not guaranteed future results.
WHAT MAKES THIS DIFFERENT
A normal UT Bot only tells you the trend flipped. Luxy UT God Mode answers the three questions a trader actually asks at the moment of a signal:
1. Should I trust this flip? - a Confidence Score (0-100) blends seven engines into one number.
2. How long might this trend run? - a Trend Duration Forecast projects the expected remaining life of the current trend, drawn as a fading strip with survival-probability milestones.
3. What do I risk and how big do I trade? - automatic Stop Loss, R-based Take Profits, and a position-size calculator in your own account currency.
Everything is layered so you can run it bare-bones (just clean signals) or switch on the full "God Mode" stack.
METHODOLOGY AND CREDITS
This indicator implements proven concepts using entirely original code.
- UT Bot ATR trailing logic - original concept by @QuantNomad . This implementation is a significant rework: it adds volume weighting, momentum-adaptive sensitivity, a composite multi-method stop loss, a full multi-filter confirmation stack, multi-timeframe confluence, and the statistical trend-duration engine described below.
Important: this is an educational analysis tool. It does not guarantee any trading result. Always do your own analysis and manage risk.
THE SEVEN ENGINES (and the Confidence Score that fuses them)
Each bar, the script scores how well the current setup aligns and sums it into a single 0-100 Confidence Score with a visual progress bar:
UT Bot direction - is price above/below the momentum-adaptive trailing stop
SuperTrend - direction plus a distance-from-line strength bonus
Market Structure - position inside the recent swing range and structure breaks
ADX Regime - is the market trending (signals allowed) or choppy (blocked)
Multi-Timeframe - does a higher timeframe agree with the signal direction
Volume - is conviction backed by above-average volume
RSI Divergence - is a recent divergence supporting or opposing the signal
Read it at a glance: 80+ = strong, 60+ = good, 40+ = weak, under 40 = very weak. Hover the Confidence cell for the full per-engine breakdown.
1. TREND DURATION FORECAST - the headline feature
When the trend flips, the script projects how many more bars the new trend may last, based on the chart's own past trends.
How it works:
Every completed trend's duration is recorded, kept separately for bullish and bearish trends.
On each new flip the script estimates the expected duration using an exponentially-weighted average and standard deviation (recent trends weighted more heavily).
The estimate is drawn as a fading gradient strip that projects forward from the flip, with a "Trend Analysis" label and survival-probability milestones at 25% / 50% / 75% / 90% / 100% of the projection.
The percentages are empirical - they show the share of past same-direction trends on THIS chart that actually lasted at least that long. Not a fixed textbook curve.
Three forecast modes:
Simple - median duration only. Clean and fast.
Standard - exponentially-weighted average plus spread (recommended default).
Advanced - Standard plus five adaptive multipliers: Structure (proximity to S/R), Asset Type (volatility profile), Flip Strength (volume + filters passed), Error Learning (self-correction from its own past misses), and Regime (trending vs choppy).
When history is thin, the forecast honestly falls back to a combined estimate and flags it, rather than showing false precision.
2. MOMENTUM-ADAPTIVE UT BOT CORE
The trailing stop is not a fixed ATR multiple. The effective sensitivity adapts each bar to:
Momentum - faster momentum widens the trail to stay in strong moves
Relative volume - conviction adjusts the distance
Asset type - auto-detected (crypto, forex, futures, index, fund, CFD, bond, stock) with a per-class multiplier, or set it manually
Volatility mode - Fixed, Dynamic, or Aggressive auto-adjustment to the current volatility regime
The result is a trailing engine that behaves differently on a calm blue-chip than on a volatile small-cap or crypto pair - without you re-tuning it.
3. ANTI-WHIPSAW AND SIGNAL FILTER STACK
Signals only fire when they survive the filters you enable, so you control the trade-off between frequency and quality:
ADX Regime - block signals in choppy, non-trending conditions
Cooldown and Confirmation - minimum bars between signals and N-bar direction confirmation
Swing - only trade aligned with recent swing structure
Full Candle - require the whole candle beyond the trailing line (no straddles)
Volume, RSI, Hull MA, SuperTrend - optional confirmation layers
High-Volatility and % Change - only trade meaningful moves
2-Bar Confirm - extra confirmation for volatile markets
Every active filter appears as a row in the table with a live pass/fail state, so you always know why a flip did or did not become a signal.
4. SUPPORT / RESISTANCE ZONES
The script clusters significant swing pivots into persistent price zones and draws only the two that matter right now: the nearest resistance above price and the nearest support below price. Each zone shows its price and touch count (e.g. "S 4.19 (3x)" = a support tested three times). A level that price has broken through drops off automatically, and an optional Zone Filter can block buys into resistance and sells into support. Pivot strength is adjustable so you can show only major levels.
5. AUTOMATIC STOP LOSS, TAKE PROFIT AND RISK CALCULATOR
On every signal the script draws a complete trade plan:
Stop Loss - choose from seven methods: ATR, % based, tick based, swing, scaled ATR, Smart Adaptive (auto-scales to volatility), or Safer (widest of several).
Take Profit - TP1 / TP1.5 / TP2 / TP3 as R multiples of the stop distance, with optional price and % labels, and a freeze-on-touch check mark for journaling.
Entry line - marks the signal price; all lines can auto-limit to 10 bars for a clean chart.
Risk Calculator - enter account size and risk (% or fixed amount) and it returns the position size in shares/contracts, in your own currency, with live FX conversion (USD, EUR, GBP, JPY, CAD, AUD, CHF) or a manual rate.
6. MULTI-TIMEFRAME CONFLUENCE AND RSI DIVERGENCE
The table shows the trend of up to seven higher timeframes (5m, 15m, 30m, 1H, 4H, D, W) via an EMA 9/21 cross, so you can see whether the bigger picture agrees before you act. An optional MTF filter blocks counter-trend signals. Separately, RSI divergence (regular bullish and bearish) is detected, labeled on the chart, and fed into the Confidence Score.
7. LIVE STATUS TABLE
A configurable dashboard (position and size adjustable) summarizes everything: asset type, Confidence Score, adaptive mode, current signal, win-rate / average-bars statistics, multi-timeframe row, divergence, forecast, position size, and one row per active filter - each with a detailed tooltip.
HOW TO USE IT - QUICK START
Step 1 - Add it and pick your sensitivity. Defaults suit intraday (5-15m). For scalping lower the Sensitivity/ATR; for swing raise them (see the Sensitivity tooltip for presets).
Step 2 - Read a signal. A Buy (aqua, below bar) or Sell (orange, above bar) appears only after the bar closes and all enabled filters pass. Check the Confidence Score and the Multi-TF row for context.
Step 3 - Use the trade plan. The Entry, Stop Loss and Take Profit lines draw automatically. Read the Position row for size. Use the Trend Duration Forecast strip as a realistic hold-time expectation - scale out near the median, reassess if price runs past the projection.
Step 4 - Set alerts. Use "Any alert() function call" to receive BUY/SELL and trend-flip alerts on bar close, or pick the specific "Momentum Buy/Sell Signal" conditions. All alerts fire on confirmed bars only.
TUNING FOR MORE OR FEWER SIGNALS
Too few signals: turn off MTF, then Full Candle, then lower the ADX threshold or the Anti-Whipsaw filter. Too many / choppy: raise the ADX threshold, enable Volume and Full Candle, increase Cooldown, or add 2-Bar Confirm. Every filter is independent and shown live in the table.
TECHNICAL NOTES
Pine Script v6, overlay, max bars back 5000.
No repaint: signals, lines, forecast and alerts are committed on bar close (barstate.isconfirmed); all higher-timeframe data uses lookahead_off.
Works on stocks, crypto, forex, futures and indices, on any timeframe.
Higher timeframes and longer history produce more reliable forecasts; a new symbol needs a number of completed trends before the duration model is meaningful.
LIMITATIONS
Trend-following by nature: signals arrive after a trend establishes, not at exact tops/bottoms.
Best in trending conditions; use the ADX regime and filters to avoid chop.
The duration forecast needs history to become meaningful and is a statistical estimate, never a guarantee.
DISCLAIMER
This script is an educational analysis tool, not financial advice. Trading stocks, crypto, forex and futures involves substantial risk of loss - you can lose all invested capital. Forecasts, probabilities and win-rate statistics are calculated from historical chart data and do not guarantee future performance. Test on paper first, and you are solely responsible for your own trading decisions.
Feedback and suggestions are welcome in the comments. Happy trading.
Indicator

Indicator

Viprasol Liquidity Trail Matrix with Signal TargetOverview
The Viprasol Liquidity Trail Matrix with Signal Target is a trend-following signal engine that combines a volatility-adaptive trailing "liquidity" band structure with a Cardwell-style RSI regime filter, then turns confirmed pullback-and-continuation events into fully managed trade plans — entry, stop, three scaled targets, break-even logic, and an honest performance read-out. It is built for discretionary traders who want a single tool that answers three questions at once: what is the trend, is momentum backing it, and if a signal fires, exactly where are my entry, stop and targets.
This is an open-source, credited derivative. See the Credits & Originality section at the end — the trailing-matrix and Cardwell-RSI concepts are adapted from prior open-source work under CC BY-NC, with substantial original additions layered on top.
How It Works
Step 1 — Liquidity Trail Matrix (adapted)
A volatility trailing stop (ATR-scaled) defines the active trend and flips only when price closes decisively through it. Around that trailing line the script projects a ladder of "liquidity bands" spaced in ATR units, forming the retest zone price tends to revisit before continuation. In an uptrend the bands sit below price as stacked support; in a downtrend, above price as resistance. Because the spacing is ATR-based, the whole structure widens in volatile conditions and tightens in quiet ones.
Step 2 — Cardwell RSI Regime (adapted)
RSI is classified into a directional regime using Andrew Cardwell's range-rules principle: in a healthy uptrend RSI holds its 40-80 band, in a downtrend it works the 20-60 band. The regime flips bull when RSI thrusts through the upper trigger and bear when it breaks the lower trigger, holding state in between. Signals are only allowed in agreement with the regime, so the momentum context must confirm the trend before anything fires.
Step 3 — Confluence gating (adapted + new)
Before a signal is eligible it must pass a confluence gate: trend agreement, RSI regime agreement, an ADX minimum (chop filter), and an optional higher-timeframe bias pulled non-repainting (previous HTF bar, lookahead off). A minimum confluence score suppresses low-quality setups.
Step 4 — Retest entry + Signal Target (adapted)
When the confluence conditions hold and price pulls back into the band zone then closes back in the trend direction, a signal fires on the confirmed bar. The engine sets a structural stop, then projects TP1/TP2/TP3 as R-multiples of that risk and draws them on the chart with price and percent labels. Break-even logic moves the stop to entry after TP1.
Step 5 — Honest trade management + statistics (new)
Original additions in this release:
- One-trade-at-a-time engine: a trend flip no longer force-closes a trade. A position runs to its stop or final target, and a new entry only opens once the previous one is fully resolved. A reversal toggle restores the old flip-reversal behaviour if preferred.
- Max-bars-in-trade timeout so a lingering position cannot block the engine indefinitely.
- Hide-on-hit targets: each target line and label is removed the instant it is touched, keeping the chart clean.
- Staggered target labels so ENTRY/SL/TP1/TP2/TP3 never overlap.
- Session filter and post-stop cooldown (both optional, off by default).
- Honest performance panel: Avg R and Profit Factor computed on a transparent one-third-scale-out model, plus Max Drawdown in R and best/worst streak — so the win-rate (which counts a trade a win once TP1 is touched) is read alongside true expectancy.
- Suggested position size from an account-size and risk-percent input.
Non-repainting: trend, structure, signals and targets confirm at bar close; higher-timeframe data uses lookahead off on the previous bar.
Key Features
- Volatility-adaptive trailing liquidity-band matrix
- Cardwell RSI regime filter
- ADX chop filter + optional non-repainting HTF bias
- Range-distributed volume profile (POC / Value Area / low-volume nodes)
- Retest-continuation signals with confluence scoring
- Entry / SL / TP1-TP2-TP3 with R-multiple targets, break-even and hide-on-hit visuals
- One-trade-at-a-time management with optional reversal, timeout, session filter and post-stop cooldown
- Honest stats: win rate, Avg R, Profit Factor, Max Drawdown (R), streak, suggested size
- Multi-section dashboard, trend-tint candles, and a full alert suite with optional webhook JSON
How to Use
1. Add to any liquid symbol and timeframe. Confirm the dashboard reads a clear trend and RSI regime.
2. Wait for a LONG/SHORT marker — it only fires on a confirmed retest that passed the confluence gate. The number on the marker is the confluence score.
3. Trade the drawn plan: entry, stop, and TP1/TP2/TP3. The dashboard mirrors the live levels and, once trades close, shows Avg R / Profit Factor / Max DD so you can judge the edge honestly.
4. Tune selectivity with ADX Minimum and Min Score; tune trade behaviour with the reversal, timeout, session and cooldown settings.
Settings
- Trend Engine: ATR length, trail factor, band count and spacing
- Signals: min score, retest window, cooldown, integration mode, reversal toggle, session filter, post-SL cooldown
- RSI Regime: length, bull/bear triggers, confirm bars, integration mode
- Risk Management: SL mode, break-even, max bars in trade, account size, risk %
- Signal Targets: R-multiples for TP1/TP2/TP3
- Volume Profile / HTF / Dashboard / Colors: display and behaviour toggles, all with tooltips
Alerts
Dynamic alerts (ticker, timeframe, price, score, levels, RSI, regime) for: Long entry, Short entry, TP1/TP2/TP3 hit, break-even, stop-out, reversal, trend flips, and regime shift. Entry alerts can emit webhook-ready JSON.
Limitations & Disclaimer
This is an analysis and trade-planning tool, not a promise of profit. The built-in statistics are a session-level model (they reset on chart reload), assume idealised fills with no slippage or commission, and use a one-third-scale-out assumption for Avg R — real results differ. Signals confirm at bar close and do not repaint historically, but the still-forming bar is provisional until it closes. No indicator predicts the future; always combine with your own risk management. Nothing here is financial advice.
Credits & Originality (CC BY-NC 4.0)
This script adapts and builds upon prior open-source work and is published open-source, free, for non-commercial use, with attribution as required by the licence:
- "Liquidity Trail Matrix" by WillyAlgoTrader — the trailing liquidity-band structure concept.
- "Cardwell Range Analyze" by MarkitTick — the Cardwell RSI range-regime concept.
Changes made by Viprasol (this version): combined the two engines into one workflow and added the confluence gate, non-repainting HTF bias, range-distributed volume profile, R-multiple Signal Targets with break-even and hide-on-hit visuals, one-trade-at-a-time management with reversal toggle / max-bars timeout / session filter / post-stop cooldown, the honest statistics panel (Avg R, Profit Factor, Max Drawdown R, streak) and suggested position size, plus the multi-section dashboard and dynamic/webhook alerts.
Licence: Creative Commons Attribution-NonCommercial 4.0 (creativecommons.org). Educational, non-commercial use only. Not financial advice.
Indicator

Stop Loss - structuur + ATR-bufferThis indicator helps you avoid getting stopped out by a few pips when price sweeps an obvious level. Instead of placing your stop exactly at the last swing low/high — where liquidity sits — it calculates a stop level with a volatility-based buffer:
Stop = last confirmed swing low/high ± (ATR × multiplier + extra pips)
The chart shows the swing level (dotted line), the buffered stop level for longs and shorts (solid lines), and a label with the exact stop price, buffer size, and distance in pips — use that distance for your position sizing.
Settings:
Swing sensitivity — how many candles left/right must confirm a swing. Higher = only major swings, lower = minor swings closer to price.
ATR period / multiplier — the buffer scales with volatility, so it automatically widens on volatile pairs and higher timeframes.
Extra pips — fixed margin for spread (stops are triggered on bid/ask, not the mid-price your chart shows).
Note: the default settings are a starting point, not a recommendation. Backtest on your own trades: measure how far wicks typically pierce your swing levels relative to ATR, and set the multiplier accordingly. A wider stop means a smaller position at the same risk percentage — never more risk. If the buffered stop breaks your minimum R:R, skip the trade instead of tightening the stop. Indicator

Position Size Calculator - Risk Manager, Risk/Reward & L[LunqFX]Risk Manager is an on-chart position size and risk/reward calculator for PulseWire that turns proper risk management into one click. Set your account size and risk per trade %, and it instantly gives you the exact position size (units / lots / contracts / shares), your risk and reward in dollars, the risk/reward ratio, and the breakeven win rate you need to be profitable — all visualized as clean risk and reward zones right on the chart. It works out of the box with an auto ATR setup (Entry / Stop Loss / Take Profit placed for you), or type your own levels. Built in Pine Script v6, it works on forex, crypto, stocks, indices, futures, gold (XAUUSD) and Bitcoin (BTCUSD), on any timeframe — because it sizes risk, not signals. Keywords: position size, position sizing, risk management, risk reward, risk/reward ratio, lot size calculator, money management, stop loss, take profit, R multiple, risk per trade, breakeven win rate, Kelly criterion, day trading, swing trading, scalping.
◆ WHY THIS MATTERS
Most traders blow accounts not because of bad entries, but because of bad position sizing and inconsistent risk. Professionals risk a fixed small % per trade (commonly 0.5–2%) and know their risk/reward before they click buy. This tool enforces that discipline on every trade — no spreadsheets, no external calculators.
◆ WHAT IT DOES
Exact position size from your account balance and risk %, in units, lots, contracts, shares or coins.
Risk and reward in account currency and as a % of account.
Risk/reward ratio with a clean visual meter.
Breakeven win rate — the minimum win rate needed to be profitable at your current R:R (a metric most calculators skip).
Visual risk zone (red) and reward zone (green) drawn between Entry, Stop and Target.
Optional fractional Kelly suggested risk %.
A modern, colour-coded dashboard.
◆ HOW IT WORKS
Auto mode (default): Entry is set at price, Stop at a chosen ATR distance, and Target at your chosen R multiple — a valid setup appears instantly on any instrument.
Manual mode: turn Auto off and enter your own exact Entry / Stop / Target prices in the settings.
Position size = (account balance × risk %) ÷ (distance from entry to stop). This guarantees that if the stop is hit, you lose exactly your chosen risk %.
Reward = position size × distance to target; R:R = reward ÷ risk.
Breakeven win rate = 100 ÷ (1 + R:R) — e.g., at 2R you only need to win >33% of trades to break even.
Lots/contracts = units ÷ your contract size (100000 for a forex standard lot, 1 for stocks/crypto, your multiplier for futures).
◆ HOW TO USE IT
Set Account balance and Risk per trade % once (e.g., 1%).
Pick Auto direction (Long/Short) or switch to manual and place your real Entry/Stop/Target.
Read the Position size — that is exactly how much to trade so your loss at stop = your set risk.
Check the R:R meter and Breakeven — only take trades whose math fits your strategy’s win rate.
Use the red/green zones to see risk and reward visually before entering.
Adjust Contract size to match your instrument (forex lots, futures multiplier, etc.).
◆ SETTINGS
Trade Setup (auto ATR or manual prices, direction, ATR stop, target R), Account & Risk (balance, risk %, contract size, size label), Kelly (optional), Visuals (box length, neon candles), Panel (text size, position, colours).
◆ ALERTS
Price hit Entry · Price hit Stop · Price hit Target.
◆ ORIGINALITY
This is original work. The auto-ATR setup engine, the account-aware sizing, the visual risk/reward zones, the colour-coded dashboard with the R:R meter and the breakeven-win-rate readout are all my own implementation. No third-party code is used.
◆ LIMITATIONS
This is a planning and sizing tool, not a signal generator — it does not tell you when to buy or sell.
Position size assumes your account currency matches the quote currency; for cross-currency pairs or unusual contracts, set Contract size to match your broker’s lot/units.
The auto ATR setup is a starting template — always adjust Stop and Target to real structure.
Results depend on the inputs you provide (balance, risk %, contract size); double-check them for your broker.
◆ NON-REPAINTING
This is a calculator: it draws from your inputs and the current price and never alters historical bars.
Risk Manager is an educational tool, not financial advice. Trading involves risk of loss. Always do your own research and manage risk responsibly. © LunqFX. Indicator

Indicator

0.75% Rule - Trade ProjectionA position-sizing and reward-projection overlay for discretionary traders.
You place an entry and a stop on the chart, and the script returns the
position size that risks a fixed fraction of your account, then projects
your reward targets as R-multiples. Direction (long or short) is inferred
from where you click. The focus is getting currency-correct sizing right
with as little input as possible, and catching the sizing mistakes that
quietly distort risk.
📊 What it does
- Sizes the trade so the entry-to-stop distance equals a fixed percentage
of account equity. Default is 0.75%, a conservative fixed-fractional
risk rule, but the percentage is adjustable.
- Reports the result in the correct unit for the instrument: lots and
units for forex, or contracts/shares sized off point value elsewhere.
- Projects a configurable number of reward targets spaced in R-multiples
(1R, 2R, 3R ...), each labeled with its R-multiple and the reward amount
in your account currency.
- Draws the risk zone (entry to stop) and reward zones, plus an info panel
summarizing account, risk, direction, stop distance, size and R:R.
⚙️ How it works
- Risk amount = account size x risk %. Position size = risk amount /
(stop distance x point value x conversion rate). For forex this is
converted into standard lots.
- Direction is read from the two clicks: a stop below entry is a long,
a stop above entry is a short.
- Instrument detection is automatic (forex, JPY pairs, metals, index,
crypto) via symbol info, with a manual override if you need it.
- Account-to-quote currency conversion is explicit and manual. The
account-currency dropdown is a display label only; the single field
that adjusts lot size is the conversion rate. The panel flags the two
mistakes that actually distort risk: leaving the rate at 1.0 on a
mismatched pair, and applying a non-1.0 rate when the currencies match.
- An optional ATR-based stop can override the clicked stop (length and
multiplier adjustable). Direction still comes from your clicks.
- Repaint-free by construction: no higher-timeframe requests, entry and
stop are static prices, and all drawing is deterministic.
📋 How to use it
1. Add the script. It prompts you to click an entry price, then a stop.
2. Set account size and risk % in settings (default 0.75%).
3. If your account currency differs from the pair's quote currency, enter
the conversion rate (account currency per one unit of quote currency).
The panel warns you when a rate is needed.
4. Read position size, R:R and target levels from the panel and on-chart
labels.
5. For a new setup, open the indicator menu, choose Reset points, then
re-click entry and stop. The Re-arm toggle pauses the current
projection so a stale setup cannot mislead you.
## Notes
- This is a planning and risk-discipline tool, not a signal generator and
not financial advice. It does not place trades.
- For non-forex instruments, sanity-check the point value against your
broker's contract specs before trusting the size.
- Inputs are absolute prices, so after switching symbols you may need to
re-click entry and stop. The script detects an off-scale setup and
prompts you. Indicator

ATR Trailing Stop ProTitle:
ATR Trailing Stop Pro — Long & Short | Close/Wick Filter | Alerts | Risk %
Description:
A fully-featured ATR-based trailing stop anchored to a specific entry date and price — built for traders who want to manage an open position with a clean, rules-based stop rather than a signal generator.
Unlike generic ATR stop indicators that run on every bar from the beginning of the chart, this one starts exactly where your trade did.
Features
🔴 Long & Short — trails upward for longs, downward for shorts
📅 Entry date & price — set your exact entry point; leave price at 0 to use the day's close automatically
📊 ATR-based trailing — stop only ever moves in your favour, never against you
🕯️ Close vs wick stop-out — choose whether a close below the stop triggers it, or any wick (reduces false exits on volatile assets like BTC/crypto)
🏷️ Chart labels — marks your entry price and stop-out point directly on the chart
📋 Info table — live overlay showing entry price, current stop level, risk % from entry, and trade direction
🔔 Built-in alert — set it once and get notified when your stop is hit without watching the chart
How to use
Add the indicator to a daily chart
Open settings and enter your entry year, month, day
Enter your entry price or leave at 0 to use that day's close
Select Long or Short
Adjust the ATR multiplier to suit your risk tolerance (higher = wider stop, less noise)
Toggle Close mode on if you want to avoid getting stopped out by intraday wicks
Set an alert on the indicator for hands-off monitoring
Works on any asset — stocks, crypto, forex, commodities. Designed and tested on Bitcoin daily. For best results use on the 1D timeframe. Indicator

Stop Hunt Radar [GBB]STOP HUNT RADAR
Have you ever placed a stop loss under a swing low, watched price come down, take out your stop to the tick, and then run exactly where you said it would? That's not bad luck and it's not a conspiracy. Below every obvious low sits a cluster of sell orders — your stop, my stop, the breakout traders' sell-stops — and for anyone who needs to buy size, that cluster is the only spot on the chart with guaranteed forced selling waiting at a known price. Your stop wasn't hunted out of malice. Your stop was the liquidity.
This indicator maps those clusters in real time, classifies what happens when they get hit, and keeps honest records. That last part matters more than you think.
How is works
The shaded bands are stop pools. "Sell stops · 60,621" means stop losses from longs are probably resting under that level; the shading shows the pocket where they sit. Color is a ranking, not a direction: gray is a minor fresh swing, pink is the most loaded level currently on your screen. Hover any level and it tells you in plain words why it's ranked — "3 equal lows · yesterday's low · 4.2× volume". No codes to memorize. (If you prefer compact BSL/SSL labels, switch Label Style to Pro.)
When price hits a pool, the radar decides what happened by fixed rules, on closed bars, with no repainting:
⚡ swept — price wicked through and closed back. The marker stays on the chart with the measured raid depth ("⚡ 2.4 ATR").
✕ broken — price closed through and stayed.
⌛ undecided — price closed through but might come back. The radar waits a few bars before calling it instead of guessing. Capitulation V-reversals get correctly labeled as sweeps because of this.
The dotted lines near ranked pools are the part I'm most proud of: depth guides. They're measured from this chart's own history — "typical sweep · 63,955" marks how far the median raid ran past that level, "1-in-20 sweep" marks the bad case. Now look where the textbook stop placement is. Usually inside the typical zone. That's the whole point of this tool in one picture.
IMPORTANT
Every channel that shows you stop hunts follows up with the same pitch: buy the sweep, ride the reversal. Before publishing this, I tested that. Properly — the engine was rebuilt in Python, verified bar-for-bar identical against this script, and run through a pre-registered study on 24 months of BTC, ETH and SOL. The final test ran exactly once, on 21,813 sweeps of held-out data the tuning never touched.
Result: after a sweep, the average forward move is statistically indistinguishable from entering at a random moment. The strongest-ranked pools did not reverse harder — if anything slightly worse. The dramatic panic-volume wicks leaned toward continuation, not reversal.
So no, the lightning bolts are not buy signals, and I won't pretend otherwise. The live tally on your own chart will show you the same thing — reclaim rates around 55–60%, a coin flip with commission. This is why the radar prints the losses too. If someone shows you this pattern with only winning examples, you now know what got cropped.
WHAT IT'S ACTUALLY FOR
Stop placement, mostly. The depth guides answer "is my stop sitting in the feeding zone?" before you find out the expensive way. Either place it past the typical-sweep line or size down knowing the risk. Second: when a level gets hit you get a rule-based verdict — swept or broken — instead of arguing with yourself, and alerts fire on those events so it watches the levels while you don't. Third: the receipt trail audits your beliefs. You think "they always sweep the lows here"? Scroll back. The chart kept score.
ANY MARKET, ANY TIMEFRAME
The geometry is ATR-scaled and the tolerances are percentage-based, so it self-adapts. The stats are measured per chart — a Gold chart shows Gold's raid depths, not Bitcoin's. Auto-Adapt handles the asset-specific details: forex gets proper big-figure/half-figure round numbers (159.50 on USDJPY, 1.0850 on EURUSD), and symbols without volume data get the volume factor switched off. When an adaptation is active, the legend says so. One honest caveat: the validation study was crypto on 5m. Other markets run the same mechanics but ship with their own live base rates instead of borrowed claims. Stocks gap — gap-throughs get adjudicated by the same waiting rule, but read markers around opens with some skepticism.
GOOD TO KNOW
Colors are relative: a pool's color can shift as stronger or weaker pools appear on screen. That's ranking, not repainting — the absolute score lives in the tooltip and never changes retroactively. Depth guides appear once the chart has logged at least 10 classified sweeps per side, because statistics from three events aren't statistics. If another indicator ever squashes your chart, right-click the price scale and enable "Scale price chart only" — worth doing in general. The optional dashboard (off by default) adds the nearest pools and the rolling base rates in a corner panel.
THE SETTINGS
You don't need to touch any of this — the defaults are the validated configuration and what I run myself. But it's all there if you want it. The settings are grouped the same way the panel is.
Display — the stuff you'll actually use. Min Score To Display hides weak pools (0 shows everything). Display Radius (default 3%) hides pools too far from price; they're still tracked, they just reappear when price comes back. Show Pool Labels, Show Radar Dashboard (off by default — the corner panel with nearest pools and base rates), Show Legend, Show Sweep Base Rates. Label Style is the big one: Beginner spells everything out, Pro uses compact BSL/SSL codes. UI Text Size and Label Size — bump these up for screenshots and video. Sweep Depth Guides plus "Hide Guides For Gray Pools" (rank 0–10, default 3): raise it to only annotate the strongest levels, lower it to 0 to guide every pool. Auto-Adapt To Asset Class — leave this on unless you have a reason.
Swing Detection — how a level is found. Pivot Left / Pivot Right define how many bars each side make a swing (8/3 default — bigger = fewer, more significant levels). Max Armed Life retires a level that's gone untested for too long.
Pool Geometry — ATR Length drives all the scaling. Pocket Depth sets how thick the shaded stop pocket is. EQ Merge Tolerance controls how close two swings must be to count as the "same" level and cluster together — by % of price (default) or ATR.
Sweep / Outcome — the classification rules. Min Sweep Penetration is how far past a level a wick must go to count as a touch. Multi-Bar Sweep Grace (default 10 bars) is the window where a close-through can still turn back into a sweep — this is what catches capitulation reversals instead of mislabeling them as breaks; set it to 0 for strict single-bar sweeps only. Reclaim Confirmation and Outcome Watch Window define what counts as a confirmed reclaim and how long the radar watches before giving up.
Scoring & Heat Weights — what makes a level rank high. Four weights: EQ Cluster Size, Untested Age, Confluence, Formation Volume. The "Norm" values are how much of each earns a full score (e.g. 3 equal pivots = full cluster score). Session Confluence toggles the prior day/week levels; Round Number Confluence and its step (0 = auto, and auto is asset-aware) toggle round-number weighting. Fair warning: the study found the heat score doesn't predict sweep outcomes, so retuning these changes what looks prominent, not what works. I left mine at default and I'd suggest you do too.
Heat Palette & Receipts — looks. Heat Color Scale is Relative by default (the ramp stretches across the pools currently on screen); switch to Absolute if you want a fixed 0–10 meaning. The four color stops (Cold / Warm / Hot / Prime) are the ramp. Outcome Receipts: show Wins + Losses (default — the point), Wins Only, or None.
Alerts — High-Rank Pool Score is the threshold for the "approaching a strong pool" alerts (it's on the absolute score, where pools typically sit around 1–4). Proximity is how close counts as "approaching". The sweep and break alerts themselves fire on the events directly — add them from the alerts dialog. Indicator

Risk Controller | MouryaRisk Controller | Mourya - Complete Indicator Guide
Overview
Risk Controller | Mourya is an institutional-grade, real-time risk management matrix and position layout dashboard built directly onto your chart. Instead of forcing traders to context-switch between spreadsheets and their charting screen, this terminal brings complete mathematical clarity to active position-sizing, trailing stops, real-time tracking, and multi-tier target distributions. Designed for both professional execution and sleek workspace integration, it features absolute flexibility from pure cash or spot accounts to heavily leveraged derivative trades.
How to Use (Setup and Workflow)
* Apply the indicator to your chart and open the settings menu.
* Select your Position Type (Long or Short) and pick your preferred currency symbol from the dropdown menu.
* Enter the exact Quantity or Shares you are trading.
* Enter your Leverage multiplier. If you are using a standard spot or cash account without leverage, enter 0.
* Choose your Brokerage Fee type (Fixed Value or Percentage) and enter the corresponding fee amount so the dashboard can calculate your true net profits.
* Enter your total account balance into the Net Cash Available field to enable automatic account risk percentage tracking.
* Set your levels visually by clicking the price lines directly on your chart to wake up the PulseWire drag handles, then drag your Entry, Stop Loss, and up to 4 Take Profit targets to your desired locations.
* If you prefer strict mathematical targets instead of dragging lines, type a value into the Percentage Overrides settings to automatically lock a Take Profit target to an exact asset percentage move.
* Customize your workspace by navigating to the Dashboard Settings to move the terminal to any corner of the screen, scale the overall size from tiny to huge, and select custom colors for the header background, header text, and chart lines.
* For a quick reset when scanning multiple tickers, open the settings menu, click the Defaults button in the bottom left corner, and select Reset Settings to wipe the board clean back to zero.
How it Works (Core Features)
* Interactive Chart Synchronization: Bypasses manual price typing by letting you drag and drop your target lines on the live chart. The dashboard matrix instantly recalculates all metrics the moment you release the line.
* Live P and L Tracking Module: A dedicated real-time row sits beneath your entry, constantly tracking your exact active Profit and Loss, tick distance, and live Return on Equity (ROE) as the market moves tick-by-tick.
* Trailing Stop Loss Support: The mathematical engine adapts instantly. If you drag your Stop Loss line past your Entry price into profit territory, the dashboard flips its internal logic, converting the red loss metrics into secured green profits.
* Percentage Overrides: Overrides your manual chart line placement, locking in exact percentage-based profit targets while keeping the Stop Loss manually adjustable.
* Dynamic Hide Logic: Automatically collapses and hides Take Profit rows 2, 3, and 4 on your dashboard if you leave their values at zero, keeping your screen clutter-free.
* Account Risk Diagnostics: Evaluates your Stop Loss distance against your Net Cash Available to show the exact percentage of your total account at risk. It also flashes a critical margin warning if your required margin exceeds your cash balance.
* Margin and Breakeven Engine: Identifies the actual cash margin required to open the position and calculates the exact asset price you need to hit to exit the trade at absolute zero after all entry and exit brokerage fees are deducted.
* True Return on Equity (ROE): Scales your return metrics accurately. If you input 0 leverage, it mirrors the raw asset movement. If you input leverage, it calculates the amplified return strictly on your invested margin.
* Risk-to-Reward (R:R) Tracking: Instantly evaluates the structural viability of your trade setup by calculating the ratio between your Stop Loss risk and Take Profit 1 potential.
* Wick-Sensitive Hit Engine: Mimics real broker limit fills by actively tracking live high and low wicks instead of waiting for a candle to close. The moment a price touches your Stop Loss or Take Profit, the dashboard row flashes in vivid solid colors (Institutional Green for TP, Red for SL) and the chart label flashes yellow.
* True Market Context Module: Calculates the exact percentage distance between the real-time live price and critical historical extremes. Includes today's High/Low, a mathematically pure 52-Week High/Low (calculated using exactly 252 trading days to account for weekends and holidays), and the All-Time High/Low.
* Context Toggles: Allows you to independently check or uncheck the Day, 52-Week, and All-Time context metrics to save screen space when you do not need them.
* Built-in Settings Tooltips: Every single input in the settings menu features an integrated guide next to the small info icon explaining its exact function and mathematical behavior. Indicator

Strategy

Price Action Invalidation Stop Loss (TheStrat)A stop-loss visualizer that places the stop where price action says your directional read is wrong, defined by higher-timeframe bar structure. Based on TheStrat methodology by Rob Smith.
ABOUT THESTRAT
TheStrat, developed by Rob Smith, is a price-action framework that classifies every bar by how it relates to the prior bar's range, then reads that structure across multiple timeframes. Every bar is objectively one of a few types, and the way those types stack across timeframes defines whether a move is continuing or reversing.
BAR TYPES
1 (Inside bar): trades entirely within the prior bar's range. High is below the prior high and low is above the prior low. Consolidation by definition.
2u (Directional up): takes the prior bar's high but not its low.
2d (Directional down): takes the prior bar's low but not its high.
3 (Outside bar): takes both the prior bar's high and its low. Range expansion on both sides.
Failing 2 (F2): a bar that was a directional 2 but current price retraces back into the range of the prior candle. A failed 2u breaks the prior high but falls back below the highest high of the prior candle; a failed 2d breaks the prior low then turns back up above the lowest low of the prior candle. A failed 2 marks rejection of the attempted move and often a reversal.
WHAT IT DOES
The stop sits at the level where the directional thesis would be invalidated: the prior higher-timeframe bar's high or low, the point where that timeframe prints a directional 2 or 3 against the position.
It assumes entry on the 15-minute timeframe or lower, using the 30-minute and 60-minute as the structural higher timeframes. The indicator behaves identically on any chart resolution at or below 15m. Whether you load it on a 5m or 15m chart, it references the same 15m / 30m / 60m structure.
THREE STATES
Long (blue): stop below price at the relevant higher-timeframe invalidation level.
Short (orange): stop above price.
Neutral (gray): no side is structurally supported, so the indicator stays flat.
Invalidation exits the current side. A reversal happens only if the opposite side is also valid. Otherwise the indicator goes neutral rather than flipping, which avoids the whipsaw of a pure stop-and-reverse model in choppy conditions.
HOW THE STOP IS DERIVED
Base level: the tighter of the prior 30m / 60m extremes (the higher of the two lows for a long, the lower of the two highs for a short).
Tightening: when a higher timeframe closes a directional 2 in your favor, the stop pulls up to that bar's low (long) or down to its high (short).
Failed-2 handling: if a higher timeframe breaks its prior high or low then fails back through it, the stop tightens to the most recent completed 15m level.
3-override (optional): while a bar is a live outside bar (3), the stop holds at that bar's extreme so the expansion can resolve instead of tripping mid-bar.
A direction is only active when the 30m and/or 60m is in a clean 2 or 3 in that direction, not a failed 2, failed 3, or inside bar.
SETTINGS
Behavior: tighten on 2-in-direction, 3-override, neutral state.
Visual markers (off by default): state transitions, tighten events, state background tint, higher-timeframe reference levels.
Debug: structured Pine Logs of every state change, tighten, and near-miss for bar-by-bar auditing.
HOW TO USE
Add it to any chart at 15-minute resolution or lower. The single stepped line is the live invalidation stop for the currently supported direction. When the line is absent (neutral), structure is mixed and there is no clean side.
This is a visualization and study tool. It is not a strategy, does not place orders, and does not generate buy/sell signals. Past structure does not guarantee future behavior. Always manage your own risk. Indicator

Squeeze Momentum IQ Trade Management SimplifiedSqueeze Momentum IQ Trade Management Simplified
A trade management and position conviction engine designed to help determine whether to continue holding, manage cautiously, take profits, or avoid new entries.
Most indicators focus on finding entries.
Squeeze Momentum Nexus Conviction focuses on a different question:
"Does the trade still deserve my conviction?"
Rather than generating simple buy and sell signals, Conviction continuously evaluates trend quality, momentum behavior, efficiency, and confirmation conditions to determine whether current market conditions still support remaining in a trade.
The objective is to help traders avoid two common mistakes:
• Exiting strong trends too early
• Holding weakening trades too long
Core Concept
Conviction transforms multiple market variables into a simplified trade management framework:
HOLD
Strong trend quality and confirmation
Momentum remains healthy
Higher timeframe and trend conditions supportive
HOLD CAUTIOUSLY
Trend remains intact, but signs of weakening or conflict begin to appear
Increased probability of pullback or slower continuation
TAKE PROFIT / DO NOT ENTER
Trade quality deteriorating
Momentum weakening significantly
Choppy or conflicting conditions increasing
Features
Trade Quality Engine
Evaluates market conditions through a weighted scoring model using:
• Momentum behavior
• Trend confirmation
• Higher timeframe agreement
• Efficiency ratio
• Volatility state
• Expansion quality
Conviction State Engine
Converts raw calculations into actionable states:
HOLD
Strong continuation conditions
Trend quality remains elevated
HOLD CAUTIOUSLY
Moderate quality conditions
Continuation possible but with increasing caution
TAKE PROFIT / DO NOT ENTER
Weak conditions
Elevated risk of deterioration, pullback, or lower probability continuation
Visual Hold Zones
Vertical highlighted chart regions visually display current conviction states:
Green
HOLD
Orange
HOLD CAUTIOUSLY
Red
TAKE PROFIT / DO NOT ENTER
Designed to allow immediate interpretation directly from price action without requiring constant dashboard monitoring.
Simple Decision Dashboard
Displays only the essential information:
Action
HOLD
HOLD CAUTIOUSLY
TAKE PROFIT / DO NOT ENTER
Trade Quality
Current trade-grade evaluation
Score
Weighted confidence reading
Suggested Uses
Can be used for:
• Managing existing positions
• Scaling out of trades
• Holding trend positions longer
• Filtering poor continuation conditions
• Preventing emotional exits
• Avoiding lower quality entries
Works well alongside:
• Market structure
• Trend systems
• Volume Profile / POC analysis
• Supply and demand zones
• Higher timeframe bias
• Risk management systems
About TrendGenY Indicators
TrendGenY indicators are built from market experience, creative concepts, and a constant pursuit of unique perspectives. Rather than following conventional ideas, the focus is on uncovering alternative insights and viewing market behavior through different angles to reveal information that traditional tools may overlook and help traders build a more meaningful edge in the market. Indicator
