Pinescript Custom Performance BoostThis small script is a custom function that works similarly to the built-in calc_bars_count and max_bars_back functions, but can be used far more flexibly and significantly reduces the required computation time of Pine Script scripts.
The advantages over calc_bars_count are substantial.
The standard function works with a fixed value, e.g. calc_bars_count = 20000. The custom function, on the other hand, works on a percentage basis, e.g. with 20% of the total available chart bars.
In addition, calc_bars_count always affects the entire code, while the custom function can be applied selectively to specific parts of the script.
These two differences enable a much more flexible and efficient usage.
Fixed number of bars vs. percentage-based limitation:
The number of available bars varies greatly, not only depending on the ticker and timeframe used, but also on the TradingView subscription (approx. 5,000–40,000 historical bars).
For example, when using calc_bars_count = 20000, only charts that have more than 20,000 candles benefit. If the available number of bars is lower, there is no performance benefit at all until the value is changed after the first slow calculation.
When using the custom function with, for example, 50%, only 50% of the available bars are always calculated, regardless of how many bars are available. This results in a performance gain with shorter calculation times regardless of the chart.
Entire code vs. partial code sections:
calc_bars_count = 20000 affects the entire code globally, meaning the script processes data from only those 20,000 bars.
The custom function, however, can be used selectively for specific sections of the code. This makes it possible to continue accessing certain values across all available bars, while limiting only the truly computation-intensive parts of the script to a percentage-based range.
In this way, computation time can be drastically reduced without restricting the overall size of the data sets.
It is also possible to imitate max_bars_back and selectively limit specific values instead of limiting all of them.
I hope this is useful to some of you. Have fun with it!
指标和策略
EMA + RSI + MACD DashboardEasy Box for group_ema = "EMA Settings"
group_rsi = "RSI Settings"
group_macd = "MACD Settings"
group_display = "Display Settings"
Bank CRE Stress & Short Risk Overlay + Dashboard
🏦 Bank CRE Short-Selling Dashboard:
- Expands the static database to better match the dashboard's highCRE + shortCandidates.
- Uses CRE ratio thresholds from dashboard (e.g., critical ~>500%, high ~400-500%, etc.).
- Keeps price stress logic (you can tweak it).
- Includes more failed/failed-like flags.
Access the Live Risk Monitoring & Trade Opportunities 🏦 Bank CRE Short-Selling Dashboard
claude.ai
SolQuant WatermarkSOLQUANT WATERMARK
The SolQuant Watermark is a professional-grade utility script designed for traders, educators, and content creators who want to keep their charts organized and branded. By utilizing Pine Script’s table functions, this indicator ensures your custom text and symbol data stay pinned to the screen, regardless of where you scroll on the price action.
KEY FEATURES
Customizable Branding: Display your community name, website, or social handles anywhere on the chart.
Automated Symbol Data: Dynamic tracking of the current Asset, Timeframe, and Date—perfect for keeping screenshots contextually accurate.
Precision Placement: Choose from 9 different anchor points (Top-Left, Bottom-Right, etc.) to ensure the UI never interferes with your technical analysis.
Visual Scaling: 5 different size settings (Tiny to Huge) to accommodate high-resolution displays or mobile viewing.
Aesthetic Control: Fully adjustable color palettes, background transparency, and border toggles.
WHY USE A TABLE-BASED WATERMARK?
Unlike standard chart labels which are tied to specific price/time coordinates, this tool uses the Table API . This means:
The watermark stays in place while you scroll through history.
It doesn't disappear when you "hide" other drawing tools.
It scales consistently across different devices.
INSTRUCTIONS
1. Branding: Open settings and type your link or handle into the "Quote Text" area.
2. Symbol Info: Toggle the "Symbol Info" section to automatically display asset names and dates for your records.
3. Layout: Use the X and Y position dropdowns to move the modules if they overlap with your current price action or other indicators.
Note: This is a visual utility tool only. It does not provide trade signals or financial advice.
SessionsBuilt to display useful time sessions, mostly Frankfort and NY.
It also display the Asian range and fractal bars.
All three sub indicators are toggable separatly.
Works best for french trades as it's how it's been coded for.
If you want adapt it to your timezone, edit the "Fuseau horaire" option to match yours.
I intend to add another big indicator to make a cool package in the future.
I will soon try to make everything editable so you can chose what you can display (dont ask for when)
This is a full vibe coded script, feel free to fork it and edit it to your convenience as long as you credit me and share me yours so we can see what can be improved.
Enjoy :)
High Breakout PRO - Huy Hoang Trader
# High Breakout PRO - Huy Hoang Trader - Strategy Description
## 🚀 Overview
**High Breakout PRO** is a professional-grade Trend Following strategy designed to capture major market moves while strictly managing risk. Built on the core philosophy of "Price Action Breakouts," this script enhances the classic Donchian Channel breakout method with modern risk management tools like the **Hybrid Exit** and **EMA Trend Filter**.
This strategy is optimized for **Gold (XAUUSD)**, **Bitcoin (BTC)**, and **Major Stocks (AAPL, AMZN)** on **H4 and Daily** timeframes.
## 💎 Key Features
1. **Trend Filter (EMA):** Only takes long positions when the price is above the 200-period EMA. This filters out counter-trend noise and significantly improves winning probability.
2. **Hybrid Exit Mechanism ("Holy Grail"):** A unique dynamic trailing stop that combines:
* **Price Structure:** Uses the lowest low of the last Y bars (Donchian Support).
* **Volatility:** Uses ATR-based trailing (Chandelier Exit logic).
* *Logic:* The system automatically chooses the **tighter** (higher) stop level between the two, ensuring you lock in profits rapidly during strong volatility while giving the trade room to breathe during accumulation.
3. **Professional Visuals:** A refined "Wealth & Earth" themes (Gold/Silver/Brown) specifically designed to reduce eye strain and provide clear, professional signal visibility without chart clutter.
## 🛠 Strategy Logic
### entry rules
* **Breakout:** Price closes above the Highest High of the last `X` bars (Default: 20).
* **Trend Confirmation:** Closing Price > EMA 200 (Configurable).
### Exit Rules
* **Dynamic Stop Loss:** The trade is closed when price breaches the **Hybrid Trailing Stop**.
* The Trailing Stop never moves down. It only moves up as price increases.
* It effectively adapts to both slow-grinding trends and explosive spikes.
## ⚙️ Best Settings (Recommended)
* **Timeframe:** H4 (Swing Trading) or Daily (Position Trading).
* **Entry Period (X):** 20
* **Exit Period (Y):** 10
* **Trend Filter:** ON (EMA 200)
* **Risk Management:** Hybrid Mode (ATR Multiplier 3.0)
## ⚠️ Disclaimer
This strategy follows trends. It may experience drawdowns during choppy/sideways markets. Always use proper risk management (position sizing) and backtest on your specific asset before live trading.
---
*Developed by Antigravity. Empowering traders with institutional-grade tools.*
Contact for work: www.facebook.com
The Rumers Box Strategy+ v1.5.0The Rumers Box Strategy - Visual Trading Setup Analyzer
This indicator implements Doug Rumers' Box Strategy methodology for identifying high-probability trading setups based on historical price ranges and opening candle analysis.
Key Features:
Customizable Box Construction - Define a "Box Date" to establish the high/low range that forms your trading framework
8:45 Candle Analysis - Automatically identifies and validates the opening candle on your specified "Analysis Date"
20% Rule Validation - Visual confirmation when the 8:45 candle range meets the 20% threshold of the box range
Entry Zone Highlighting - Clear visual marking of the top 20% (short zone) and bottom 20% (long zone) of the box
50% Midpoint Reference - Yellow midline for price action analysis
Multi-Timezone Support - Works with 12 major timezones including US, European, Asian, and Pacific markets
Comprehensive Info Panel - Real-time display of all key metrics including box range, thresholds, and setup validity
Historical Analysis - Time-based positioning allows analysis of any historical date without bar index limitations
How to Use:
Select your timezone
Choose the Box Date (the date that establishes your high/low range)
Choose the Analysis Date (the date to check the 8:45 candle)
The indicator will display a ✓ or ✗ showing whether the setup meets the 20% rule
Trade within the highlighted entry zones when valid setups appear
Perfect for: Day traders and swing traders using systematic, rule-based entry strategies on NAS100, ES, and other index futures.
Stop Getting Whipsawed. Meet Fimathe Elite V40 (State Machine LoThe trader's biggest enemy isn't the market—it's indecision and market noise. "Should I enter now?", "The price pulled back, should I exit or hold?".
To solve this, I developed Fimathe Elite V40. This is not just a simple indicator; it is a complete Trade Management System based on the renowned Fimathe technique (Reference Channels & Neutral Zones), but armored with institutional-grade algorithms to filter out fake signals.
💡 WHY IS THIS SCRIPT DIFFERENT?
Most indicators repaint or spam "Sell" signals the moment a candle turns red, even during a healthy bullish pullback. Fimathe Elite V40 solves this using a sophisticated State Machine Engine.
1. The "State Machine" Technology (No Noise): The script has "memory". It knows if you are already positioned.
Silence: If you are in a trade, it ignores minor fluctuations. It will NOT spam new signals during a consolidation.
Action: It only alerts you in two specific scenarios: Profit Expansion (Level Breakout) or True Reversal (Close against the Stop Loss).
2. Smart Trend Detection (Linear Regression): Instead of guessing the trend, the script calculates the mathematical slope of the last X bars using Linear Regression.
If the slope is positive = It creates Bullish Channels (Reference Channel on Top).
If the slope is negative = It creates Bearish Channels (Reference Channel on Bottom). This prevents you from trading against the mathematical flow of the market.
3. Visual Trade Management:
Active Stop Loss (Orange Line): A visual floor/ceiling that trails the price. If the price does not close beyond this line, you stay in the trade, ignoring emotional wicks.
Active Target (Green Line): Shows exactly where the next expansion level is.
Full Grid: Automatically projects Level 1, 2, and 3 for roadmap planning.
🚀 HOW TO TRADE:
Wait for the Map: Let the script draw the CR (Reference Channel) and NZ (Neutral Zone) automatically (it skips the volatile opening minutes).
The Signal: Wait for the "BUY (Breakout)" or "SELL (Breakout)" label. This signal appears on the close of the breakout candle.
The Entry: Enter on the violation of that candle's high/low.
The Ride: Follow the Orange Line. As the price conquers new levels, the Stop Loss automatically moves up (Trailing Stop) to lock in profits.
🛡️ Risk Management: This tool is designed to force discipline. It visually shows you that a pullback is not a reversal, keeping you in the trend longer and getting you out immediately when the structure actually breaks.
Relative Equal Highs/Lows by tncylyvRelative Equal Highs/Lows
Relative Equal Highs/Lows (REH/REL) is a technical analysis utility designed to identify significant liquidity pools based on Smart Money Concepts (SMC). Unlike standard support and resistance tools that look for single touches, this script identifies sequences of swing points that form relatively flat or slightly stepping structures.
These structures typically represent engineered liquidity or inducement levels where stop-losses are clustered. The indicator visualizes these areas and projects the price level that is likely to be targeted by future price action.
Core Concepts
Relative Structure Detection
Markets rarely form perfectly equal double tops or bottoms to the exact tick. This indicator detects "Relative" Equal Highs or Lows by analyzing a sequence of swing points. It looks for a user-defined number of swings (default is 3) that occur within a specific point threshold of each other, forming a trendline liquidity or flat structure.
Validation System (Noise Reduction)
A distinct feature of this script is its validation mechanism. When a potential pattern is detected, it is not drawn immediately. Instead, it enters a "pending" state for a specific number of bars.
• If price immediately breaks the level during this wait period, the pattern is discarded as noise.
• If the level remains unmitigated after the wait period, it is confirmed and drawn on the chart.
This logic helps reduce clutter and false signals caused by immediate volatility.
Standard Data Integrity
The indicator explicitly requests standard ticker data for all calculations. This ensures that even if you are viewing Heikin Ashi, Renko, or other synthetic chart types, the liquidity levels remain accurate to the real market OHLC prices.
Key Features
• Customizable Swing Detection: You can define how many swings are required to form a pattern (e.g., 2 for double tops/bottoms, 3 or more for extended liquidity pools).
• Gap Management: Options to enforce a minimum number of bars between swings to ensure the structure covers a significant timeframe.
• Mitigation Handling: Choose exactly how a level is considered broken (Wick Touch, Candle Close, or Sweep/Rejection).
• Visual Connectors: Optional dotted lines connect the specific pivot points used to derive the level, helping you visualize the structure of the liquidity.
Settings Overview
Pivot Length
Determines the lookback period to define a Swing High or Low. Higher values will identify more significant market structures.
Max Step Difference (Points)
This is the tolerance range allowed between consecutive swing points. Since this calculates based on raw points, this value must be adjusted significantly depending on the asset class (e.g., Forex pairs versus Crypto or Indices) to match the price scale of the instrument.
Required Swings Amount
The number of swing points required to confirm a pattern.
Min Bars Between Swings
Ensures that the detected pivots are distinct and spaced out by a minimum amount of time.
Validation Wait (Bars)
The duration a pattern must survive before being rendered. Increasing this value filters out structures that are immediately swept.
Mitigation Mode
• Wick Touch: The level is mitigated as soon as a wick touches it.
• Close Through: The level is only mitigated if a candle closes beyond it.
• Sweep Reject: The level is mitigated only if price sweeps it but closes back inside the range.
Visualization
Controls the colors, line styles, and line widths for both active and mitigated levels. Connectors can be toggled on or off to show the path of the swing points.
Dual Bollinger Band Zones (20,2 & 20,0.7)To Indentify Zone 1, Zone 2, Zone 3 and Zone 4
Tradeable zone: Zone 1 for Long and Zone 4 for Short
No Trade Zone: Zond 2 and Zone 3
Weighted NIFTY 5D Directional BreadthOverview
This indicator measures market participation quality within the NIFTY index by tracking how many heavily-weighted stocks are contributing to index direction over a rolling 5-day period.
Instead of counting simple up/down closes, it evaluates directional momentum × index weight, making it far more reliable for identifying narrow leadership, distribution, and late-stage rallies.
Why this indicator matters
Indexes can continue making higher highs even when only a few large stocks are doing the lifting.
This tool reveals what price alone hides:
Whether participation is broad or narrowing
When index highs are being driven by fewer contributors
Early warnings of fragility before corrections
How it works
Each selected NIFTY stock is assigned a weight approximating index influence
The indicator checks whether each stock is up or down versus its 5-day close
Directional signals are weighted and aggregated
The result is a single breadth line reflecting true contribution strength
Positive values → weighted participation is supportive
Negative values → weighted drag beneath the index
How to interpret
Index Higher High + Indicator Lower High
→ Narrow leadership, distribution risk
Indicator turns down before price
→ Early loss of momentum
Sustained positive readings
→ Healthy, broad participation
Sustained negative readings
→ Market weakness beneath the surface
This is not a buy/sell signal, but a context and risk-assessment tool.
Best use cases
Identifying late-stage rallies
Confirming or rejecting breakouts
Risk management for index trades
Combining with price structure or momentum indicators
Notes
Designed for Daily and higher timeframes
Uses non-repainting logic
Best used alongside price action and structure
Disclaimer
This indicator is intended for educational and analytical purposes only.
It does not provide financial advice or trade recommendations.
RS Filtered RSIRS Filtered RSI (RSF RSI) | MisinkoMaster
The RS Filtered RSI is an advanced RSI-based indicator that enhances the traditional RSI by applying a custom filtering technique using Fourier transform principles. This reduces noise and improves the clarity of signals, helping traders better identify trend direction and potential reversals.
Key Features
Combines classic RSI calculation with Fourier-based filtering for noise reduction
Dynamically adapts to price momentum using Relative Strength filtering
Provides clear bullish and bearish trend signals with customizable thresholds
Includes overbought and oversold levels for better entry and exit timing
Plots divergence histogram to highlight momentum changes
Candle coloring aligns with trend direction for intuitive reading
Highly configurable via inputs for RSI length, filter length, Fourier length, and thresholds
How It Works
Calculates a standard RSI on the selected price source over the chosen length.
Applies a Discrete Fourier Transform (DFT) on recent price data to extract dominant frequency components and filter noise (code adapted from @BackQuant).
Uses Fourier magnitudes combined with RSI values to build a filter that strengthens the RSI signal and filters weak moves.
Applies upper and lower thresholds on the filtered RSI to define bullish and bearish trends.
Visualizes trend signals, divergence, and overbought/oversold zones with colored plots and candles.
Inputs Overview
Length — RSI calculation period
Source — Price input (default: close)
Filter Length — Length for Relative Strength filter
Fourier Length — Number of bars used for Fourier transform
Upper Threshold — Level above which bullish trend is signaled
Lower Threshold — Level below which bearish trend is signaled
Overbought — RSI level considered overbought
Oversold — RSI level considered oversold
Usage Notes
Best suited for traders who want a smoother, less noisy RSI signal especially in volatile markets.
Can be combined with other indicators or price action for better confirmation.
Adjust Fourier length and filter parameters to balance smoothness and responsiveness.
Use divergence histogram to spot momentum shifts early.
Candle coloring makes trend identification more intuitive.
Not a standalone trading signal — always backtest and manage risk accordingly.
Shout Out
Special thanks to @BackQuant for the Fourier transform code that inspired the filtering technique in this indicator.
Disclaimer
This indicator is for educational use only and does not constitute financial advice. Trading involves risk. Please do your own research and trade responsibly.
True Range Smoothed SuperTrendTrue Range Smoothed SuperTrend (TRS SuperTrend | MisinkoMaster)
The True Range Smoothed SuperTrend is an innovative trend analysis indicator designed to identify clear market trends while minimizing noise. By combining a smoothed price source weighted by true range values with an ATR-based volatility multiplier, this tool delivers reliable trend signals adaptable to a wide variety of asset classes and timeframes.
It’s particularly useful for traders seeking a versatile trend-following system that balances sensitivity and stability.
🔍 Concept & Idea
The indicator enhances the classic SuperTrend concept by using a true range–weighted smoothing of price data instead of raw price or simple moving averages. This weighting helps focus on periods with higher volatility, improving the relevance of trend detection.
Along with smoothing, the indicator applies an ATR-based volatility multiplier to dynamically adjust the upper and lower trend bands, adapting to current market volatility conditions.
⚙️ How It Works
True Range Weighted Smoothing:
The source price (default: low) is multiplied by the true range values over the lookback period.
These weighted values are summed and normalized by the total true range sum.
The result is further smoothed using an Exponential Moving Average (EMA) with a length proportional to the square root of the input length, reducing noise while preserving trend responsiveness.
ATR-based Bands:
The Average True Range (ATR) is calculated with the same length as the smoothing period.
The ATR is multiplied by a user-defined multiplier to establish dynamic upper and lower bands around the smoothed price.
Trend Determination:
When the source price crosses above the upper band, a bullish trend is signaled.
Conversely, crossing below the lower band signals a bearish trend.
These crossings update the trend state, which controls plotted bands and trend labels.
🧩 Inputs Overview
Length – Controls the lookback period for true range weighting, ATR calculation, and smoothing. Affects sensitivity and smoothness (default 37).
Source – Price source used for calculation, defaulting to low.
Multiplier – Scales the ATR bands to adjust volatility sensitivity (default 1.45).
📌 Usage Notes
The TRS SuperTrend works well across various asset classes and timeframes.
The true range weighting improves trend detection in volatile markets by emphasizing price moves during active periods.
Adjust the length and multiplier inputs to balance between noise reduction and responsiveness for your specific market and strategy.
Trend changes are visually marked with “𝓛𝓸𝓷𝓰” and “𝓢𝓱𝓸𝓻𝓽” labels directly on the chart.
Background fills between bands and price improve visual clarity.
Combine with other confirmation tools and risk management practices for best results.
Not a standalone trading system; always validate and backtest prior to live trading.
⚠️ Disclaimer
This script is provided for educational and informational purposes only and does not constitute financial advice. Trading involves risk and users should perform their own analysis before making trading decisions.
Enjoy smoother and clearer trend analysis with the True Range Smoothed SuperTrend!
Weighted Volume ROC OscillatorWeighted Volume ROC Oscillator (WVRO | MisinkoMaster)
The Weighted Volume ROC Oscillator is a sophisticated trend-following tool that leverages a volume-weighted Rate of Change (ROC) calculation on a double-smoothed source. Designed to capture both trend direction and strength with minimal noise, this oscillator also highlights potential reversal points, making it an effective tool for fast-moving markets like ETHUSD.
By combining volume weighting with advanced smoothing techniques, the WVRO provides a responsive yet stable indicator to help traders make more informed decisions during trending conditions.
🔍 Concept & Idea
The core idea behind the WVRO is to develop a high-speed oscillator capable of smoothly following trends while remaining sensitive to rapid changes. The ROC is a natural choice for momentum measurement, but raw ROC alone can be noisy.
To improve stability and responsiveness:
The input source is smoothed twice using Weighted Moving Averages (WMA) with a length proportional to the square root of the user-defined length, reducing noise while preserving fast reactions.
The ROC is then weighted by volume to emphasize price movements during high-volume periods, increasing the significance of meaningful trades.
Finally, a volume-weighted average of the ROC is calculated to normalize the signal.
This combination balances smoothness and speed, improving signal clarity in trending markets.
⚙️ How It Works
Double WMA Smoothing of Source:
First, apply a WMA with length √len to the selected source to filter noise but retain responsiveness.
Apply a second WMA with the same length to the first smoothed series for additional smoothing.
Volume-Weighted ROC Calculation:
Calculate ROC on the double-smoothed source over one bar.
Multiply the ROC by the current volume, weighting price changes by trading activity.
Normalization and Oscillator Computation:
Calculate an Exponential Moving Average (EMA) of the volume-weighted ROC over the full length.
Divide by the sum of volume over the same length to normalize, then scale to a range centered near zero.
Trend Logic:
Positive WVRO values indicate bullish momentum (trend up).
Negative values indicate bearish momentum (trend down).
Momentum Divergence:
The difference between the current WVRO and its prior value is smoothed with EMA and plotted as a histogram to help identify potential momentum shifts and reversals.
🧩 Inputs Overview
Oscillator Length – Controls the main smoothing and lookback length of the oscillator (default 17).
Source – The price source used for calculation, defaulting to the average of high, low, close, and close (hlcc4).
📌 Usage Notes
Responsive Yet Smooth: The double WMA smoothing ensures the oscillator is less prone to noise but remains quick to react to market changes.
Volume Weighting: Emphasizes price moves on higher volume bars, improving signal reliability in volatile markets.
Trend Identification: Positive and negative readings provide clear trend signals, while divergence histograms highlight potential turning points.
Visual Clarity: Color-coded plots and background highlighting assist quick interpretation.
Optimized for ETHUSD: Especially effective in high-liquidity, high-volatility assets like Ethereum.
Complement with Other Tools: Use alongside price action or other indicators to confirm trends and entry/exit points.
Backtest and Validate: Always validate settings on your chosen asset and timeframe before live use.
⚠️ Disclaimer
This indicator is for educational and analytical purposes only and does not constitute financial advice. Trading involves significant risk, and users should perform due diligence before trading.
Enjoy enhanced trend following with the Weighted Volume ROC Oscillator!
Filtered Percentile OscillatorFiltered Percentile Oscillator (FPO | MisinkoMaster)
The Filtered Percentile Oscillator is a modern trend-following tool designed to combine the power of percentile ranking with adaptive trend strength filtering. By integrating a filter based on ADX strength, this oscillator aims to reduce noise and improve signal quality, helping traders identify more reliable bullish and bearish momentum zones.
This indicator works well across different markets, especially where volatility and trend clarity fluctuate. Although it can be noisy at times, the intelligent filtering mechanism provides strong potential for spotting actionable trend signals.
🔍 Concept & Idea
The idea behind the Filtered Percentile Oscillator is to use the percentile rank of price changes as a normalized measure of momentum, then apply an adaptive filter based on the Average Directional Index (ADX) to adjust sensitivity dynamically.
By combining these two concepts:
The Percentile Oscillator captures how extreme the current price is relative to recent price history.
The ADX-based filter adjusts threshold levels and confirms if the market is trending strongly enough to trust these percentile signals.
This dual-filtering mechanism improves the indicator’s ability to avoid false signals caused by noisy or non-trending environments.
⚙️ How It Works
The indicator calculates the Percentile Rank of the user-selected price source over a defined length (len). This percentile oscillator oscillates between -100% and +100%, reflecting relative price positioning.
It calculates the ADX and its percentile rank over a separate filter length (adx_len and ap_len) to estimate trend strength and market activity.
A combined potential filter checks if the sum of the absolute percentile oscillator and ADX percentile exceeds a user-defined threshold (pot_t). This filter controls whether signals are considered valid.
Thresholds for long and short signals dynamically adapt based on whether the ADX percentile exceeds the filter threshold (adx_t):
When strong trend strength is detected (ADX percentile > threshold), tighter upper and lower thresholds (ut and lt) apply to capture sharper trend signals.
When trend strength is weaker, wider thresholds (utm and ltm) are used to filter noise and reduce false signals.
Trend states are determined by comparing the percentile oscillator to these adaptive thresholds and validating the potential filter condition.
Overbought and oversold zones are also plotted for identifying potential reversal or exhaustion areas.
🧩 Inputs Overview
Length – Controls the lookback period for the Percentile Oscillator calculation (default 29).
Source – The price data source used for oscillator calculation (default: close).
Filter Length – Lookback period for ADX calculation used as a filter (default 12).
Filter % Length – Length used to calculate the percentile rank of the ADX filter (default 8).
Trending Upper Threshold – Upper bound for bullish signals when trend strength is strong (default 10).
Trending Lower Threshold – Lower bound for bearish signals when trend strength is strong (default -10).
Ranging Upper Threshold – Upper bound for bullish signals when trend strength is weak (default 15).
Ranging Lower Threshold – Lower bound for bearish signals when trend strength is weak (default -15).
Sum Filter Threshold – Minimum combined percentile value required to validate signals (default 100).
Filter Threshold – Minimum ADX percentile value required to switch to tighter thresholds (default 50).
Overbought – Level indicating overbought conditions for the oscillator (default 80).
Oversold – Level indicating oversold conditions for the oscillator (default -80).
📌 Usage Notes
Adaptive Filtering: The indicator dynamically adjusts sensitivity to market trend strength, reducing false signals during ranging or low-activity periods.
Normalized Momentum: Using percentile ranks allows comparison across different instruments and timeframes on a consistent scale.
Trend Confirmation: The ADX percentile filter ensures signals are stronger and more reliable when the market is trending.
Visual Guidance: Colored plots, threshold lines, and background fills improve signal interpretation and decision-making.
Customization: Thresholds and lengths can be fine-tuned for different markets or trading styles.
Complementary Use: Best combined with volume analysis, price action, or other indicators for comprehensive trade confirmation.
Backtest First: Always validate settings on historical data to match your preferred instrument and timeframe before live trading.
⚠️ Disclaimer
This indicator is provided solely for educational and analytical use. It is not financial advice. Trading involves risk, and users should perform their own due diligence before making trading decisions.
Enjoy improved trend filtering with the Filtered Percentile Oscillator!
Adaptive For LoopAdaptive For Loop (AFL | MisinkoMaster)
The Adaptive For Loop is an innovative trend-following indicator designed to deliver fast and reliable signals while minimizing false positives. By dynamically assessing the relationship between current and historical price data across multiple price components—open, high, low, and close—this tool filters out noise and highlights the strongest trend signals.
Unlike traditional indicators that rely on a single price input, Adaptive For Loop harnesses the combined strength of multiple price points, intelligently selecting the most relevant signal to adapt to changing market conditions. This approach helps traders identify genuine trend momentum with clarity and speed.
🔍 Concept & Idea
The idea behind Adaptive For Loop is to improve trend detection by simultaneously evaluating multiple price sources instead of just one. Each price component (open, high, low, close) undergoes a scoring process comparing the current price to a series of historical prices within a user-defined lookback range.
Since different price points may exhibit varying degrees of noise or trend clarity at different times, the indicator selects the source with the strongest directional signal based on absolute scoring. This adaptive selection reduces noise and enhances signal reliability while maintaining fast responsiveness.
⚙️ How It Works
The indicator performs a looped comparison for each price series (open, high, low, close) over a range specified by the user (from start to end bars ago).
For each bar in the range, it increments or decrements a score depending on whether the current price is higher or lower than the compared historical price.
After scoring all four price sources, the indicator selects the score with the greatest absolute value to represent the dominant market momentum.
This dominant score is then evaluated against user-defined upper and lower thresholds to determine the market trend state:
Above the upper threshold: bullish/uptrend signal
Below the lower threshold: bearish/downtrend signal
Between thresholds: neutral/no clear trend
The indicator plots the score, thresholds, and highlights the trend visually, including colored candlesticks representing the detected trend.
🧩 Inputs Overview
From (start) – Defines the start bar offset for the lookback range in the for loop (default 0).
To (end) – Defines the end bar offset for the lookback range in the for loop (default 45).
Upper Threshold – Score level above which an uptrend signal is triggered (default 39).
Lower Threshold – Score level below which a downtrend signal is triggered (default -12).
📌 Usage Notes
Adaptive Selection: The indicator adapts by selecting the price source with the strongest trend signal, reducing false signals caused by noisy individual price inputs.
Speed and Noise: Designed for fast execution and minimal noise, making it especially useful in volatile markets such as BTCUSD.
Visual Clarity: Colored candlesticks and score plots help traders quickly identify trend direction and strength.
Customization: Users can adjust the lookback range and thresholds to fit different assets and timeframes.
Complementary Tool: Best used alongside other confirmation indicators and sound risk management practices.
Backtesting Recommended: Always backtest and validate settings on historical data to optimize performance for your specific market.
⚠️ Disclaimer
This indicator is provided for educational and analytical purposes only and does not constitute financial advice. Trading involves significant risk, and users should perform their own due diligence before making any investment decisions.
Enjoy trading with Adaptive For Loop!
Momentum RSIMomentum RSI (MRSI | MisinkoMaster)
Momentum RSI is an enhanced version of the classic Relative Strength Index (RSI) developed by J. Welles Wilder. This indicator integrates momentum components directly into the RSI calculation, resulting in a faster, smoother oscillator that helps traders identify trend strength and value zones with greater precision.
Unlike the traditional RSI, which relies on a fixed smoothing approach, the Momentum RSI dynamically incorporates momentum derived from differences between moving averages of RSI values over different lookback periods. This improves signal responsiveness while reducing noise, providing clearer insights for both trend-following and mean-reversion trading strategies.
🔍 Concept & Idea
Momentum RSI aims to improve the original RSI by adding momentum elements that speed up its reaction to price changes without sacrificing smoothness. This hybrid approach helps:
Capture early signals in trending markets
Reduce false signals during sideways or choppy conditions
Highlight overbought and oversold zones more effectively
Provide additional momentum context for more informed trading decisions
By combining RSI with momentum derived from moving average differences, the indicator balances sensitivity and stability for a versatile application across different asset classes and timeframes.
⚙️ How It Works
The Momentum RSI calculation involves several key steps:
Standard RSI Calculation:
The indicator first calculates the classic RSI using user-defined length and smoothing parameters. Users can customize the RSI source price and the smoothing moving average (MA) type applied (options include RMA, SMA, EMA, WMA, DEMA, TEMA, HMA, ALMA).
Momentum Derivation:
Two versions of the RSI are computed with different smoothing lengths—a base RSI and a longer smoothed RSI. The difference between their moving averages represents a momentum component that measures the short-term trend strength.
Additional Momentum:
The difference between shorter-length and longer-length RSI calculations adds another momentum layer, reflecting momentum shifts over different timescales.
Momentum Integration:
These momentum components are combined and added to the previous RSI value, resulting in a momentum-enhanced RSI value (mrsi) that oscillates between 0 and 100.
Trend Detection:
Customizable upper and lower thresholds define long and short signal zones, allowing users to interpret when the market is trending bullish or bearish.
Overbought/Oversold Zones:
Additional thresholds highlight extreme value zones for potential mean-reversion trades.
🧩 Inputs Overview
RSI Length - Controls the primary RSI calculation length (default 20).
Source - Selects the price source for the RSI calculation (default: close).
Smoothing Length - Length used to smooth RSI values with the chosen MA type (default 12).
MA Type - Moving average method used for smoothing (options: RMA, SMA, EMA, WMA, DEMA, TEMA, HMA, ALMA).
ALMA Offset - Offset parameter for ALMA smoothing (applicable only if ALMA is selected).
ALMA Sigma - Sigma parameter for ALMA smoothing (applicable only if ALMA is selected).
Upper Threshold - RSI level above which a bullish (long) signal is triggered (default 55).
Lower Threshold - RSI level below which a bearish (short) signal is triggered (default 45).
Overbought Threshold - RSI level indicating overbought conditions (default 85).
Oversold Threshold - RSI level indicating oversold conditions (default 15).
📌 Usage Notes
Versatile Application: Use Momentum RSI for both trend-following and mean-reversion strategies.
Signal Clarity: The momentum integration reduces noise, helping avoid false breakouts and improving entry timing.
Customization: Adjust smoothing lengths and MA types to match the characteristics of your trading style or the specific asset.
Visual Aids: Background colors, candle coloring, and shape markers facilitate quick interpretation of momentum strength and trend changes.
Threshold Sensitivity: Fine-tune thresholds to balance between early signals and signal reliability.
Intrabar Updates: Signals may update on lower timeframes for responsive trading.
Combine with Other Tools: For best results, use Momentum RSI alongside volume, price action, or other confirmation indicators.
Backtest Before Live Trading: Always validate settings on historical data to ensure suitability for your trading instrument and timeframe.
⚠️ Disclaimer
This script is intended for educational and analytical purposes only and does not constitute financial advice. Trading involves risk, and users should perform their own due diligence before making any trading decisions.
Bollinger Bands - ALMA EditionBollinger Bands with Crossing Markers - A Small Simple Indicator as a Small Lightweight Supplement.
Green and red markers appear when the price breaks through the top and bottom of the bands, indicating weakening trend momentum and a possible correction or the beginning of a downtrend/uptrend. The BBand is excellent as the FIRST signal of weakening trends – it usually appears right after reaching extremes, i.e., after reaching the bottom or top of the local structure.
Extreme HMA ATR BandsExtreme HMA ATR Bands
Extreme HMA ATR Bands are a fast and smooth trend-following tool designed to capture directional moves while minimizing false signals across volatile markets.
🚀 Benefits
• High responsiveness to market moves
• Smooth trend tracking with fewer false signals
• Strong performance on assets such as SOLUSD, SUIUSD, and CROUSD
• Clear visual band structure for easier market interpretation
💡 Core Idea
The indicator builds adaptive bands around a smoothed price structure derived from Hull-type processing. By focusing on extreme values and combining them into a balanced midpoint, the bands capture trend direction while maintaining smooth behavior.
ATR is then applied to dynamically scale the bands according to market volatility.
⚙️ How It Works
A fast-smoothed price series is calculated using Hull-style logic.
Highest and lowest values of this series are measured over multiple stages.
These extremes are processed again to balance responsiveness and smoothness.
The resulting midpoint forms the base trend line.
ATR is added and subtracted from this midpoint to generate adaptive upper and lower bands.
The result is a fast yet stable band structure that reacts efficiently to market direction changes.
📌 Usage Notes
• Price moving above the upper band suggests bullish pressure.
• Price moving below the lower band suggests bearish pressure.
• Band expansion signals increasing volatility.
• Band contraction often indicates consolidation phases.
Enjoy and trade smart.
Adaptive Moving AverageAdaptive Moving Average
The Adaptive Moving Average (AMA) dynamically adjusts to market conditions, selecting the most responsive behavior while filtering noise to provide clearer trend guidance.
🚀 Why It’s Unique
• Exclusive adaptive logic unique to this script
• High speed with reduced noise
• Strong performance on volatile assets such as SOLUSD and CROUSD
• Highly customizable moving average combinations
• Multi-layer processing for improved accuracy
• Color-changing plots and reversal highlights for quick interpretation
💡 Core Idea
The indicator blends multiple user-selected moving averages and dynamically emphasizes the one best suited to current market conditions. This preserves responsiveness during strong moves while filtering weak or noisy signals.
⚙️ How It Works
Three user-selected moving averages are calculated using the same base length.
A first adaptation layer weights the averages based on their rate of change responsiveness.
A second rate-of-change filter measures market conditions to suppress signals during unstable environments.
The final adaptive average changes behavior depending on market speed and direction.
The result is a moving average that reacts quickly during trends while remaining stable during choppy periods.
📌 Usage Notes
• Color changes indicate shifts in trend direction.
• Highlighted diamonds mark reversal events.
• Higher adaptation thresholds reduce signals but increase reliability.
• Lower thresholds increase responsiveness for faster trading styles.
🧭 Conclusion
The Adaptive Moving Average continuously adjusts its behavior to reduce false signals while maintaining speed and responsiveness. It offers a versatile tool for traders seeking clearer market structure and improved strategy execution.
FVG & OB Swing Overview
A professional Smart Money Concepts (SMC) indicator that identifies high-probability trade setups by combining Fair Value Gaps (FVG), Order Blocks (OB), and Market Structure Analysis. Get precise BUY/SELL signals when institutional footprints align.
🎯 Signal Logic
🟢 BUY Signal
LL (Lower Low) forms → Bullish FVG created → ▲ BUY
SL: At the LL
🔴 SELL Signal
LH (Lower High) forms → Bearish FVG created → ▼ SELL
SL: At the LH
One signal per swing - No spam, only high-quality setups.
✨ Features
FeatureDescriptionFVG DetectionAuto-detects bullish/bearish imbalancesOrder BlocksSwing-based institutional zonesMarket StructureHH, HL, LH, LL swing labelsClean SignalsMinimal ▲/▼ or with R:R ratioPDH/PDL LevelsPrevious day high/lowClose-Only MitigationMore reliable zone invalidation4 Alert ConditionsBUY, SELL, Bull FVG, Bear FVG
📈 What's Displayed
Swing Labels: HH, HL, LH, LL at pivot points
FVG Zones: Cyan (bullish) / Red (bearish)
Order Blocks: Institutional supply/demand zones
Structure Lines: Dashed lines on swing breaks
PDH/PDL: Previous day levels
Info Panel: Current trend + LL/LH prices
Signals: Clean ▲ BUY / ▼ SELL markers
⚙️ Settings
Signals
Signal Style: Minimal (▲/▼), With R:R, or Full
R:R Ratio: For TP calculation display
SL Buffer: Extra buffer below swing
Visuals
Zone Transparency: 50-95%
Border Style: Solid/Dashed/Dotted/None
Max Zones: Limit displayed zones
Structure
Swing Length: Pivot detection sensitivity
Show/Hide: Swing labels, structure lines, PDH/PDL
🔔 Alerts
AlertTriggerBUY SignalLL + Bullish FVG createdSELL SignalLH + Bearish FVG createdBullish FVGNew bullish gap formedBearish FVGNew bearish gap formed
💡 How To Use
Add to chart - Works on any market/timeframe
Wait for structure - Let LL or LH form
Watch for FVG - Signal triggers on FVG creation
Entry: At signal candle close
Stop Loss: At the swing point (LL/LH)
Take Profit: Based on R:R ratio
Best Timeframes
Scalping: 5m, 15m
Intraday: 15m, 1H
Swing: 4H, Daily
🧠 Concepts
Smart Money Concepts (SMC)
ICT Methodology
Fair Value Gaps / Imbalances
Order Blocks / Supply & Demand
Market Structure (BOS/CHoCH)
Liquidity Sweeps
⚠️ Disclaimer
For educational purposes only. Past performance ≠ future results. Always use proper risk management.




















