HOG PathfinderHOG Pathfinder
📊 Overview
HOG Pathfinder is a forward-projection engine that analyzes trend, momentum, and volume to chart a probable path for the next candles. Built as a tactical overlay for directional bias, it gives traders a clean, visual estimate of where price is likely to head — without relying on hope or hindsight.
⚙️ How It Works
• Scores 5 key signals:
• EMA 9/21 trend slope
• RSI strength
• MACD histogram bias
• Price relative to EMA 50 (volume position)
• Trend confirmation via ADX
• Determines a bias: Bullish, Bearish, or Neutral
• Uses average true range to project a path over the next 10 candles
• Displays a dotted line that curves upward, downward, or flat depending on strength and alignment
🎯 Inputs
• Projection Length — number of forward candles to project
• Show Target — enables future target logic (not plotted)
✅ Benefits
• Instant directional read of where price is likely to go
• Pairs perfectly with indicators like Trifecta or Super Trend
• Clean visual — no noise, just trajectory
• Built from native Pine Script logic — no dependencies
📈 Use Cases
• Forecasting next 10 candles on the daily or 4H
• Trade alignment with higher timeframe bias
• Visual guide for continuation or mean reversion trades
⚠️ Notes
• This is not a “prediction” tool — it projects the most probable path given current momentum, trend, and volume alignment
• Adjust slope logic in future versions to curve toward key zones or FVGs
インジケーターとストラテジー
BOS mark-out (by Lumiere)Advanced BOS Detection with Strict Swing Confirmation
This indicator implements BOS detection with several unique features:
🔹 Dual-Candle Swing Validation - Unlike most BOS indicators that use single candle swings, this uses a two-candle confirmation for swing highs/lows, analyzing both the candle wicks and body transitions.
🔹 Directional Lock System - Implements a state machine that prevents duplicate signals until an opposite-direction BOS occurs, reducing noise.
🔹 Precision Wick Analysis - Compares wicks between the reversal candle and confirmation candle to identify the true swing point.
🔹 Real-Time Update & Live Market Adaptation – The indicator continuously monitors price action and instantly updates BOS signals as new candles form, ensuring you never miss a BOS.
How It Differs From Other BOS Indicators:
Most public BOS indicators use simple HH/HL or LH/LL detection.
Many don't implement the directional locking mechanism.
Few use the two-candle wick comparison approach.
Wick-Based Precision uses the extreme wicks of two candles (not just the body).
Strict Confirmation requires a close beyond the swing point (no "wick breaks" counted).
Usage Examples:
🟦 Bullish BOS:
A green candle closes, followed by a red candle. This will be the new high, and if the next candle closes above the highest wick of those two, it will be a BOS (only if we had a bearish BOS before)
🟥 Bearish BOS:
A red candle closes, followed by a green candle. This will be the new low, and if the next candle closes below the lowest wick of those two, it will be a BOS (only if we had a Bullish BOS before)
cloud shift alertsMA Cloud Pairs + Price Signal Pro
Overview:
This advanced multi-MA tool visualizes key crossover interactions between short- and long-term moving averages, along with precise price-to-MA breakouts. Designed for trend-followers and breakout traders, it highlights actionable cloud shifts and crossover events with built-in volume filtering and cooldown logic.
🔧 Key Features:
🔁 MA Pair Clouds:
Visual cloud zones formed by:
MA1 vs MA4
MA2 vs MA5
MA3 vs MA6
Customizable colors for bullish, bearish, and neutral states
📈 Cross Signals:
Detects crossovers between each MA pair (e.g., MA1 crossing MA4)
Volume-based validation and cooldown timers prevent signal spam
📍 Price-to-MA Breakout Alerts:
Separate signals for price crossing above/below MA4, MA5, and MA6
Helpful for tracking breakout and breakdown zones
🎨 Full Visual Customization:
Toggle MA lines, clouds, and signal types
Individual color settings for each MA and cloud state
Adaptive Normalized Global Liquidity OscillatorAdaptive Normalized Global Liquidity Oscillator
A dynamic, non-repainting oscillator built on real central bank balance sheet data. This tool visualizes global liquidity shifts by aggregating monetary asset flows from the world’s most influential central banks.
🔍 What This Script Does:
Aggregates Global Liquidity:
Includes Federal Reserve (FED) assets and subtracts liabilities like the Treasury General Account (TGA) and Reverse Repo Facility (RRP), combined with asset positions from the ECB, BOJ, PBC, BOE, and over 10 other central banks. All data is normalized into USD using FX rates.
Adaptive Normalization:
Optimizes the lookback period dynamically based on rate-of-change stability—no fixed lengths, enabling adaptation across macro conditions.
Self-Optimizing Weighting:
Applies inverse standard deviation to balance raw liquidity, smoothed momentum (HMA), and standardized deviation from the mean.
Percentile-Ranked Highlights:
Liquidity readings are ranked relative to history—extremes are visually emphasized using gradient color and adaptive transparency.
Non-Repainting Design:
Data is anchored with bar index awareness and offset techniques, ensuring no forward-looking bias. What you see is what was known at that time.
⚠️ Important Interpretation Note:
This is not a zero-centered oscillator like RSI or MACD. The signal line does not represent neutrality at zero.
Instead, a dynamic baseline is calculated using a rolling mean of scaled liquidity.
0 is irrelevant on its own—true directional signals come from crosses above or below this adaptive baseline.
Even negative values may signal strength if they are rising above the moving average of past liquidity conditions.
✅ What to Watch For:
Crossover Above Dynamic Baseline:
Indicates liquidity is expanding relative to recent conditions—supports a risk-on interpretation.
Crossover Below Dynamic Baseline:
Suggests deteriorating liquidity conditions—may align with risk-off shifts.
Percentile Extremes:
Readings near the top or bottom historical percentiles can act as contrarian or confirmation signals, depending on momentum.
⚙️ How It Works:
Bounded Normalization:
The final oscillator is passed through a tanh function, keeping values within and reducing distortion.
Adaptive Transparency:
The strength of deviations dynamically adjusts plot intensity—visually highlighting stronger liquidity shifts.
Fully Customizable:
Toggle which banks are included, adjust dynamic optimization ranges, and control visual display options for plot and background layers.
🧠 How to Use:
Trend Confirmation:
Sustained rises in the oscillator above baseline suggest underlying monetary support for asset prices.
Macro Turning Points:
Reversals or divergences, especially near OB/OS zones, can foreshadow broader risk regime changes.
Visual Context:
Use the dynamic baseline to see if liquidity is supportive or suppressive relative to its own adaptive history.
📌 Disclaimer:
This indicator is for educational and informational purposes only. It does not constitute financial advice. Past performance is not indicative of future results. Always consult a qualified financial advisor before making trading or investment decisions.
EMAZoner+ 0.5EMAZoner – Your new perspective on trends!
Want to always know where a trend starts and ends? Looking for a simple yet visually powerful tool to help you instantly spot key moments for entries and exits? EMAZoner is here for you!
This indicator is designed for anyone who wants to:
- Instantly see where a trend begins and ends (whether you trade short or long term)
- Have clear BUY/SELL signals and trend peaks marked directly on the chart
- Quickly distinguish strong and weak trends thanks to colored backgrounds and a clear info table
- Track current trends not only on your timeframe, but also on higher ones (M15, M30, H1) – perfect for multi-timeframe analysis
- Keep your chart clean with minimalist labels and dotted lines that guide you straight to the right candle
- Get market and trend strength stats without complicated setup
EMAZoner is suitable for everyone – from beginners to experienced traders. It helps you avoid unnecessary noise, quickly find key zones, and make decisions with more confidence.
Try EMAZoner and take your analysis to the next level!
TimeframeToStringToolLibrary "TimeframeToStringTool"
Maps a worded string for timeframes useful when working with the input.timeframe input. Use like timeframeToString("120") and the output will be "2 hour"
timeframeToString(timeframeString)
Converts timeframe strings e.g. 60" will return Day
Parameters:
timeframeString (string)
Returns: returns a map
BK AK-SILENCER (P8N)🧩 BK AK-SILENCER (P8N)
CVD Bollinger Band Engine | Dynamic Flash | Structure Zones | Divergence Panel
🧠 Introduction
This is the second half of the AK-SILENCER system: BK AK-SILENCER (P8N) — a standalone CVD panel that amplifies stealth detection with volatility-based bands, dynamic flash alerts, and smart structural analysis.
This panel works on its own, but was engineered to pair perfectly with BK AK-SILENCER overlay.
🔎 What “P8N” Means
P8N = Precision. 8 Dimensions. Noise-filtered.
8 represents balance, cycles, infinite feedback, and control — all concepts deeply tied to Gann, geometry, and institutional rhythm.
This engine reads volume through volatility — not price. It detects shifts where real moves begin — quietly.
⚙️ Core Weapon Systems
✅ CVD Line + MA + Fill Logic
See the cumulative volume delta with trend tracking and real-time color fills.
✅ Bollinger Bands
Standard deviation bands built around the signal line — not price. Shows real overbought/oversold based on volume movement.
✅ Dynamic Flash Backgrounds
When CVD pressure reaches extremes, the background flashes — silently warning of potential pivots or continuation.
✅ Divergence Detection
Automatic structural divergence plotted between price and CVD — with configurable pivot logic.
✅ Structure Lines (optional)
Visual anchors: session opens, POC, deviation bands, value zones, and structural support/resistance pivots.
🎯 How to Use It
Flash + CVD breaches upper band = momentum continuation
Flash + divergence = prepare for mean-reversion
Divergence + POC/value area = sniper entry
Combine with BK AK-SILENCER overlay bar colors = full market read
💡 Perfect For
Momentum traders who wait for pressure confirmation
Reversal traders looking for structure + volume misalignment
Pattern and time traders syncing Gann, Elliott, and Fib setups
Swing traders seeking multi-layered confirmation
🔧 Customize It. Share It. Grow It.
No tool is perfect out of the box — it must fit your flow.
🛠️ Test your BB deviation values. Adjust dynamic flash settings. Tune pivot logic.
💬 Then share your favorite combos in the comments.
What worked for you might unlock clarity for someone else.
If this helped you — return the favor. Drop your blueprint.
🔗 Works Best With
➡️ BK AK-SILENCER
Together, they detect what price alone cannot. One sees aggression. One sees intent.
Overlay + Panel = Total Edge.
🙏 Pay It Forward
This was built through the lessons of a mentor who gave selflessly — and the blessing of Gd who gave structure to the chaos.
If this gave you insight:
🔹 Teach someone
🔹 Post your best settings
🔹 Share what you've learned
🔹 Help the next person trade with discipline
We’re not here just to win. We’re here to evolve — and bring others with us.
To my mentor — A.K. — this is yours.
To Gd — the source of wisdom — this is for Your glory.
—
Silent. Steady. Strategic.
🎯 BK AK-SILENCER (P8N) — See what others miss.
Gd bless your precision, purpose, and patience. 🙏
Standard Deviation + Z-scoreThis indicator calculates the standard deviation of close prices over the last N periods, where N is a user-defined input. Three rays above and below the current price indicate three standard deviations. The summary in the top right corner shows the number of bars N, the mean value over the period, standard deviation as percentage and Z-score of the current price.
BK AK-SILENCER🔊 BK AK-SILENCER
Volume Footprint Overlay | CVD Divergence | VWAP Sync | Extreme Volume Alerts
🧠 Introduction
With discipline and humility, I present the BK AK-SILENCER — a tactical overlay tool built for real-time bar decoding, smart divergence detection, and stealth-level volume aggression tracking.
This indicator is one half of a two-system stealth engine — the other being BK AK-SILENCER (P8N) — together forming a fully integrated divergence and structure-mapping weapon.
🔫 The Meaning Behind “SILENCER”
Just like a true silencer functions — quiet, deadly, and undetected — this tool operates beneath the surface, filtering out noise and revealing the real power behind the candles.
Institutions move in silence.
They don’t chase price. They build, shift, load, and unload with surgical stealth.
This tool is designed to catch the footprints of giants — to detect where volume spikes silently, where divergence whispers truth, and where smart money leaves behind subtle clues.
The initials “AK” honor my mentor — the man who taught me to trade with purpose, clarity, and discipline.
This tool is part of his legacy.
⚙️ What It Does
✅ Volume Bar Coloring
Reveals bullish, bearish, and neutral aggression with real-time coloring — based on spike logic, closing strength, and volatility-adjusted thresholds.
✅ CVD Divergence Detection
Automatically detects price vs volume divergence using pivot logic — mapped clearly with visual markers.
✅ Extreme Volume ‘$’ Alerts
When volume goes silent, this system waits. But when volume spikes abnormally — it marks it.
✅ VWAP Overlay
Anchored VWAP to sync trades with liquidity zones and institutional behavior.
🎯 How to Use It
Bullish divergence + accumulation color = sniper long entry.
Bearish divergence + weakness color = fade or reversal opportunity.
Extreme volume spike + structure = momentum entry or exit zone.
Use with BK AK-SILENCER (P8N) for complete stealth confirmation.
💡 Perfect For
Breakout traders confirming momentum with smart volume
Swing traders aligning VWAP and aggression
Mean-reversion setups catching divergence extremes
Gann, Elliott, Harmonic traders syncing pattern + pressure
🔧 Customize It. Share It. Grow It.
This isn’t a one-size-fits-all tool.
Your timeframe, instrument, and rhythm are yours. Play with the settings. Tune them to your strategy.
🛠️ Experiment with volume thresholds, pivot lookbacks, and spike logic.
💬 Then share your results in the comments — help someone sharpen their edge.
This is a community for precision traders. If this helped you — leave something behind for the next sniper.
🔗 Works Best With
➡️ BK AK-SILENCER (P8N)
A standalone CVD panel with volatility bands, dynamic flash alerts, and divergence recognition.
Together, they form a complete silent detection system. Radar + Scope.
🙏 A Final Word: Pay It Forward
This tool exists because someone once taught me — with time, patience, and love.
If it brings you clarity or consistency:
🔹 Share a chart
🔹 Answer a question
🔹 Drop your best settings
🔹 Help someone who's learning
We rise by lifting others.
And we build true edge by honoring those who helped us build ours.
Above all — praise to Gd, who gives structure to chaos and wisdom to those who ask.
—
Stay calm. Stay silent. Stay precise.
💥 BK AK-SILENCER — Locked. Zeroed. Silent.
Gd bless. 🙏
Path of Least ResistancePath of Least Resistance (PLR)
Concept Overview
The Path of Least Resistance indicator identifies key zones on your chart that act like "muddy" or "sticky" areas where price tends to get bogged down, creating choppy and unpredictable price action. Between these zones lie the "empty spaces" - clear paths where price can move freely with momentum and direction.
The Analogy: Muddy Fields vs Open Roads
Think of your chart like a landscape:
🟫 ZONES (Muddy/Sticky Areas)
Fair Value Gaps (FVGs) from higher timeframes
Pivot wick zones from higher timeframe pivots
Areas where price gets "stuck" and churns
Like walking through thick mud - slow, choppy, unpredictable movement
Price action becomes erratic and difficult to trade
🟢 EMPTY SPACES (Open Roads)
The clear areas between zones
Where price can move freely with momentum
Like driving on an open highway - smooth, directional movement
The "Path of Least Resistance" for price movement
Trading Philosophy
AVOID Trading Within Zones:
Price action is typically choppy and unpredictable
Higher probability of false signals and whipsaws
Like trying to drive through mud - you'll get stuck
TRADE Through the Empty Spaces:
Look for moves that travel between zones
Price tends to move with momentum and direction
Higher probability setups with cleaner price action
Like taking the highway instead of back roads
Zone Types Detected
Fair Value Gaps (FVGs)
Imbalances from higher timeframe candles
Areas where price "owes" a return visit
Often act as magnets, creating choppy price action
Pivot Wick Zones
Upper and lower wicks from higher timeframe pivots
Rejection areas where price previously struggled
Often create resistance/support that leads to choppy movement
Color Coding System
The zones dynamically change color based on current price position:
🔴 RED ZONES : Price is below the zone (bearish context)
🟢 GREEN ZONES : Price is above the zone (bullish context)
🔘 GRAY ZONES : Price is within the zone (neutral/choppy area)
The "Mum Trades" Strategy
The best trades - what we call "Mum trades" (trades so obvious even your mum could spot them) - happen in the empty spaces between zones:
✅ High Probability Characteristics:
Clear directional movement between zones
Less noise and false signals
Higher momentum and follow-through
Cleaner technical patterns
❌ Avoid These Areas:
Trading within the muddy zones
Expecting clean moves through sticky areas
Fighting against the natural flow of price
Key Features
Auto Timeframe Detection : Automatically selects appropriate higher timeframe
Dynamic Zone Management : Overlapping zones are automatically cleaned up
Real-time Alerts : Get notified when price enters/exits zones
Visual Clarity : Clean zone display with extending boundaries
How to Use
Identify the Zones : Let the indicator mark the muddy areas
Find the Paths : Look for clear spaces between zones
Plan Your Trades : Target moves that travel through empty space
Avoid the Mud : Stay away from trading within the zones
Follow the Flow : Trade with the path of least resistance
Remember
Price, like water, always seeks the path of least resistance. By identifying where that path is clear (empty spaces) versus where it's obstructed (zones), you can align your trading with the natural flow of the market rather than fighting against it.
The goal is simple: Trade the highways, avoid the mud.
Dynamic Laguerre Filter Bands | OttoThis indicator combines trend-following and volatility analysis by enhancing the traditional Laguerre filter with a dynamic, volatility-adjusted band system. Instead of using fixed thresholds, the bands adapt in real-time to changing market conditions by applying smoothed standard deviation calculations. This design keeps the indicator responsive to significant price movements while effectively filtering out short-term market noise, resulting in more accurate trend identification and breakout signals.
Core Concept
The indicator is built around the following key components:
Laguerre Filter:
The Laguerre filter is designed to smooth out price data by reducing market noise while still being quick enough to detect real changes in price direction. Its goal is to create a clear, smooth trend line that helps traders/investors focus on the overall market trend without getting distracted by small, random price swings.
It uses a parameter called gamma to control how it balances smoothness and responsiveness:
A lower gamma gives more weight to recent price data, making the filter react faster to new price changes. This means the trend line is more sensitive but may also be less smooth and more prone to small fluctuations.
A higher gamma gives more weight to past price data, making the filter smoother and less sensitive to quick changes. This helps reduce noise and produces a steadier trend line, but it also introduces more lag, meaning the filter reacts slower to new price moves.
By adjusting gamma, the Laguerre filter lets you choose the balance between following price changes quickly and having a stable, noise-free trend signal.
Standard Deviation:
shows how much price varies from the mean. In this indicator, it’s used to measure market volatility.
Volatility Bands: The upper and lower bands are based on an EMA-smoothed standard deviation of price. The EMA reduces sudden jumps in volatility, creating smoother and more stable bands that still respond to changing market conditions. These bands are plotted around the Laguerre filter line, expanding and contracting in a controlled way to stay aligned with real market movement while avoiding short-term noise.
Signal Logic:
A long signal is triggered when the close price crosses above the upper band.
A short signal occurs when the close price falls below the lower band.
⚙️ Inputs
Source: Price source used in calculations
Gamma: Adjusts how much the Laguerre filter responds to price changes. Lower gamma values make the filter react more to recent prices, while higher values give more influence to older data, making the line smoother but slower to respond.
Volatility Length: Period used to calculate standard deviation
Volatility Smoothing Length: EMA smoothing length for standard deviation
Multiplier: Scales the width of the bands based on volatility
📈 Visual Output
Laguerre Filter Line: Plots the laguerre filter line, colored dynamically based on signal direction (green for bullish, purple for bearish)
Upper & Lower Bands: Volatility-based bands that adjust with market conditions. (green for bullish, purple for bearish)
Glow Effect: Optional glow layer to enhance visibility of the laguerre filter trend line (green for bullish, purple for bearish)
Bar Coloring: Candlesticks and bar colors reflect the active signal state for fast visual interpretation (green for bullish, purple for bearish)
How to Use
Apply the indicator to your chart and monitor for signal events:
Long Signal: When price closes above the upper band
Short Signal: When price closes below the lower band
🔔 Alerts
This indicator supports optional alert conditions you can enable for:
Long Signal: Close price crossing above the upper band
Short Signal: Close price crossing below the lower band
⚠️ Disclaimer:
This indicator is intended for educational and informational purposes only. Trading/investing involves risk, and past performance does not guarantee future results. Always test and evaluate indicators/strategies before applying them in live markets. Use at your own risk.
PRO Investing - LevelPRO Investing - Level
📊 Dynamic Support/Resistance
This indicator plots the PRO Investing Level, defined as the midpoint between the highest high and lowest low over the past 252 trading days (default lookback period, equivalent to ~1 year). It acts as a key mean-reversion reference level, useful for identifying potential support/resistance zones or market equilibrium levels.
Features:
🕰️ Option to display only today’s level or historical levels.
⚙️ Customizable lookback period for flexibility across timeframes and strategies.
📉 Teal line plotted directly on the chart, highlighting this institutional-grade level.
Ideal for traders looking to anchor price action to significant historical ranges—particularly useful in mean-reversion, breakout, or volatility compression strategies.
ΔPrecio/Vol + EMA NetVol Escalada RJF V1Indicator Manual: ΔPrice/Vol + EMA NetVolume (Scaled)
1. Introduction
This indicator combines the histogram of (Close – Open) divided by volume with a dynamically scaled EMA of net volume. It helps identify the strength of price movements tied to buying vs. selling volume.
2. Input Parameters
Show Histogram (ΔPrice/Vol): Enable or disable the (Close - Open) / Volume histogram.
Histogram Up Color: Color for positive histogram bars.
Histogram Down Color: Color for negative histogram bars.
Histogram Zero Color: Color for zero-value histogram bars.
Show EMA NetVolume: Enable or disable the net volume EMA line.
EMA NetVolume Period: Number of bars for the net volume EMA calculation.
EMA Up Color: Color for the EMA when net volume is positive.
EMA Down Color: Color for the EMA when net volume is negative.
EMA Line Width: Thickness of the EMA line.
Dynamic Scale Window: Number of bars for calculating the EMA scaling factor.
3. Visualization and Interpretation
• The histogram displays (Close – Open) / Volume, colored by candle direction.
• The net volume EMA shows accumulated buying vs. selling volume.
• EMA above zero indicates buying dominance; below zero indicates selling dominance.
• Both series share the same zero line for easy comparison.
4. Examples of Use
• During a strong uptrend, expect large green histogram bars and the EMA in positive territory.
• In a retracement, red histogram bars appear more frequently and the EMA may cross below zero.
• Adjust the dynamic scale window to fine-tune EMA sensitivity.
5. Troubleshooting
• If you do not see the histogram, ensure "Show Histogram" is enabled.
• If the EMA overshadows the histogram, tweak the dynamic scale window.
• Customize colors for better visibility on different chart backgrounds
VWAP Multi-Timeframe VWAP Multi-Timeframe - Complete Professional Indicator
🚀 WHAT IS IT?
The VWAP Multi-Timeframe is an advanced indicator that combines 5 different VWAP periods in a single tool, providing a complete view of market fair value levels across multiple time scales.
⭐ KEY FEATURES
📊 5 Configurable VWAPs:
🟡 Daily VWAP - Ideal for day trading and intraday operations
🟠 Weekly VWAP - Perfect for swing trading
🔵 Monthly VWAP - Excellent for medium-term analysis
🔴 Quarterly VWAP - Essential for quarterly strategies
🟢 Yearly VWAP - Fundamental for long-term investments
🎯 Multiple Price Sources:
Choose the source that best fits your strategy:
Close - Closing price (most common)
OHLC4 - Complete average (smoother)
HLC3 - Typical price (default)
HL2 - Period midpoint
Open/High/Low - Specific prices
💡 HOW TO USE
For Day Traders:
Use Daily VWAP as main fair value reference
Prices above = buying pressure / Prices below = selling pressure
For Swing Traders:
Combine Weekly and Monthly VWAP to identify trends
Look for confluences between different timeframes
For Investors:
Quarterly and Yearly VWAP show long-term value levels
Excellent for identifying entry points in investments
🔧 TECHNICAL FEATURES
✅ Pine Script v6 - Latest and optimized version
✅ Clean Interface - User-friendly design
Main Street IndicatorWhen EMA and volume volatility factor align, scalp 3-5 ticks on the ES futures market.
Initial Balance (London Session) - UTC+1 (Box Only)Initial balance for the new day
first two hours of the London session for UTC+1
Rifle SHORT OSVuka's Rifle Shooter Indicator
TODO fill out description of input settings
See to complement this rifle indicator.
Rifle LONG OSVuka's Rifle Shooter Indicator
TODO fill out description of input settings
See to complement this rifle indicator.
RSI Distance & BB Width OnlyThis indicator shows the Relative Strength Index Distance Bollinger Bands Width
SMA 20/50 Crossover Strategy - Peter GangmeiSMA 20/50 Crossover Strategy – Peter Gangmei
This indicator visualizes a classic moving average crossover strategy using Simple Moving Averages (SMA). It plots the 20, 50, and 200 period SMAs and generates clear Buy and Sell signals based on the crossover between the 20 and 50 SMAs:
✅ Buy Signal: When the 20 SMA crosses above the 50 SMA
🔻 Sell Signal: When the 20 SMA crosses below the 50 SMA
📈 The 200 SMA is also plotted for long-term trend context.
Visual cues are displayed on the chart using up/down triangles to indicate entry opportunities. The script also includes built-in alerts so you never miss a trading signal.
Ideal for traders who want a simple, visually intuitive way to follow trend shifts and momentum.
TASC 2025.07 Laguerre Filters█ OVERVIEW
This script implements the Laguerre filter and oscillator described by John F. Ehlers in the article "A Tool For Trend Trading, Laguerre Filters" from the July 2025 edition of TASC's Traders' Tips . The new Laguerre filter utilizes the UltimateSmoother filter in place of an exponential moving average (EMA) in its calculation, offering improved responsiveness and reduced lag.
█ CONCEPTS
As Ehlers explains in his article, the Laguerre filter is a form of transversal filter . A transversal filter calculates an output signal using a tapped delay line . It creates multiple delayed versions of an input signal, applies weight to each delay, and then calculates their sum to generate the filtered result.
The Laguerre filter's structure relies on Laguerre polynomials — solutions to a differential equation solved by Edmond Laguerre in the 1800s. When Ehlers analyzed the formula for these polynomials on discrete systems (e.g., financial time series), he found that the first term's expression corresponds to an EMA response, and all subsequent terms correspond to an all-pass response. In contrast to other filter types, an all-pass filter produces phase shift (i.e., delay) in an input signal's components without affecting its amplitude.
Ehlers observed that these characteristics of Laguerre polynomials make them suitable for use in a transversal filter structure, and thus the Laguerre filter was born. However, he notes that EMAs are not great filters in general. As such, to improve on the Laguerre filter's design, Ehlers modified it by replacing the EMA term with his UltimateSmoother filter. The resulting Laguerre filter has significantly reduced lag, achieving a tighter response to market fluctuations while maintaining smoothness. Ehlers suggests that traders can analyze crossings between the UltimateSmoother and this Laguerre filter, or those between two Laguerre filters of different order, for helpful buy and sell signals.
In addition to the Laguerre filter, Ehlers derived a smooth, low-lag oscillator based on the difference between the first and second terms in the modified filter structure, scaled by the root mean square (RMS). The resulting oscillator provides an alternative filtered representation of market data, which can help traders identify swing and mean-reversion signals.
█ USAGE
This indicator calculates both the Laguerre filter and the Laguerre oscillator described in Ehlers' article. It displays the Laguerre filter on the main chart pane and the oscillator in a separate pane.
Users can control the behavior of the filter and oscillator with the inputs in the "Settings/Inputs" tab:
The "Period" input defines the critical period of the UltimateSmoother used in the Laguerre filter and oscillator calculations. Its default value is 30.
The "Gamma" input determines the weighting behavior of the Laguerre filter and oscillator. It accepts a positive value between 0 and 1. Use a lower value for quicker responsiveness to market changes, and a higher value for trends. The default value is 0.5.
The "RMS length" input determines the length of the RMS calculation for oscillator normalization. The default value is 100 bars.
RifleLibLibrary "RifleLib"
Provides a collection of helper functions in support of the Rifle Shooter Indicators.
toStrRnd(val, digits)
Parameters:
val (float)
digits (int)
_isValidTimeRange(startTimeInput, endTimeInput)
Parameters:
startTimeInput (string)
endTimeInput (string)
_normalize(_src, _min, _max)
Parameters:
_src (float)
_min (float)
_max (float)
arrayToSeries(arrayInput)
arrayToSeries Return an array from the provided series.
Parameters:
arrayInput (array)
f_parabolicFiltering(_activeCount, long, shooterRsi, shooterRsiLongThreshold, shooterRsiShortThreshold, fiveMinuteRsi, fiveMinRsiLongThreshold, fiveMinRsiShortThreshold, shooterRsiRoc, shooterRsiRocLongThreshold, shooterRsiRocShortThreshold, quickChangeLookbackBars, quckChangeThreshold, curBarChangeThreshold, changeFromPrevBarThreshold, maxBarsToholdParabolicMoveActive, generateLabels)
f_parabolicFiltering Return true when price action indicates a parabolic active movement based on the provided inputs and thresholds.
Parameters:
_activeCount (int)
long (bool)
shooterRsi (float)
shooterRsiLongThreshold (float)
shooterRsiShortThreshold (float)
fiveMinuteRsi (float)
fiveMinRsiLongThreshold (float)
fiveMinRsiShortThreshold (float)
shooterRsiRoc (float)
shooterRsiRocLongThreshold (float)
shooterRsiRocShortThreshold (float)
quickChangeLookbackBars (int)
quckChangeThreshold (int)
curBarChangeThreshold (int)
changeFromPrevBarThreshold (int)
maxBarsToholdParabolicMoveActive (int)
generateLabels (bool)
rsiValid(rsi, buyThreshold, sellThreshold)
rsiValid Returns true if the provided RSI value is withing the associated threshold. For the unused threshold set it to na
Parameters:
rsi (float)
buyThreshold (float)
sellThreshold (float)
squezePro(source, length)
squezePro Returns the squeeze pro momentum color of current source series input
Parameters:
source (float)
length (int)
f_momentumOscilator(source, length, transperency)
f_momentumOscilator Returns the squeeze pro momentum value and bar color states of the series input
Parameters:
source (float)
length (int)
transperency (int)
f_getLookbackExtreme(lowSeries, highSeries, lbBars, long)
f_getLookbackExtreme Return the highest high or lowest low over the look back window
Parameters:
lowSeries (float)
highSeries (float)
lbBars (int)
long (bool)
f_getInitialMoveTarget(lbExtreme, priveMoveOffset, long)
f_getInitialMoveTarget Return the point delta required to achieve an initial rifle move (X points over Y lookback)
Parameters:
lbExtreme (float)
priveMoveOffset (int)
long (bool)
isSymbolSupported(sym)
isSymbolSupported Return true if provided symbol is one of the supported DOW Rifle Indicator symbols
Parameters:
sym (string)
getBasePrice(price)
getBasePrice Returns integer portion of provided float
Parameters:
price (float)
getLastTwoDigitsOfPrice(price)
getBasePrice Returns last two integer numerals of provided float value
Parameters:
price (float)
getNextLevelDown(price, lowestLevel, middleLevel, highestLevel)
getNextLevelDown Returns the next level above the provided price value
Parameters:
price (float)
lowestLevel (float)
middleLevel (float)
highestLevel (float)
getNextLevelUp(price, lowestLevel, middleLevel, highestLevel)
getNextLevelUp Returns the next level below the provided price value
Parameters:
price (float)
lowestLevel (float)
middleLevel (float)
highestLevel (float)
isALevel(price, lowestLevel, middleLevel, highestLevel)
isALevel Returns true if the provided price is onve of the specified levels
Parameters:
price (float)
lowestLevel (float)
middleLevel (float)
highestLevel (float)
getClosestLevel(price, lowestLevel, middleLevel, highestLevel)
getClosestLevel Returns the level closest to the price value provided
Parameters:
price (float)
lowestLevel (float)
middleLevel (float)
highestLevel (float)
f_fillSetupTableCell(_table, _col, _row, _text, _bgcolor, _txtcolor, _text_size)
f_fillSetupTableCell Helper function to fill a setup table celll
Parameters:
_table (table)
_col (int)
_row (int)
_text (string)
_bgcolor (color)
_txtcolor (color)
_text_size (string)
f_fillSetupTableRow(_table, _row, _col0Str, _col1Str, _col2Str, _bgcolor, _textColor, _textSize)
f_fillSetupTableRow Helper function to fill a setup table row
Parameters:
_table (table)
_row (int)
_col0Str (string)
_col1Str (string)
_col2Str (string)
_bgcolor (color)
_textColor (color)
_textSize (string)
f_addBlankRow(_table, _row)
f_addBlankRow Helper function to fill a setup table row with empty values
Parameters:
_table (table)
_row (int)
f_updateVersionTable(versionTable, versionStr, versionDateStr)
f_updateVersionTable Helper function to fill the version table with provided values
Parameters:
versionTable (table)
versionStr (string)
versionDateStr (string)
f_updateSetupTable(_table, parabolicMoveActive, initialMoveTargetOffset, initialMoveAchieved, shooterRsi, shooterRsiValid, rsiRocEnterThreshold, shooterRsiRoc, fiveMinuteRsi, fiveMinuteRsiValid, requireValid5MinuteRsiForEntry, stallLevelOffset, stallLevelExceeded, stallTargetOffset, recoverStallLevelValid, curBarChangeValid, volumeRoc, volumeRocThreshold, enableVolumeRocForTrigger, tradeActive, entryPrice, curCloseOffset, curSymCashDelta, djiCashDelta, showDjiDelta, longIndicator, fontSize)
f_updateSetupTable Manages writing current data to the setup table
Parameters:
_table (table)
parabolicMoveActive (bool)
initialMoveTargetOffset (float)
initialMoveAchieved (bool)
shooterRsi (float)
shooterRsiValid (bool)
rsiRocEnterThreshold (float)
shooterRsiRoc (float)
fiveMinuteRsi (float)
fiveMinuteRsiValid (bool)
requireValid5MinuteRsiForEntry (bool)
stallLevelOffset (float)
stallLevelExceeded (bool)
stallTargetOffset (float)
recoverStallLevelValid (bool)
curBarChangeValid (bool)
volumeRoc (float)
volumeRocThreshold (float)
enableVolumeRocForTrigger (bool)
tradeActive (bool)
entryPrice (float)
curCloseOffset (float)
curSymCashDelta (float)
djiCashDelta (float)
showDjiDelta (bool)
longIndicator (bool)
fontSize (string)