Alpha Reversion Pro v2.1 - Safi EditionAlpha Reversion Pro v2.1 - Safi Edition is a regime-aware mean-reversion strategy built around controlled aggression.
The idea is simple:
Do not buy every dip.
Buy selected dips only when the broader market regime is supportive.
The strategy uses a macro regime filter, defaulted to QQQ versus its 200-period SMA on the daily timeframe. When the macro regime is bullish, the system allows staged dip entries on the chart symbol. When the regime turns defensive, the system moves to cash defense.
This is my personal Safi-style workflow: wait for fear, exhaustion, or trend pullbacks inside a supportive macro environment, scale exposure in controlled pieces, and exit when the mean-reversion move matures.
Core logic:
1. Macro regime filter
The script checks whether the selected macro index is above its 200-period SMA. The default is QQQ on the daily timeframe.
2. Deep dip entries
The deep dip model uses a short RSI to detect aggressive downside exhaustion.
3. Shallow trend-pullback entries
The shallow model allows smaller pullback entries when price remains above a trend filter.
4. Staged scaling
The strategy can build a position gradually using multiple entries instead of entering full size at once.
5. Mean-reversion exits
The strategy exits when price reverts above the selected exit SMA.
6. Defensive exits
The strategy exits if the macro regime turns bearish.
7. Hard stop protection
A configurable hard stop is used to limit downside.
8. Compact HUD
The top-right trading summary shows position state, action, macro regime, entry, stop, estimated account risk, open P/L, win rate, profit factor, return, drawdown, trade count, average hold, and buy-and-hold comparison.
Best use cases:
- QQQ daily or weekly swing trading
- TQQQ daily or 4-hour aggressive leveraged ETF swing trading
- SOXL daily or 4-hour semiconductor pullback trading
- SPY daily or weekly market pullbacks
- Liquid mega-cap growth stocks during bullish QQQ regimes
Suggested starting settings:
For QQQ or SPY:
- Chart timeframe: Daily or weekly
- Macro Regime Index: QQQ or SPY
- Regime Timeframe: Daily
- Capital Allocation per Entry: 10% to 25%
- Max Total Entries: 2 to 4
- Hard Stop: 5% to 8%
For TQQQ:
- Chart timeframe: Daily or 4-hour
- Macro Regime Index: QQQ
- Regime Timeframe: Daily
- Capital Allocation per Entry: 10% to 25%
- Max Total Entries: 2 to 4
- Hard Stop: 6% to 10%
For SOXL:
- Chart timeframe: Daily or 4-hour
- Macro Regime Index: SMH
- Regime Timeframe: Daily
- Capital Allocation per Entry: 10% to 20%
- Max Total Entries: 2 to 4
- Hard Stop: 8% to 12%
This strategy is long-only. It is not designed as a short-selling system and is not designed for inverse ETFs without modification.
The strategy is best tested on normal candles. Non-standard charts can produce unrealistic strategy fills.
Important notes:
- This script is for education, research, and paper-trading.
- It is not financial advice.
- Historical results do not guarantee future performance.
- Strategy results depend on symbol, timeframe, slippage, spread, commission, liquidity, and settings.
- Leveraged ETFs such as TQQQ and SOXL can move quickly and may experience large drawdowns.
- Always test the script on your own symbol, timeframe, and cost assumptions.
Signature:
Built by Safi for controlled-aggression mean reversion.
QQQ is the traffic light. Risk comes first. Cash is a position. Strategy

Indicator

SQVIGU Squeeze+ GhostThis indicator is a heavy-duty, all-in-one trading tool built around the classic Squeeze momentum concept, but supercharged with predictive modeling and multi-timeframe analysis.
Here is exactly what it does under the hood:
Enhanced Squeeze Mechanics: It tracks market volatility using Bollinger Bands and Keltner Channels to spot when the market is "squeezing" (building up energy). When the squeeze fires, it uses an EMA and ADX filter to plot only the highest-probability, trend-aligned breakouts.
Ghost Projections: Instead of just reacting to the past, it uses linear regression to mathematically predict and paint the next 1 to 3 momentum bars into the future—complete with a percentage score showing its confidence in the prediction.
SuperTrend & ZigZag Tracker: It overlays a dynamic SuperTrend on your main price chart to keep you on the right side of the move. It even grades itself, explicitly flagging "true" vs. "false" buy and sell signals.
Momentum Nexus: It combines four powerful oscillators (RSI, MFI, VZO, and CCI) into a single, clean 0–100 score. It tracks both your current chart and a higher timeframe simultaneously to drop Overbought/Oversold triangles right where reversals are most likely. Indicator

Strategy

Noise Adaptive RSINoise Adaptive RSI | MisinkoMaster
The Noise Adaptive RSI is an advanced momentum oscillator engineered to solve one of the most persistent problems in technical analysis: outlier spikes and market noise corrupting momentum calculations. Traditional RSI algorithms treat every sharp price spike as a genuine surge in strength or weakness. This often leads to false overbought or oversold readings during brief liquidity sweeps or news-driven spikes.
By integrating statistical Z-score thresholding and dynamic noise attenuation, the Noise Adaptive RSI identifies abnormal price spikes in real time and dampens their distortive effects. The result is a clean, highly reliable, and adaptive oscillator line that reflects true structural momentum without the lag or false breakouts caused by erratic market noise.
How It Works (The Core Architecture)
The indicator filters raw price changes through a three-stage statistical filter:
Statistical Outlier Detection: The algorithm evaluates localized price changes over a short correction lookback window, calculating moving standard deviations and tracking how far current price swings deviate from their rolling statistical averages using Z-score metrics.
Dynamic Noise Suppression: When a gain or loss exceeds a specified Z-score threshold (indicating a statistically anomalous spike or noise event), the engine applies a corrective square-root smoothing filter to temper that outlier move before it can distort the underlying indicator state.
Smoothed Relative Strength & Trend Tracking: The sanitized gains and losses are processed through a standard relative strength engine to plot a smooth, adaptive RSI line bounded between 0 and 100. A companion Exponential Moving Average (EMA) acts as an adaptive baseline signal line to confirm structural regime shifts.
Key Features
Outlier-Dampened Momentum: Prevents false momentum breakouts by automatically filtering out brief liquidity sweeps and erratic market spikes.
Dual-Confirmation Signal Line: Incorporates an adjustable signal line alongside the primary RSI curve to confirm trend shifts through signal line crossovers rather than relying solely on raw levels.
On-Chart Candlestick Synchronization: Automatically morphs the main price chart's candle colors (vibrant green for bullish trends, pink for bearish trends) based on oscillator and signal line alignment.
Velocity Divergence Histogram: Features a integrated rate-of-change histogram centered at the 50 level to highlight subtle shifts in momentum speed before they show up in price action.
Input Parameters & Optimization Guide
Source: Selects the price series used for calculations (Default: Close).
Length: The lookback period for the main Relative Strength smoothing engine (Default: 14).
Correction Lookback & Threshold: Controls how aggressively the script identifies and dampens statistical noise spikes. Decreasing the threshold increases noise filtering for erratic markets, while increasing it lets more raw price action through (Default: 8 / 1.5).
Moving Average Length: The lookback window for the EMA signal line, used to confirm momentum direction and filter out chop (Default: 14).
Trading Strategies & Execution
Dual-Confirmation Trend Shifts
Instead of depending on simple 50-level mid-line crosses, the Noise Adaptive RSI combines level positioning with signal line interaction to define high-probability trends:
Bullish Regime: Confirmed when the Noise Adaptive RSI is above 50 AND trading above its EMA signal line (turning chart candles green).
Bearish Regime: Confirmed when the Noise Adaptive RSI is below 50 AND trading below its EMA signal line (turning chart candles pink).
Signal Line Reversals & Pullbacks
In a strong trend, the yellow EMA signal line acts as dynamic support or resistance for the RSI line. During pullbacks, look for the RSI curve to bounce off the EMA line in the direction of the dominant trend for low-risk continuation entries.
Outlier-Filtered Extreme Zones
Because extreme spikes are statistically dampened, readings above 80 (Overbought) or below 20 (Oversold) represent true structural market overextension rather than short-lived liquidity traps, providing dependable signals for mean-reversion setups.
Disclaimer: Trading financial markets involves high risk. This technical script is designed as an informational analytical tool to support your rule-based mechanical execution system and does not constitute financial advice. Indicator

Smart Money Volume Absorption Signals I EonMetricsSmart Money Volume Absorption Signals
Volume Absorption marks a specific situation as a LONG or SHORT setup, with an entry, a stop and two targets. But instead of only printing an arrow and leaving you to reconstruct what happened, it tracks that setup through four stages and shows you exactly how far along it is — how many conditions are met, which one is still missing, how many bars are left before the setup is discarded, and what the same sequence has already done on the history your chart has loaded.
🔶 THE SITUATION IT TRACKS
A bar trades far more volume than its own recent normal, and then closes at the wrong end of its own range. Heavy participation that failed to pay the side that pushed: effort without result. The direction is set against the side that was absorbed — a heavy bar closing in the bottom third of its range is a short premise, one closing in the top third is a long premise.
One thing has to be said plainly, because it decides how much weight this premise deserves: total volume cannot tell you who traded. It cannot separate buyers from sellers. What this gate actually measures is heavy participation combined with a failure to hold the direction the bar travelled. The absorption reading is an interpretation of that pattern, not a measurement of order flow. If you want that distinction to matter less, the remaining three gates are where the work is done.
Absorption on its own happens constantly and most of it leads nowhere. So the tool requires three further confirmations, in order, before it marks anything.
🔶 THE FOUR GATES
G1 · ABSORPTION — bar volume lands in an extreme percentile of its own recent history while the bar closes in the far third of its own range. This gate fixes the direction and nothing later can change it. It also plants the invalidation anchor at that bar's extreme. Optionally the direction must agree with a slow trend filter.
G2 · REACTION — a following bar closes in the direction G1 set. The absorption produced something instead of merely stalling.
G3 · EXPANSION — a candle body in the top percentile of its own recent history, pointing the setup's way. That candle's OPEN becomes the origin level, and the origin level is where entry would be.
G4 · HOLD — price returns to the origin level and closes without violating it. Only now does the signal print, on bar close.
This is a retest model, not a breakout model, and the consequence is worth stating before you use it. A setup whose expansion runs away and never comes back to the origin level will never complete, no matter how far the move goes. You will see setups sit at 3/4 while price travels past the drawn targets, and then expire. That is the design working as intended — the entry is the retest — but if you want a tool that chases the move instead, this is not that tool.
The dashboard reads: which stage the setup is in, the direction, which gate is being waited on, the expiry countdown, the entry and stop levels, and the record of every completed setup on the loaded history.
🔶 ORIGINALITY
Five design decisions separate this from a stack of conditions with an AND between them.
Percentiles instead of ATR multiples. A fixed "1.5 × ATR" or "2 × average volume" threshold means something different in a trending market than in a compressed one, so it has to be re-tuned per symbol and per period. Every threshold here is a percentile rank against the instrument's own recent history — "top 30% of the last 200 bars" keeps its meaning when volatility changes, without tuning.
Gates do not add up to a score. Each gate is a separate class of evidence and none substitutes for another. Three expansion bars in a row are still 1/4, not 3/4. A weighted-sum model can be outvoted by one loud condition repeating itself; this one cannot. There is deliberately no confidence percentage anywhere in this script — with four binary gates in a fixed sequence, the only honest information is how many of them have filled, and dressing that up as a percentage would add precision that does not exist.
The setup dies on its own. Every tracked setup carries an invalidation anchor (a close beyond the absorption bar's extreme) and a bar countdown that resets at each gate advance. When either fires, the setup is discarded immediately — it does not linger until an opposite signal replaces it, and it does not quietly stay on the books.
One setup at a time. While a completed setup is still resolving toward its target or its stop, a new setup will not complete — it waits at 3/4 and may still fire later if the first one resolves in time, or expire if it does not. This exists so that what the dashboard counts is what a person following the tool could actually have taken, one position at a time, rather than an overlapping stack of positions nobody could hold.
It shows its own record. The last two rows of the dashboard walk every completed setup on the chart you are looking at, bar by bar, and count which level price reached first — Target 1 or the stop. The stop is checked before the target, so a bar that spans both counts against the setup, and the bar the signal prints on is not counted at all. That number is whatever it is. It is not a claim, it is not tuned to flatter, and it will read differently on every symbol and timeframe you load — which is exactly the point. You are meant to check it on YOUR instrument before deciding what the tool is worth to you, instead of taking anyone's word for it. Most signal tools do not show this. That is a choice they made, and this is a different one.
🔶 HOW IT IS CALCULATED
Both percentile ranks are ta.percentrank() over one configurable window — one on bar volume (G1), one on the absolute candle body (G3). The close position is (close − low) / (high − low), so it describes where the bar finished inside its own range rather than relative to any external level.
The optional trend filter is a plain exponential moving average of the closing price on the chart's own timeframe, used as a slow-trend proxy: long setups are only allowed above it, short setups only below it. Set its length to 0 to switch it off. There are no higher-timeframe data requests anywhere in this script.
Entry is the open of the expansion bar. The stop is the absorption bar's extreme, plus an optional buffer in ticks. Both targets are multiples of that entry-to-stop distance, so they scale with the setup instead of with a fixed price amount. Target 1 is the level the record row measures against; Target 2 is drawn for reference only.
Every gate is evaluated and latched on confirmed bars only. There is no lookahead and there are no forward-looking references. A filled gate is never un-filled retroactively; the live bar can only be rejected, never rewritten. A bar that would satisfy two gates at once advances the setup by exactly one step — each gate has to be paid for with its own bar.
The chart geometry is redrawn from scratch on the last bar rather than accumulated, so what you see on the chart is always the setup the dashboard is describing, and closed setups do not leave debris behind.
🔶 ALERTS
Six conditions: setup reached 2/4, setup reached 3/4, signal LONG, signal SHORT, setup expired, setup invalidated.
The staged alerts follow from the same idea as the meter: being told a setup is one gate away is more useful than only being told after it is over.
🔶 HOW TO USE
1. Read the record row before anything else. Load your instrument and your timeframe and see what it says there. If it does not convince you, that is the tool telling you honestly that it is not for that market.
2. Check the sample size in the same row. A run of ten or twenty setups is an anecdote. The row flags small samples for exactly this reason.
3. Watch the meter, not the arrows. Most of the information is in setups that reach 2/4 or 3/4 and then die — that tells you what the market is refusing to do.
4. The stop sits at the absorption bar's extreme by default, which is tight. On fast intraday charts try the Stop Buffer input and watch how the record row responds.
5. The trend filter changes the population of setups substantially. Check the record row with it on and with it off on your own market before deciding which you prefer.
6. Set the 3/4 alert if you want to be at the chart before a setup completes rather than after.
🔶 SETTINGS
Volume (percentile window) · Gate Thresholds (G1 volume percentile, G1 close position, G3 body percentile, trend filter length, setup TTL) · Trade Levels (draw toggle, stop buffer in ticks, two R-multiple targets) · Display (dashboard and position, current-signal marker, all-past-signals marker, colors).
🔶 HONEST LIMITATIONS
Volume alone cannot be attributed to buyers or sellers. This tool reads total bar volume against the bar's close position. It does not know who traded, and it is not order-flow data. Treat the absorption premise as a reading of effort against result, which is what it is.
The volume itself is only as good as the feed. On spot forex and CFDs the exchange reports TICK volume rather than real traded volume, so the percentile ranks describe activity rather than quantity. On symbols with no volume data at all the gates cannot fill, and the dashboard says so in its top-right corner.
The retest requirement will cost you moves. As described above, setups that never return to the origin level expire unfilled even when price travels well beyond the drawn targets. This is structural, not a bug, and on strongly trending stretches it happens often.
Percentiles are relative to their window. After an abrupt change of volatility regime the ranks need a few dozen bars to catch up, and during that stretch the thresholds are still measuring the old regime.
The record row is an honest count, not a backtest. It assumes a fill at the exact entry price and it ignores fees, spread and slippage — all of which work against you in reality, and all of which matter a great deal when the outcome is close to even. A record that looks positive before costs can be negative after them. It also covers only the setups on the history your chart has loaded, which on intraday timeframes is a small sample.
Results vary far more between markets than between settings. The same script on the same timeframe can produce a very different record on two different symbols, and there is no timeframe this tool is generally "best" on. Any suggestion otherwise would be an invention. Check your own market.
This tool describes a sequence of conditions in price and volume. It does not forecast anything, it makes no claim about how often the sequence resolves favourably, and the drawn levels are the geometry of the setup, not a recommendation. It is published for analysis and education, it is not financial advice, and past behaviour of a pattern does not guarantee its future behaviour. Check the record on your own market, manage your own risk, and decide for yourself.
Part of the EonMetrics toolset.
Indicator

Alpha Regime Reversion Pro by SafOverview
Alpha Regime Reversion Pro by Safi is a long-only, percentage-allocation strategy for liquid stocks and ETFs. It combines a broad-market regime filter with pullback and mean-reversion entries, risk-based position sizing, protective stops, compact trade markers, order-fill alerts, and a Trading Summary dashboard.
The strategy is designed to answer three practical questions:
Is the market regime suitable for long exposure?
What percentage of total account equity should be allocated?
When should exposure be added, reduced, or closed?
All allocation instructions use 5% account increments. The user does not need to enter a specific account-dollar value.
Trading profiles
The default Auto setting selects the profile according to the chart timeframe:
60 minutes or lower: Intraday Reversion
Above 60 minutes: Swing Core + Dip
Users can override Auto and select either profile manually.
Swing Core + Dip profile
The swing profile is intended primarily for daily and 4-hour standard-candlestick charts.
A bullish regime requires the selected benchmark, QQQ by default, to trade above its long-term regime average. The chart symbol can also be required to trade above its own regime average. Entry and exit buffers are used around the averages to reduce repeated whipsaws near the exact threshold.
During a valid bullish regime, the strategy maintains a configurable core allocation. It can temporarily increase exposure during qualifying pullbacks identified with short-term RSI, trend structure, and the 20-period and 50-period EMAs.
Default swing settings:
Core allocation: 50% of strategy equity
Dip allocation: 75% of strategy equity
Long-term regime average: 200 periods
Deep pullback: RSI(2) below 15 while price is below the fast EMA
Shallow pullback: RSI(4) below 40 during a positive 20/50 EMA trend
Rebound average: 5 periods
Maximum dip-allocation period: 10 bars
Emergency stop distance: 8%
Cooldown after a complete exit: 5 bars
The optional account-risk cap can reduce the target allocation when the selected stop distance would place more account equity at planned risk than the user permits.
Intraday Reversion profile
The intraday profile is intended for liquid symbols on standard 5-minute through 60-minute charts.
It combines:
Confirmed daily QQQ regime data
9, 21, and 200 EMAs
Session VWAP
Short-term RSI pullback conditions
ATR-based initial risk
ATR trailing protection after approximately +1R
A configurable time exit and cooldown
A maximum of six new round trips per exchange day
Default intraday risk is 1% of strategy equity per trade. The target allocation is derived from the ATR stop distance, limited by the selected maximum allocation, and rounded down to the nearest 5%.
Position sizing
The strategy expresses every action as a percentage of total strategy equity.
Examples:
Buy 25% of account
Add 20% of account to reach a 75% target
Reduce 25% of account
Close 100% of remaining shares
The strategy uses target allocations rather than fixed share recommendations. This allows the same script to be applied to accounts of different sizes without requiring an account-dollar input.
The chart markers show the modeled fill price and the approximate percentage of account equity bought or sold. Sale markers also show the price return relative to the modeled average entry before that sale.
Chart display
The default chart is intentionally minimal:
Compact buy and sell fill markers
One regime trend line
One active stop line while a position is open
Optional entry/exit arrows and adjustment dots
A configurable Trading Summary dashboard
The Trading Summary displays:
Current regime and setup
Position status and current allocation
Next percentage action
Average entry and active stop
Open return and current R multiple
Estimated account risk
Completed round trips
Win rate
Average winning and losing trade
Profit factor
Average holding time
Strategy return and maximum drawdown
Buy-and-hold return and maximum drawdown
Most recent modeled fill
Most recent completed-trade result
How to use
Use standard candlesticks. Do not evaluate this strategy on Heikin Ashi, Renko, Kagi, Point and Figure, or Range charts.
Apply it to a liquid stock or ETF. The default liquidity filter requires at least $20 million in average 20-bar dollar volume.
For swing trading, begin with a daily or 4-hour chart and select Auto or Swing Core + Dip.
For intraday use, begin with a 15-minute, 30-minute, or 60-minute chart and select Auto or Intraday Reversion.
Set Maximum allocation to the largest percentage of total account equity permitted for this chart.
Review the account-risk limit and stop settings before evaluating results.
Use Strategy Tester on the exact symbol, timeframe, session, and date range being considered.
When using the strategy on several charts, add the target allocations across all charts. Each Pine instance is independent and cannot see positions running on other charts.
Alerts
To create modeled order-fill alerts:
Add the strategy to the chart.
Open Create Alert.
Select Alpha Regime Reversion Pro by Safi as the condition.
Select Order fills only.
Use {{strategy.order.alert_message}} in the message field.
Order-fill messages can include the symbol, action, target account percentage, PulseWire broker-emulator fill price, signal price, stop, setup, trading mode, and exit reason.
The reported fill is a simulated PulseWire strategy fill. It is not confirmation of an execution received at an outside brokerage.
Default Strategy Tester assumptions
Initial capital: 100,000
Commission: 0.05% per transaction
Slippage: 1 tick
Long-only
Margin requirement: 100%
Signals confirmed after bar close
Market orders normally modeled at the next available tick, usually the next bar open
Standard OHLC fills
Default backtest start: January 1, 2017
Pyramiding is enabled internally so the strategy can adjust toward percentage targets. It should not be interpreted as permission to ignore the total allocation and account-risk limits displayed by the strategy.
Important limitations
This is a backtesting and decision-support tool, not personalized financial advice.
Historical and simulated performance does not guarantee future results.
Stops cannot guarantee the displayed loss during gaps, halts, fast markets, earnings announcements, or illiquid trading.
PulseWire strategy fills are simulated and can differ from live brokerage executions.
Commission and one tick of slippage are modeled, but taxes, changing bid-ask spreads, market impact, dividends, and broker-specific financing are not fully modeled.
The buy-and-hold comparison is informational and depends on the selected start date and chart data.
Intraday results are especially sensitive to session settings, data quality, spread, slippage, and alert latency.
The script is long-only and may remain in cash during defensive regimes. It does not open short positions.
The displayed account-risk estimate is planned risk, not a guaranteed maximum loss.
Design objective
The strategy is designed to participate in favorable long-term regimes, increase exposure during selected pullbacks, reduce exposure as mean reversion completes, and make position size explicit as a percentage of total account equity.
It prioritizes disciplined allocation and risk visibility rather than promising a fixed win rate or guaranteed outperformance. Strategy

TEWMA Slope Oscillator - [JTCAPITAL]TEWMA Slope Oscillator - is a modified way to use a Triple Exponential Weighted Moving Average (TEWMA), normalized slope analysis, ATR volatility normalization, and exponential smoothing for Trend-Following and Momentum Analysis.
Unlike traditional oscillators that are derived directly from price, this indicator measures the rate of change (slope) of a custom TEWMA trend line. By normalizing this slope with the Average True Range (ATR), the oscillator becomes volatility-adjusted, allowing trend strength to be compared across different market conditions. This makes the indicator useful for identifying whether trends are merely moving, or accelerating with meaningful momentum.
The indicator works by calculating in the following steps:
Weighted Price Smoothing
The selected price source (Close by default, although any PulseWire source can be selected) is first smoothed using a Weighted Moving Average (WMA). Unlike a Simple Moving Average, the WMA gives progressively greater importance to the most recent price bars while still considering historical data. This reduces market noise while allowing the moving average to react faster to recent changes.
Rather than relying on a single smoothing period, the script prepares two separate smoothing lengths:
The original TEWMA Length.
A second length calculated as the original length multiplied by the user-defined Length Multiplier.
This creates two trend measurements that represent both medium-term and slower market behavior.
Triple Exponential Processing (TEMA)
Each Weighted Moving Average is then processed using a Triple Exponential Moving Average (TEMA).
The Triple Exponential Moving Average is specifically designed to reduce lag while maintaining smoothness. Traditional moving averages often delay reactions because every layer of smoothing introduces additional latency. TEMA compensates for much of this lag mathematically by combining multiple exponential averages into a single result.
Applying TEMA on top of the Weighted Moving Average creates a very responsive yet smooth trend estimate that filters insignificant fluctuations while remaining sensitive to genuine trend changes.
Dual TEWMA Construction
Instead of relying on only one moving average, the indicator calculates two separate TEWMAs:
One using the original period.
One using the multiplied period.
The final TEWMA becomes the average of these two curves.
Averaging both trend estimates balances responsiveness with stability. The shorter TEWMA reacts more quickly to new market information, while the longer TEWMA filters larger amounts of noise. Combining both produces a smoother trend representation that avoids becoming overly reactive while still responding efficiently to changing market conditions.
Trend Direction Detection
The script continuously compares the current TEWMA with its previous value.
If today's TEWMA is higher than the previous value, the trend is considered bullish.
If today's TEWMA is lower than the previous value, the trend is considered bearish.
The indicator stores this direction internally and uses it for its visual coloring, making bullish periods immediately recognizable in blue while bearish periods appear in purple.
Slope Calculation
After constructing the final TEWMA, the script measures its slope.
Rather than measuring price itself, the oscillator calculates:
"The difference between today's TEWMA and yesterday's TEWMA."
This produces a measurement of how quickly the trend itself is changing.
Positive values indicate the trend is rising.
Negative values indicate the trend is falling.
Larger absolute values indicate stronger acceleration.
Smaller values near zero indicate slowing momentum or sideways conditions.
ATR Normalization
Instead of using the raw slope, the script divides the slope by the Average True Range (ATR).
This normalization is one of the defining characteristics of the indicator.
Without ATR normalization, identical price movements would appear much larger on low-priced assets than on expensive assets.
By dividing by ATR:
Large volatility environments become comparable with quiet markets.
Different assets become easier to compare.
Oscillator values represent trend strength relative to current market volatility rather than raw price movement.
The result is a dimensionless momentum measurement that remains much more consistent across instruments and timeframes.
EMA Signal Smoothing
Although the normalized slope already provides valuable information, short-term fluctuations may still produce rapid oscillations.
To improve readability, the script applies an Exponential Moving Average (EMA) directly to the slope values.
This smoothed line acts as a slower confirmation curve.
The raw slope reflects immediate momentum.
The EMA reflects sustained momentum.
Comparing these two allows traders to distinguish between temporary spikes and persistent trend acceleration.
Momentum Zone Detection
The indicator introduces user-defined upper and lower threshold levels.
When the normalized slope exceeds the upper threshold:
-The market is considered to have unusually strong bullish momentum.
When the normalized slope falls below the lower threshold:
-The market is considered to have unusually strong bearish momentum.
The same logic is independently applied to the smoothed EMA line.
Whenever either condition is satisfied, the background color changes to highlight periods of exceptional trend strength.
These zones do not generate trading signals by themselves, but instead emphasize moments where momentum has reached statistically significant levels relative to recent volatility.
Buy and Sell Conditions:
This indicator is intentionally designed as a momentum and trend-strength oscillator rather than a direct entry generator.
Typical bullish interpretation includes:
The TEWMA begins rising.
The normalized slope crosses above zero.
The smoothed EMA also moves above zero.
The oscillator continues accelerating toward or above the upper threshold.
Typical bearish interpretation includes:
The TEWMA begins falling.
The normalized slope crosses below zero.
The smoothed EMA confirms the move below zero.
The oscillator continues toward or below the lower threshold.
Because both the raw slope and its EMA are displayed simultaneously, traders can judge whether momentum is strengthening, weakening, or beginning to reverse before the underlying trend itself changes direction.
The threshold values can be adjusted depending on trading style:
Lower threshold values produce earlier but more frequent momentum alerts.
Higher threshold values require stronger momentum before highlighting extreme conditions, reducing market noise.
The smoothing period can also be increased or decreased depending on whether faster or more conservative confirmation is preferred.
Features and Parameters:
Source
Selects which price source is used for all calculations.
TEWMA Length
Controls the primary Weighted Moving Average and TEMA calculation period.
Length Multiplier
Creates the second TEWMA period by multiplying the original length, allowing the indicator to combine two different trend horizons.
Smoothed Length
Determines the EMA period applied to the normalized slope.
Upper Threshold
Defines the bullish momentum level where background highlighting begins.
Lower Threshold
Defines the bearish momentum level where background highlighting begins.
ATR Length
Controls the Average True Range period used to normalize slope values.
Dual Oscillator Display
Shows both the raw normalized slope and its EMA simultaneously.
Dynamic Coloring
Automatically colors bullish momentum blue and bearish momentum purple.
Background Momentum Zones
Highlights periods where either the raw slope or smoothed slope exceeds user-defined strength thresholds.
Specifications:
Weighted Moving Average (WMA)
The Weighted Moving Average assigns progressively larger weights to newer prices while assigning smaller weights to older observations. This allows the moving average to respond faster than a Simple Moving Average while still maintaining smoothness. Because recent market activity receives greater influence, the WMA provides an excellent foundation for responsive trend calculations.
Triple Exponential Moving Average (TEMA)
The Triple Exponential Moving Average is designed to significantly reduce lag compared to traditional moving averages. Instead of relying on a single exponential smoothing process, TEMA mathematically combines multiple exponential averages to compensate for the delay introduced by smoothing. This produces a trend line that reacts quickly while maintaining a clean appearance.
TEWMA (Triple Exponential Weighted Moving Average)
The TEWMA combines the advantages of a Weighted Moving Average with the lag-reduction properties of the Triple Exponential Moving Average. The result is a trend estimate that reacts rapidly to meaningful price movement while filtering much of the short-term market noise that can affect conventional moving averages.
Dual-Length Averaging
Instead of relying on one smoothing horizon, the indicator averages two independently calculated TEWMAs. Combining a faster and slower trend estimate helps reduce false directional changes while preserving responsiveness. This dual-length construction creates a more balanced representation of market structure than either length would provide individually.
Slope
Slope measures how quickly the TEWMA itself changes from one bar to the next. Rather than evaluating where price is located, the indicator evaluates how rapidly the trend line is moving. Increasing positive slope reflects accelerating bullish momentum, while increasingly negative slope reflects accelerating bearish momentum.
Average True Range (ATR)
Average True Range measures recent market volatility by considering both daily ranges and price gaps. ATR does not indicate trend direction but instead measures how much price typically moves. Dividing the slope by ATR converts raw movement into a volatility-adjusted measurement, making momentum readings far more consistent across different instruments and market environments.
ATR Normalization
Normalization removes much of the distortion caused by differing price scales and volatility regimes. A movement that appears large on one market may be insignificant on another. By scaling the slope using ATR, the oscillator expresses momentum relative to current market conditions rather than absolute price movement.
Exponential Moving Average (EMA)
The EMA applied to the slope acts as a momentum confirmation filter. Because exponential averages place greater emphasis on recent observations, the smoothed oscillator follows changes efficiently while filtering much of the short-term fluctuation present in the raw slope.
Momentum Oscillator
Unlike oscillators derived directly from price, this oscillator measures the strength and speed of the underlying trend itself. Positive readings indicate bullish trend acceleration, negative readings indicate bearish acceleration, and values near zero indicate weakening momentum or balanced market conditions.
Threshold Levels
The upper and lower thresholds define momentum zones where the normalized slope has become unusually strong relative to recent volatility. These levels are fully customizable, allowing traders to adapt the indicator to different markets, trading styles, and volatility environments.
Trend Momentum Confirmation
Displaying both the raw normalized slope and its smoothed EMA provides two perspectives on market momentum. The raw slope captures immediate changes, while the EMA reflects sustained movement. Together they help distinguish short-lived fluctuations from genuine trend acceleration, making it easier to evaluate the quality and persistence of directional momentum.
Enjoy! Indicator

PING - Regime & Style Fit [Technical-Trades]Every chart timeframe implies a trading style — sub-5-minute charts are scalping territory, 5m–1h is intraday, roughly 2h–daily is swing, weekly and above is position trading — and every market phase treats those styles differently. Many losing streaks are not bad entries; they are a style/conditions mismatch: scalping chop, swing-trading a dead base, fading a tape that is trending.
PING answers one question about whatever chart you have open: do current conditions fit the style this timeframe belongs to?
WHAT THE HUD SHOWS
- Timeframe · style band — which of the four style bands your chart timeframe belongs to (SCALP under 5m · DAY 5m–1h · SWING ~2h–1D · POSITION 1W and above; in-between timeframes round to the nearest class).
- Regime — one of four coarse market characters on this chart timeframe: TREND ↑, TREND ↓, RANGE, or VOL CHOP.
- Character — the two raw measurements behind the call: the Aroon oscillator (−100…+100) and how wide the recent high-low span is versus its own baseline (×).
- Fit — ● FAVORABLE, ◐ MIXED / STAND-BY, or ○ CAUTION for this timeframe's style, plus a one-line read explaining why. A quiet range with an unusually narrow span is additionally tagged coiled — compression that often precedes expansion.
An optional background tint and bar coloring paint the regime directly on the chart.
HOW IT WORKS (THE WHOLE ENGINE, NOTHING HIDDEN)
Two commodity measurements, both read from nothing but the rolling price extremes, computed on the chart timeframe only:
1. Trend + side — the Aroon oscillator (length 25, the indicator's original default, lightly smoothed with a 3-bar average): how recently the 25-bar high was made versus the 25-bar low, on a −100…+100 scale. Fresh highs with stale lows read strongly positive (uptrend); the reverse reads strongly negative. At or above ±70 — the conventional strong-trend line — the tape is called directional, and the sign picks the side.
2. Volatility — the high-low span of the last 40 bars as a percent of price, compared to its own 150-bar average, so "wide" and "narrow" are always relative to this market on this timeframe.
Regime resolution: oscillator magnitude at or above the threshold = trending. Not trending with the span at or above 1.6× its baseline = VOL CHOP (large, directionless swings). Everything else = RANGE, tagged coiled when the span sits at or below 0.5× — half its normal width, compression that often precedes expansion. All thresholds are inputs.
WHAT PING DELIBERATELY DOES NOT DO
No entries, no exits, no levels, no arrows, and no higher-timeframe requests — there is not a single request.security() call in the code. It diagnoses conditions; what you do with that is your process.
HONEST LIMITATIONS
The engine has no hysteresis and no state memory beyond the 3-bar smooth, so bars near a threshold can flip the read back and forth — the cost of keeping the math this simple and fully inspectable. Early chart history defaults to RANGE until the 150-bar span baseline warms up; that is expected, not a bug. The HUD updates on the developing bar like any indicator.
ALERTS (recommend "Once per bar close"; conditions are additionally gated to confirmed bars in code)
- Regime changed
- Fit turned FAVORABLE
- Fit turned CAUTION
Works on any symbol and any timeframe. Educational tool — not financial advice and not a signal service. Indicator

Indicator

Indicator

Indicator

Strategy

Indicator

Indicator

ATK / DEF Directional Movement State EngineDescription
ATK / DEF Directional Movement State Engine is a market condition analysis framework built around the Directional Movement Index (DMI) system.
Unlike traditional DMI tools that mainly display +DI, -DI, and ADX values, this indicator focuses on interpre the effectiveness and current condition of directional movement through multiple analytical layers.
The engine combines directional strength, trend structure, volatility behavior, and price action characteristics to provide a structured view of market conditions.
The purpose of this framework is to evalu the qual of directional movement and understand the current state of market behavior.
Directional Movement Core
The foundation of this indicator is based on the DMI and ADX framework.
It analyzes:
+DI directional pressure
-DI directional pressure
ADX directional strength
The relationship between these components is used to class the current movement environment, including:
Strong directional conditions
Weak directional conditions
Balanced movement
Swinging conditions
Rather than focusing on a single numeri rea, the engine evalua how directional components interact with the broader market structure.
ATK / DEF Market State Concept
The ATK / DEF framework represents two different market behaviors.
ATK (Attack State)
Describes environments where directional movement demonstrates stronger activity and clearer momentum characteristics.
DEF (Defense State)
Describes environments where directional movement becomes weaker, balanced, or less defined.
The engine observes these states through directional strength, price structure, and movement behavior to describe the current market condition.
Directional Radar System
The Radar module analyzes current price behavior by combining candle structure and market movement characteristics.
It evaluates:
Candle body efficiency
Price range behavior
Directional pressure
Trend positioning
Short-term movement characterist
The radar provides a visual representation of the current behavioral condition, helping use understand whether the market is displaying expansion, decline, compression, or swing characteristics.
Trend Structure Analysis
The trend module evaluates market structure through multiple moving average relationships and price positioning.
It observes:
Short- trend direction
Medium-alignment
Long- structural condition
This provides additional context for understanding the relationship between directional movement and the overall price structure.
Velocity Measurement
The Velocity component measures current movement intensit through volatility conditions.
It evalua price movement range relative to recent market activity to describe different leve of movement speed.
This helps identify whether the current environment is experiencing:
Lower activity conditions
Normal movement conditions
Higher volatility conditions
Market Regime Observation
The Regime module evaluates changes in market activity using volatility structure.
It observes:
Expansion conditions
Contraction conditions
Range environments
This provides additional context around how the market is currently behaving.
ADX State Classification
The ADX state engine combines ADX strength with DI relationships to categorize directional conditions.
The classification includes:
Strong U
Strong D
Weak U
Weak D
Swing Condition
These states are designed to describe the current directional environment rather than forecast future market movement.
Integrated Dashboard
The built-in dashboard organizes multiple analytical components into a single view:
Engine status
Velocity level
Radar condition
Trend direction
Market regime
ADX state
Current price information
The dashboard provides a compact overview of market structure and directional behavior.
Design Philosophy
ATK / DEF Directional Movement State Engine is designed around the concept that market movement should be analyzed through multiple layers rather than a single indicator value.
By combining:
Directional movement analysis
ADX strength evaluation
Trend structure
Volatility behavior
Price action characteristics
the indicator provides a structured framework for observing market conditions and understanding directional movement effectiveness.
This tool is designed for analytical purposes, helping users stu market behavior, movement structure, and directional dynamics. Indicator

Strat Reversal Read Stoch DMI v1.0OVERVIEW
Strat Reversal Context — Stochastic + DMI/ADX is a lower-pane analysis tool designed to evaluate the market environment surrounding price-action reversal patterns.
The indicator does not detect Strat patterns, generate trade entries, or predict that a reversal will succeed. Instead, it is intended to be used alongside a separate price-action or Strat-pattern indicator.
It combines three types of information:
1. Stochastic range location
2. DMI/ADX directional pressure
3. Optional higher-timeframe candle direction
Together, these components address three questions:
• Is price currently at, approaching, or recently leaving an overbought or oversold area?
• Is the existing upward or downward directional pressure rising, holding, or fading?
• Would a contemplated reversal point with or against the selected higher-timeframe direction?
PURPOSE AND ORIGINALITY
This script is not simply a visual combination of a Stochastic oscillator and DMI/ADX.
Its primary contribution is a state-classification engine that interprets the relationship between:
• The location of both Stochastic lines
• The relative position of +DI and −DI
• Whether the distance between +DI and −DI is widening or narrowing
• Whether ADX is rising, falling, or relatively unchanged
• The direction of one user-selected higher timeframe
The script converts those relationships into plain-language observations intended to complement price-action reversal analysis.
Examples include:
• LOOK FOR BULL REVERSAL
• BULL REVERSAL EARLY
• 2D STILL IN FORCE
• LOOK FOR BEAR REVERSAL
• BEAR REVERSAL EARLY
• 2U STILL IN FORCE
These classifications are contextual observations only. They are not buy or sell signals and are not presented as probabilities.
STOCHASTIC COMPONENT
The Stochastic oscillator measures the location of the current close within the recent high-low range.
The default settings are:
• Stochastic length: 14
• %K smoothing: 3
• %D smoothing: 3
• Overbought level: 80
• Oversold level: 20
The script distinguishes among three types of oscillator location.
FULL EXTREME
Both %K and %D are beyond the selected threshold.
Examples:
• Both lines at or below 20: OVERSOLD
• Both lines at or above 80: OVERBOUGHT
EARLY EXTREME
One Stochastic line has reached the selected threshold while the other has not yet reached it.
Examples:
• OVERSOLD EARLY
• OVERBOUGHT EARLY
RECENT EXTREME
After both lines have reached an extreme, the condition can remain relevant for a user-selected number of analysis-timeframe candles.
Examples:
• RECENTLY OVERSOLD
• RECENTLY OVERBOUGHT
This recent-extreme window allows the oscillator to identify an area of interest without requiring the price-action reversal to occur on the exact candle when both Stochastic lines cross the threshold.
DMI AND ADX COMPONENT
DMI and ADX are used to evaluate directional pressure.
• +DI represents upward directional movement.
• −DI represents downward directional movement.
• ADX measures the strength of the directional movement without independently identifying bullish or bearish direction.
The script uses Strat-style language for directional pressure:
• 2U pressure means upward directional pressure.
• 2D pressure means downward directional pressure.
These labels describe DMI pressure only. They do not classify the actual price candle as a 2U or 2D candle.
The script compares the current DMI and ADX readings with their values a user-selected number of candles earlier.
The pressure read can display:
• 2U RISING
• 2U HOLDING
• 2U FADING
• 2D RISING
• 2D HOLDING
• 2D FADING
• BALANCED
RISING PRESSURE
Directional pressure is classified as rising when:
• The corresponding DI line is dominant
• ADX is rising by at least the selected minimum amount
• The distance between the dominant and opposing DI lines is widening
FADING PRESSURE
Directional pressure can be classified as fading when:
• ADX is declining, or
• The distance between the dominant and opposing DI lines is narrowing
HOLDING PRESSURE
Pressure is classified as holding when neither the rising nor fading conditions are met.
ACTION STATES
LOOK FOR BULL REVERSAL
This state requires a full or recently oversold Stochastic area and evidence that downside pressure is no longer strongly expanding, or that upward DMI pressure has taken control.
Actionable interpretation:
Watch for a separately confirmed bullish price-action reversal pattern. Do not enter based on this classification alone.
BULL REVERSAL EARLY
An oversold area may be developing, but the Stochastic or DMI/ADX conditions have not yet reached the stronger bullish-reversal classification.
Actionable interpretation:
Pay attention, but do not anticipate a reversal before price confirms one.
2D STILL IN FORCE
Stochastic is oversold or approaching oversold, but:
• −DI remains dominant
• ADX is above the selected strong-trend threshold
• ADX is rising
• The bearish DMI gap is widening
Actionable interpretation:
Do not assume that oversold automatically means price must reverse. Downward directional pressure remains active, so any bullish reversal pattern is attempting to reverse continuing downside pressure.
LOOK FOR BEAR REVERSAL
This is the bearish mirror of LOOK FOR BULL REVERSAL.
A full or recently overbought Stochastic area is present, and upward pressure is no longer strongly expanding, or downward DMI pressure has taken control.
Actionable interpretation:
Watch for a separately confirmed bearish price-action reversal pattern.
BEAR REVERSAL EARLY
An overbought area may be developing, but the oscillator or directional-pressure conditions have not yet reached the stronger bearish-reversal classification.
Actionable interpretation:
Watch the area, but do not anticipate a bearish reversal before price confirms one.
2U STILL IN FORCE
Stochastic is overbought or approaching overbought, but:
• +DI remains dominant
• ADX is above the selected strong-trend threshold
• ADX is rising
• The bullish DMI gap is widening
Actionable interpretation:
Do not assume that overbought automatically means price must reverse. Upward directional pressure remains active.
HIGHER-TIMEFRAME CONTEXT
The user can select one timeframe for higher-timeframe context.
For example:
• Analysis timeframe: 15 minutes
• Higher-timeframe context: 4 hours
The selected higher-timeframe candle is classified as:
• BULL when its close is above its open
• BEAR when its close is below its open
• NEUTRAL when its close equals its open
The table then compares the contemplated reversal direction with the selected higher-timeframe direction.
WITH HTF
A bullish reversal is aligned when the selected higher timeframe is bullish.
A bearish reversal is aligned when the selected higher timeframe is bearish.
AGAINST HTF
A bullish reversal is against the selected higher timeframe when that timeframe is bearish.
A bearish reversal is against the selected higher timeframe when that timeframe is bullish.
This alignment does not validate or invalidate a reversal. It tells the user whether the contemplated reversal would move with or against the selected higher-timeframe candle direction.
The higher-timeframe context is not a complete multi-timeframe-continuity calculation. It represents the direction of one user-selected timeframe only.
HIGHER-TIMEFRAME CANDLE MODES
LAST CLOSED
The default setting uses the most recently completed candle from the selected higher timeframe.
This produces a stable higher-timeframe directional read.
LIVE
The live option uses the currently developing higher-timeframe candle.
Because the candle has not closed, its direction can change before completion. Users should account for this when relying on live higher-timeframe information.
ANALYSIS TIMEFRAME
The Stochastic, DMI, ADX, pressure classifications, action states, and ribbon can be calculated from a user-selected analysis timeframe.
Leaving the input blank uses the current chart timeframe.
Selecting another timeframe allows, for example:
• A 15-minute analysis read on a 5-minute chart
• A 1-hour analysis read on a 15-minute chart
When the selected analysis timeframe is higher than the chart timeframe, its developing values may change until that analysis-timeframe candle closes.
DISPLAY
The lower pane includes:
• Blue %K Stochastic line
• Orange %D Stochastic line
• Overbought and oversold reference levels
• User-adjustable 50 centerline
• Historical action-state ribbon
• Current-state action table
• Adjustable ribbon color legend
The centerline can be customized by:
• Color
• Thickness
• Solid, dashed, or dotted style
The action ribbon records the historical classification associated with each chart candle. Its thickness and vertical position are adjustable.
The legend identifies the ribbon colors for:
• LOOK BULL
• BULL EARLY
• 2D ACTIVE
• LOOK BEAR
• BEAR EARLY
• 2U ACTIVE
• NO EXTREME
Optional diagnostic plots can display:
• ADX
• +DI
• −DI
These lines are hidden by default to keep the primary display uncluttered.
ACTION TABLE
The current-state table displays:
• Analysis timeframe
• Stochastic area
• Directional pressure and ADX behavior
• Selected higher-timeframe direction
• Alignment with or against that timeframe
• Current action classification
• Plain-language trader thought
Example:
TIMEFRAME 15m
STOCH RECENTLY OVERSOLD
PRESSURE 2D FADING | ADX 18.4 FALLING
HTF DIRECTION 4H BULL | CLOSED
ALIGNMENT WITH HTF
ACTION LOOK FOR BULL REVERSAL
THOUGHT BULL STRAT — WITH HTF
HOW TO USE
1. Select the timeframe from which the Stochastic and DMI/ADX environment should be calculated.
2. Select one higher timeframe for directional context.
3. Observe whether the indicator identifies an overbought, oversold, early, or recent-extreme area.
4. Read whether 2U or 2D directional pressure is rising, holding, or fading.
5. Wait for a separately confirmed price-action reversal pattern.
6. Use the HTF row to determine whether that contemplated reversal would move with or against the selected higher-timeframe candle direction.
The script is intended to provide context for a trader’s existing reversal methodology. It should not replace independent price-action confirmation, risk management, or testing.
ALERTS
Alert conditions are available for transitions into:
• LOOK FOR BULL REVERSAL
• LOOK FOR BEAR REVERSAL
• 2D STILL IN FORCE
• 2U STILL IN FORCE
Alerts identify a change in the calculated environment. They do not represent trade-entry instructions.
LIMITATIONS
All components are derived from price data. Stochastic, DMI, ADX, and price-action patterns are therefore related observations rather than independent sources of information.
Overbought conditions can persist during strong upward movement. Oversold conditions can persist during strong downward movement.
DMI and ADX are lagging calculations and may respond after directional movement has already begun.
A higher-timeframe candle direction is not equivalent to complete higher-timeframe continuity.
This indicator has not been presented as a backtested trading strategy. It does not calculate win rate, expected value, profitability, or the probability that a reversal will succeed.
The classifications are descriptive states based on the selected inputs. Traders should independently test the states across their chosen symbols, markets, sessions, and timeframes.
This script is an independent analytical tool and is not affiliated with or endorsed by TheStrat or its creators. Indicator

ATK/DEF HIGH LOW Fibonacci Battlefield ATK/DEF HIGH LOW Fibonacci Battlefield is a multi-factor market structure analysis framework designed to evalua the quality and behavior characte of swing highs and swing lows through the combination of Fibonacci positio, pric behavior, liquidity activity, and market pressure analysis.
Unlike traditional swing high and swing low identification tools that only mark histori tur poin based on pric locatn, this indicator focuses on stu the internal characts behind each detec high and low area.
The purpose of this framework is to provide additional structural context by evalua ho price interact with important swing locatio and how market activity changes around those areas.
The indicator combines three major analytical components into a unified battlefield evalua model:
1. Fibonacci Battlefield Structure
The Fibonacci Battlefield module evalua the position of pric within the current histori rang and analyzes the relationship between swing points and Fibonacci-based pric areas.
This component studies:
• Current pric location within the measured range
• Fibonacci retracement positionin Distance between pric and important Fibonacci lev
• Structural reaction areas around previous highs and lows
Instead of treati Fibonacci leve as isolated horizontal lines, this module uses Fibonacci positioning as a framework to analyze the relative location and condition of pric within a market structure.
The module provides a structural perspecti of whether historical swing areas are located near important Fibonacci zo and how these areas relae to current pric behavior.
2. Whirlpool Pressure Index
The Whirlpool Pressure Index evalua candle behavior and internal pric pressure by analyzing the relationship between bu pressure and se pressure.
This component examines:
• Candle rang distribution
• Closing position within the candle range
• Bu and se pressure balance
• Current pressure intensity around pric areas
The purpose of this calcula is to measure the behavioral characteristics of pric movement and understand the strength of interacti occurring near detec swing highs and swing lows.
It does not attempt to predfuture movement. Instead, it provides a quantimeasurement of current pric behavior based on historical candle information.
3. Liquidity Accelerator / Decelerator
The Liquidity Accelerator / Decelerator module evaluat changes in activity by analyzing volume behavior relative to its historic average.
This component focuses on:
• Relative volume activity
• Changes in market participation
• Liquidity expansion and contrac conditions
• Volume activity intensity around pric movement
The volume calcula is used as a market activity measurement and control reference, helping evalua whether a swing area is formed during stronger or weaker participation conditions.
This module represents volume activity analysis and is not a volume distribution profile or volume profile visualization.
High / Low Behavior Evaluation
The indicator identif swing highs and swing lows and attach multiple analytical measurements to each structural point.
Each detected high and low area can be evaluated through:
• Fibonacci structural position
• Price reaction characteristics
• Pressure condition
• Liquidity activity
• Market behavior context
This allows historical swing locatio to be stubeyond simple pric levels.
The framework focuses on the quality and characteristics of swing points rather than only identifyi where previous highs and lows occurred.
Integrated Battlefield Dashboard
The dashboard combines multiple analytical measurements into a compact information panel.
Displayed information includes:
• Fibonacci structural condition
• Pressure balance measurement
• Liquidity activity condition
• Flow balance characteristics
• Current market environment status
The dashboard is designed to provide a structured overview of market behavior and pric conditions from multiple perspectives.
Market Condition Analysis
The market condition module evaluat the current relationship between pric exten, momentum characteristics, and recent pric range behavior.
It analyzes:
• RSI positioning
• Recent pric extremes
• Momentum condition
• Pric and oscillator relationship
This component is designed to describe the current market environment and highlight changes in pric behavior characteristics.
It is a condition measurement tool based on historical market data rather than a prediction system.
Core Features
• Swing High and Swing Low structural analysis
• Fibonacci-based battlefield framework
• Pric behavior evaluati
• Candle pressure measurement
• Volume activity analysis
• Liquidity condition tracking
• Multi-factor market structure dashboard
• Historical swing point contextual analysis
• Quantitative evaluat of pric areas
• Integrat structural and behavioral analysis framework
Concept
ATK/DEF HIGH LOW Fibonacci Battlefield is designed to stu the relationship between pric structure, market participation, and behavioral characteristics.
Traditional swing tools mainy focus on identifying previous highs and lows. This framework expas the analysis by combining structural position, candle behavior, and volume activity to evalua the characteris behind each swing location.
All calculat are derived from historical market data and are intended for market research, technical analysis, and structural observation purposes.
The displayed values represent analytical measurements of pric behavior, liquidity conditions, and market structure characteristics. Indicator

DMI Badge by ByblloOVERVIEW
This indicator is a standalone signal tool built entirely on Welles Wilder's classic Directional Movement System (DMI/ADX) - a well-established, publicly documented trend-strength methodology, not a proprietary or borrowed technique. It plots a Long badge whenever DI+ crosses above DI- (a "DMI golden cross") and a Short badge whenever DI- crosses above DI+ (a "DMI dead cross"), but only when the ADX line is at or above a minimum threshold you set, so only crosses that occur during a genuinely trending market (not a flat, directionless one) get marked. A cooldown input additionally prevents multiple badges from firing back-to-back on choppy, noisy price action right after a signal.
The purpose of this script is to give traders a lightweight, single-purpose way to see DMI-based directional shifts directly on the price chart, without having to keep a separate DMI/ADX subchart open and visually track two crossing lines plus a strength filter at the same time. It intentionally does no other job than this - it has no EMA logic, no trade/position management, no stop-loss handling - so it can be added to any chart on its own as a pure DMI signal layer, independent of any other system or script.
CALCULATION METHOD
True Range, +DM (Directional Movement Plus) and -DM are computed bar-by-bar from real market high/low/close values.
These are smoothed using Wilder's running smoothing method (SmoothedX = PreviousSmoothedX - PreviousSmoothedX/Length + CurrentValue), the same smoothing technique used in Wilder's original 1978 publication of the Directional Movement System - this is different from a simple moving average and reacts more gradually to new data.
DI+ and DI- are each derived as (Smoothed Directional Movement / Smoothed True Range) * 100.
DX is calculated as the absolute difference between DI+ and DI-, divided by their sum, then multiplied by 100.
ADX is a simple moving average of DX over the same length, representing overall trend strength regardless of direction.
A Long badge requires DI+ crossing above DI- AND ADX at or above the threshold AND the cooldown period having elapsed since the last badge. A Short badge uses the mirrored condition with DI- crossing above DI+.
KEY FEATURES
Long badge on a DMI golden cross (DI+ crossing above DI-), Short badge on a DMI dead cross (DI- crossing above DI+).
ADX threshold filter: a badge only appears when ADX is at or above your configured minimum, filtering out crosses that occur without real directional strength behind them.
Badge spacing (cooldown, in bars) prevents duplicate badges from firing on consecutive bars right after a signal.
Real-price calculation: prices are pulled via request.security() against the plain ticker, so signals stay consistent whether your chart is displaying candlesticks, Heikin Ashi, Renko, or any other non-standard chart type.
alertcondition() calls for both Long and Short badges, ready to use for PulseWire alerts.
HOW TO USE
A Long badge below the bar means DI+ has just crossed above DI- with ADX at or above your threshold - a bullish directional shift with trend strength behind it.
A Short badge above the bar means DI- has just crossed above DI+ with ADX at or above your threshold - a bearish directional shift with trend strength behind it.
Raise the ADX threshold to show fewer, higher-conviction badges; lower it to see more crosses, including weaker ones.
Increase "Badge Spacing" if you want more separation between consecutive badges on choppy charts.
Because this only implements the DMI/ADX layer on its own, it can be combined on the same chart with any other trend, momentum, or price-action tool you already use, without conflicting logic.
NOTES
This indicator only plots DMI-based signals; it does not include any EMA logic, stop-loss/take-profit management, or position tracking of any kind - it is intentionally scoped to be a single-purpose DMI/ADX signal layer rather than a full trading system. Indicator

Range Profile Oscillator█ OVERVIEW
Range Profile Oscillator is a momentum oscillator that analyzes the position of price relative to a dynamic price range profile (Range Profile). Within a defined historical window the script builds a profile of price activity, locates its point of highest activity concentration and the boundaries of the overbought and oversold zones, then measures how far the current price has moved away from this equilibrium area.
Unlike traditional oscillators, the reference levels are neither fixed nor based solely on price changes. They are calculated from the distribution of price activity across the entire analyzed range, so they automatically adapt to the current market structure. As a result, signals appear only when price truly leaves the area considered typical for recent market activity.
The indicator generates BUY and SELL signals when the oscillator line breaks out beyond the dynamic Overbought (OB) and Oversold (OS) zones. It can also color candles according to the current oscillator direction, highlight the background on breakouts, and automatically plot Entry, Stop Loss and Take Profit levels using either ATR or a fixed percentage risk.
The result is a tool that combines price location analysis, momentum and adaptive market equilibrium levels. This helps distinguish ordinary price fluctuations from moments when the market genuinely breaks out of its characteristic range.
█ CONCEPTS
Range Profile
The foundation of the indicator is the Range Profile — an analysis of the distribution of price activity within the selected historical range. The entire price range is divided into many small intervals (bins), and the candle activity falling into each of them is counted. This creates a profile that shows the levels where price spent the most time.
Instead of assuming that the market center lies exactly halfway between the highest and lowest price, the indicator locates it at the level of highest activity concentration. This provides a much more accurate reflection of true market equilibrium.
Dynamic equilibrium line (Midline)
The Midline represents the level around which the market spent the most time in the analyzed period. The oscillator value is calculated from this level.
When price is close to the Midline it remains in the equilibrium area. The farther it moves away from this level, the stronger the momentum becomes and the higher the probability of entering the overbought or oversold zone.
Dynamic Overbought and Oversold zones
The overbought and oversold boundaries are not fixed. They are derived from the current market profile and automatically expand or contract with changes in volatility and price structure.
This allows the indicator to adapt its sensitivity to market conditions. In quiet markets the zones become narrower; during high volatility they widen, reducing the number of random signals.
Price location oscillator
The oscillator line shows how far the current price is from the point of highest activity concentration (Midline) relative to the width of the entire profile.
Values near zero indicate trading inside the equilibrium area, while a rising or falling oscillator reflects an increasing distance from the typical range. Crossing the OB or OS boundaries means the market has reached an extreme position relative to its current profile.
Breakout signals
A BUY signal is generated when the oscillator breaks above the Overbought zone; a SELL signal appears when it breaks below the Oversold zone.
An optional signal filter prevents repeated signals in the same direction. A new BUY can appear only after a previous SELL (and vice versa), which limits the number of consecutive same-direction signals during strong trends.
Momentum visualization
The color of the oscillator line and, optionally, the candles reflects the current market state:
* bullish color indicates a breakout above the Overbought zone,
* bearish color indicates a breakout below the Oversold zone,
* neutral color shows that price is still inside the normal range.
In addition, the gradient and background highlighting visualize the strength of the breakout beyond the profile boundaries, making the most dynamic moves immediately visible on the chart.
█ FEATURES
Calculation Settings
• Lookback Bars – number of historical bars used to build the range profile, determine the Midline and the OB/OS channel boundaries
• OB/OS Level – distance from the Midline (as a % of half the channel width) that defines the Overbought and Oversold zones; a breakout beyond this level triggers a signal
Signals
• Highlight Background on Breakout – colors the chart background when the oscillator line breaks above/below the OB/OS channel
• Background Highlight Transparency – adjusts the transparency of the background breakout highlight
• Show BUY/SELL Labels – plots BUY or SELL labels on the main chart whenever a breakout signal fires
• Signal Filter – blocks repeated signals in the same direction (a new BUY only after a SELL and vice versa)
Appearance
• Show Breakout Gradient – fills the area between the signal line and the OB/OS boundary with a gradient whenever price is outside the channel
• Color Candles by Signal Line – colors the main-chart candles using the same color as the signal line (bullish / bearish / neutral)
Colors
• Bullish Color, Bearish Color, Neutral Color – three consistent colors used throughout the indicator for lines, fills, labels, signals and candles
TP/SL
• Show TP/SL – automatically draws Entry, Stop Loss and Take Profit levels on the main chart whenever a breakout signal fires
• SL = ATR × instead of % – choice between an ATR-based stop-loss (ATR × multiplier) or a fixed percentage of the entry price
• ATR Period and SL ATR Multiplier – parameters for the ATR-based stop-loss
• SL % from Entry – percentage stop-loss distance (used when ATR is disabled)
• TP1 RR / TP2 RR / TP3 RR – Risk:Reward multiples for the three Take Profit levels
• Independent on/off switches for displaying SL, TP1, TP2 and TP3
Alerts
• Alert on breakout above the Overbought zone
• Alert on breakout below the Oversold zone
█ APPLICATIONS
Identifying breakouts beyond the equilibrium area
The indicator helps distinguish ordinary price fluctuations inside the typical range from moments when the market leaves the zone of highest activity. Signals appear only when the oscillator breaks the dynamic OB/OS boundaries.
Breakouts as a potential start of a stronger move
Breakouts beyond the OB/OS zone often mark the beginning of a stronger move or a new trend, so the signals can serve a role similar to classic trend indicators. They should not, however, be treated automatically as entry points. Before acting it is advisable to examine the broader context: whether the signal occurs near a significant support/resistance zone and whether it is confirmed by other technical analysis tools (e.g. market structure, momentum, volume).
Risk management directly on the chart
The automatic Entry, SL and TP levels allow a quick assessment of the potential risk-to-reward ratio for each signal. You can use either ATR or a fixed percentage, adjusting the parameters to your trading style and the instrument’s volatility.
Visual assessment of momentum strength
The color of the oscillator line, the candles and the breakout gradient immediately show whether the market is still inside the equilibrium zone or has already entered overbought/oversold territory. Background highlighting further draws attention to the moment of the breakout.
Complementing other analysis methods
Range Profile Oscillator signals can act as a filter or confirmation for strategies based on market structure, support/resistance, order flow or classic momentum oscillators.
Matching lookback to trading style
The lookback value should be chosen according to the timeframe and trading horizon. A shorter lookback reacts faster to local structural changes; a longer one better reflects the broader market context.
█ NOTES
• The Midline and OB/OS zones are recalculated on every bar from the most recent lookback window — the indicator automatically adapts to the current market structure.
• BUY/SELL signals and alerts mark the moment price breaks out of the current range profile. They are not automatic entry points — before taking a decision it is recommended to check alignment with other tools (market structure, momentum, volume, etc.). Indicator

Indicator

Indicator

Percentage Price Oscillator Navigator [MarkitTick]💡 A highly multi-dimensional momentum and trend-tracking suite. Rather than relying on singular data points, this comprehensive ecosystem fuses normalized momentum oscillators, dynamic volatility filters, and automated risk-management frameworks into a single, cohesive interface. Designed for meticulous market analysts, it provides a strictly confirmed, non-repainting environment to identify structural shifts, validate trend strength, and project actionable risk-to-reward parameters.
● ✨ Originality and Utility
Standard momentum oscillators often suffer from noise in ranging environments and fail to contextualize signals with prevailing market conditions. This tool distinguishes itself by integrating a robust "Smart Filter" engine directly into the core momentum calculation. By dynamically cross-referencing directional movement strength, average true range expansions, and volume surges, it ensures that momentum shifts are only validated when supported by underlying market participation. Furthermore, the inclusion of a fully automated, dynamic risk-to-reward leveling system transforms a traditional oscillator into a complete trade management overlay, complete with a real-time heads-up display dashboard and fully formatted JSON alert payloads for external automation.
● 🔬 Methodology and Concepts
The foundational logic relies on the proportional divergence between a faster and slower moving average, calculating the percentage difference to create a normalized oscillator. This normalization is critical as it allows for consistent momentum evaluation across diverse asset classes regardless of their nominal price value.
To prevent the common pitfall of reverse-engineering and to protect the underlying intellectual architecture, the internal mathematical sequences remain fully abstracted. The methodology employs a cascading verification process:
First, the core normalized divergence is measured against its own smoothed signal line to identify baseline directional shifts.
Second, a Multi-Timeframe (MTF) confirmation engine evaluates the macro trend. This utilizes a strict, offset historical data request architecture, ensuring zero future-data leakage or repainting artifacts.
Third, the Smart Filter engine evaluates atmospheric market conditions. It demands that background volatility, average directional strength, and volume participation meet minimum threshold requirements before validating any structural momentum shift.
Finally, the system utilizes strict bar-close confirmation logic. Signals are exclusively generated when the evaluation bar has permanently closed, ensuring unalterable historical accuracy.
● 🎨 Visual Guide
The visual interface is engineered to maximize data delivery while maintaining chart clarity.
• Oscillator Elements
PPO Line (Solid Blue): Represents the primary normalized momentum metric.
Signal Line (Solid Orange): A smoothed derivative of the primary momentum, acting as the baseline for crossover events.
Histogram Columns: Visualizes the spread between the PPO and Signal lines. Rising positive momentum is colored in solid teal, while weakening positive momentum fades to a transparent teal. Conversely, expanding negative momentum is solid red, fading to transparent red as bearish momentum wanes.
Zero Line (Gray): The equilibrium point delineating macro bullish versus bearish environments.
• Chart Overlay Elements
Heatmap Candles: The main chart candles are dynamically colored (Teal for positive momentum, Red for negative momentum) based directly on the histogram's state, instantly aligning price action with underlying momentum.
Signal Markers: Small, precise triangles appear at the exact bar of a confirmed momentum crossover (Teal triangle pointing up for bullish, Red pointing down for bearish).
Risk Management Levels: Upon a confirmed signal, the tool draws horizontal projections. The Stop Loss is a thick solid red line. The Entry is a dashed blue line. Take Profit targets (TP1, TP2, TP3) are plotted as dashed teal lines of varying opacity. Colored background fills visually represent the geometric risk and reward zones.
• Heads-Up Dashboard
A fixed tabular dashboard provides a real-time diagnostic readout of all internal states, including current momentum values, moving average gap percentages (visualized as a progress bar), higher-timeframe alignment, and the active positional status with exact level coordinates.
● 📖 How to Use
This tool is designed to act as a primary navigational compass for market structure. Traders should observe the histogram for early signs of momentum deceleration (indicated by fading column colors). A validated setup occurs when the primary momentum line crosses the signal line, strictly accompanied by a visual marker on the chart.
Because the system employs strict bar-close confirmation, traders must wait for the bar to finalize before interpreting a signal as valid. Once a signal fires, the risk management levels automatically project onto the chart. The user can utilize the "Lock Signal" feature to freeze these specific entry and exit levels on the chart, preventing the system from calculating subsequent, potentially conflicting signals while a trade is actively being managed. The comprehensive JSON alerts can be mapped directly to external execution platforms, utilizing the dynamically generated Entry, Stop Loss, and Take Profit price coordinates embedded within the payload.
● ⚙️ Inputs and Settings
The configuration panel is highly modular, categorized logically for precise tuning:
• Core
Defines the lookback periods for the fast, slow, and signal moving averages, as well as the calculation type (SMA or EMA) and the source price data.
• Filters
The gatekeeper settings. Users can toggle and tune the Higher Timeframe confirmation, ADX strength threshold, ATR volatility multiplier, and Volume moving average requirements. A histogram slope confirmation can also be activated to ensure structural momentum is moving in the correct direction.
• Trade Tools
Controls the geometric risk overlay. Users define the Stop Loss distance via an ATR multiplier and set precise Risk:Reward ratios for all three Take Profit targets. The "Lock Signal" toggle is located here, allowing users to freeze the active projection.
• Visuals & Dashboard
Comprehensive toggles to enable or disable specific UI elements such as the histogram, heatmap candles, chart signals, and the diagnostic dashboard, allowing for a fully customized workspace.
• Alerts
Input fields to define custom JSON action tags for integration with third-party webhooks, ensuring seamless connectivity with external systems.
● 🔍 Deconstruction of the Underlying Scientific and Academic Framework
The theoretical foundation of this evaluation suite rests on the synthesis of structural momentum analysis and statistical variance gating. In traditional financial modeling, momentum is frequently quantified as the first derivative of price relative to time. However, absolute price changes suffer from scalar distortion; a ten-point move in a high-valuation asset is mathematically insignificant compared to a ten-point move in a low-valuation asset. By utilizing a normalized percentage differential between dual moving averages, the tool mathematically standardizes momentum, allowing for robust, scale-invariant analysis.
Furthermore, the integration of the Smart Filter engine elevates the framework from simple linear smoothing to a multidimensional evaluation model. The inclusion of the Average Directional Index (ADX) introduces a non-directional vector strength requirement, ensuring that momentum shifts are occurring within an established trend environment rather than a stochastic mean-reversion chop. The Volatility filter, utilizing the Average True Range (ATR), acts as a statistical variance gate. It postulates that significant structural shifts require an expansion in price distribution variance; if a momentum crossover occurs during a period of localized volatility contraction, it is statistically more likely to be a false positive generated by noise rather than a genuine shift in market consensus.
Finally, the dynamic risk leveling system applies principles of geometric expectancy. By anchoring the invalidation point (Stop Loss) to the ATR, the system ensures that risk parameters are continuously adjusted to the current statistical distribution of price movement, rather than relying on arbitrary, static percentages. This creates a mathematically sound, expectancy-positive projection model that adapts fluidly to expanding and contracting market environments, enforcing a rigorous, quantitative approach to trade management.
⚠️ Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. We expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion. Indicator
