The LEAP Contest - Symbol & Max Position Table TrackerDescription:
This indicator tracks the maximum contracts allowed to be traded for TradingView’s *"The Leap"* Contest. It displays a horizontal table at the bottom right of your chart showing up to 20 symbols along with their maximum allowable open contract positions.
Use case:
Designed specifically for traders participating in *The Leap* Contest on TradingView.
Users need to enter the symbol and the maximum contracts allowed for that symbol in the settings menu for each new contest.
It provides a quick reference to ensure compliance with contest rules on maximum position sizes.
How it works:
The table shows two rows: the top row displays the symbol name, and the bottom row shows the max contract limit.
If the currently loaded chart symbol matches any symbol in the list, its text color changes to yellow .
Customization:
Symbols and limits must be updated in the indicator’s settings before each contest to reflect the current rules.
Multitimeframe
FVG MTF + 50%
// FVG MTF + 50%: A Multi-Timeframe Fair Value Gap Indicator
//
// Fair Value Gaps (FVGs) are core to the Inner Circle Trader (ICT) framework and mirror institutional order‐flow imbalances.
// In trading lore, an FVG is a rapid price swing that “leaves behind a gap” – a zone without trading – which is typically revisited later.
// In technical terms, a classic FVG spans three bars: the middle candle overshoots the prior swing without overlap (e.g. the 2nd candle’s high exceeds the 1st candle’s high in a bullish FVG).
// Such gaps represent transient liquidity vacuums. Bouchaud et al. (2011) model exactly this phenomenon: aggressive order flow creates a V-shaped supply/demand profile that “vanishes around the current price.”
// In other words, an FVG is a local imbalance where liquidity was exhausted and will tend to attract mean‐reverting orders as the market seeks equilibrium.
//
// In practice, ICT emphasizes the 50% retracement of an FVG as a high-probability entry level. This midpoint can be interpreted formally via market microstructure theory:
// Hasbrouck (2000) and others posit an underlying efficient price – a latent martingale value – around which observed prices fluctuate.
// The center of a recent gap heuristically proxies that latent fair value. Indeed, empirical models of order‐flow impact predict precisely this behavior:
// Bouchaud (2010) describes a “stimulated refill” mechanism, whereby a one‐sided price surge triggers an opposing flow of limit orders that pushes price back (a rising wall of liquidity).
// This liquidity‐induced mean‐reversion ensures that price often retraces to the gap midpoint as new limit orders fill the void.
// In essence, the 50% level embodies the short‐term equilibrium to which price gravitates after a liquidity shock.
//
// The FVG MTF + 50% indicator systematically implements these insights across multiple scales (M15, H1, H4).
// It identifies FVGs on each timeframe and continuously flags mitigation when price re‐enters a gap, effectively measuring market resiliency.
// A real‐time dashboard summarizes the total count of open FVGs and how many have been filled, quantifying latent imbalances much like institutional flow statistics.
// For example, a concentration of unfilled FVGs signals that many liquidity gaps remain, suggesting pent‐up supply/demand pressures. Conversely, a high fill rate indicates rapid liquidity absorption.
// By codifying ICT rules into quantitative outputs, this tool yields an empirical gauge of market stress and mean‐reversion potential.
//
// Overall, the script bridges ICT trading concepts with formal market microstructure.
// It treats FVG gaps as spontaneous liquidity voids and the 50% midpoint as a transient efficient price, consistent with Hasbrouck’s (2000) martingale view.
// As Bouchaud et al. note, markets operate with vanishing immediate liquidity and without instant equilibrium, explaining why price tends to return to the gap center.
// The dashboard and alerts translate these academic principles into actionable signals: by tracking gap creation and resolution, traders gain a systematic view of hidden order-flow dynamics.
// In summary, “FVG MTF + 50%” casts ICT’s smart‐money ideas in a rigorous framework (citing O’Hara, Hasbrouck, Bouchaud, Farmer, etc.), providing a scientific tool that enhances decision‐making with precise liquidity‐based metrics.
//
// References (illustrative):
// • Hasbrouck, J. (2000). The Economics of Microstructure: Latent Efficient Prices and Observed Quotes. wpa00047.pdf.
// • O’Hara, M. (1995). Market Microstructure Theory.
// • Bouchaud, J.-P., Farmer, J. D., & Lillo, F. (2011). How Markets Slowly Digest Changes in Supply and Demand. arXiv:1105.1694.
// • Bouchaud, J.-P. (2010). The Endogenous Dynamics of Markets: Price Impact and Feedback Loops. Farm\_CFM\_269-2010.pdf.
// • Huddleston, I. C. T. (ICT). Inner Circle Trader Lectures on Fair Value Gaps and 50% Midpoints.
//
// URLs for further reading:
// • (atas.net)
// • (fxopen.com)
// • (arxiv.org)
// • (w4.stern.nyu.edu)
// • (www.cfm.com)
//
// =============================================================================
//
// This indicator identifies Fair Value Gaps (FVGs) on M15, H1, and H4 timeframes, highlights them on the chart as colored boxes, draws the 50% median line,
// and displays price labels for the 0%, 50%, and 100% levels of each gap.
// It also tracks when gaps are “filled” (mitigated) and logs counts on a dashboard, providing real-time metrics on open/filled FVGs for liquidity analysis.
//
// Key Features:
// 1. Multi‐Timeframe Detection: Scans M15, H1, H4 for three‐bar FVG patterns using a configurable threshold.
// 2. Colored Zones and Median Lines: Draws bullish (green) and bearish (red) gap boxes, bordered in white, with a dashed white line at the midpoint.
// 3. Price Labels: Optionally annotates each gap with “0% FVG = \$X,” “50% FVG = \$Y,” and “100% FVG = \$Z” at the moment of detection.
// 4. Gap Mitigation: Monitors price re‐entry into a gap; when filled, it removes the box and logs a dashed line at the fill price.
// 5. Dashboard: Counts total bullish/bearish FVGs and calculates the percentage filled on each timeframe.
// 6. Alerts: Configurable alerts for new gap creation and fill events at 0%, 50%, and 100% levels.
//
// Implementation Details:
// • Detection Logic: A three-bar gap occurs when the middle bar’s low is above the prior bar’s high (bullish) or its high is below the prior bar’s low (bearish).
// A “threshold” parameter filters minor gaps based on relative size.
// • Data Structures: Uses Pine v6’s user‐defined “fvg” type to store gap high, low, direction, and timestamp. Arrays track open boxes, lines, labels for each timeframe.
// • Drawing:
// – box.new() draws transparent rectangles spanning 500 bars into the future.
// – line.new() draws dashed median lines and mitigation lines when gaps are filled.
// – label.new() places price annotations at the current right edge with textalign=text.align\_right.
// • Dashboard: table.new() creates a 3×3 panel showing “Bullish”/“Bearish” counts and “Mitigated” percentages in real time.
// • Alerts: alertcondition() triggers when new gaps form or are mitigated at specified percentages.
//
// Usage:
// • Add to chart: Apply the script; enable or disable timeframes via checkboxes (Enable FVG M15, H1, H4).
// • Configure text labels: Toggle “Text” to show or hide on‐chart price annotations.
// • Monitor dashboard: Observe counts and fill rates to gauge market liquidity pressure.
// • Set alerts: Enable alerts for specific levels (0%, 50%, 100%) and timeframes as needed.
//
// Potential Extensions:
// • Customizable lookback on fill monitoring (beyond “showLast” parameter).
// • Dynamic threshold based on ATR or volatility metrics instead of static percentage.
// • Integration with order‐flow or volume data to refine gap significance.
// • Expanded timeframes (D1, W, etc.) for higher‐timeframe liquidity profiling.
//
// =============================================================================
//
// © 2025. Licensed under CC BY‐NC‐SA 4.0 International.
// Feel free to reference academic works (Hasbrouck, Bouchaud, O’Hara) for theoretical context.
//
// End of Description.
Support and Resistance MTFSupport and Resistance MTF
Support and Resistance MTF is a powerful tool that automatically detects and visualizes key support and resistance levels based on pivot highs and lows, using a higher timeframe of your choice. It is designed for traders who focus on price action and market structure, and want an adaptive, clean, and customizable indicator that helps identify important market zones.
The script uses configurable pivot logic to identify levels, with user-defined parameters for pivot strength and timeframe. Once a support or resistance level is detected, it is displayed on the chart either as a horizontal line, a shaded box, or both, depending on your display settings. You can fully customize the visual appearance including color, transparency, and line thickness. Levels are automatically extended into the future, and optionally into the past, to give better context.
Each level is monitored for breakout behavior. If price breaks through a level, it can change its role — a former resistance may become support, and vice versa. After a certain number of breakouts (which you define), the level is considered invalid and is automatically removed from the chart. This helps to maintain a clean visual layout and ensures only relevant levels are shown.
The indicator supports multi-timeframe analysis, allowing you to overlay higher-timeframe structure directly on your lower-timeframe trading chart. It is also compatible with Heikin Ashi candles internally for reference, without affecting your main chart type.
Support and Resistance MTF is ideal for traders looking to align intraday setups with higher-timeframe zones, manage risk around structural levels, or simply highlight market turning points in a clear and automated way. Built with Pine Script v5 and optimized for performance, it is both powerful and lightweight.
⚙️ Input Parameters – Description
[Time-Frame
Defines the higher timeframe used for detecting support and resistance levels. For example, you can set this to 1h, 4h, or D to visualize significant levels from a broader market perspective on a lower-timeframe chart.
Left / Right (Pivot Left / Pivot Right)
These parameters control the sensitivity of the pivot detection. A pivot high/low is confirmed if it is higher/lower than the defined number of candles to its left and right. Higher values reduce noise but may miss smaller turning points.
Extend Left
When enabled, the drawn levels (lines and/or boxes) are extended to the left side of the chart, allowing you to see the historical alignment of these levels.
Max Breaks Before Delete
Defines how many times a level can be broken by price before it is removed from the chart. This helps to avoid clutter from outdated or invalidated levels and keeps your chart relevant to current price action.
Draw Lines Only
If enabled, the indicator will draw only horizontal lines for support and resistance zones, omitting the colored background boxes. Useful for a cleaner chart appearance.
Line Width Broken Level
Sets the thickness of the support/resistance lines. Thicker lines can emphasize key levels, especially after a breakout.
Transparency Boxes
Controls the transparency (0–100) of the background boxes representing the zones. A higher value makes the boxes more transparent, lower values make them more opaque.
Transparency Lines
Controls the transparency (0–100) of the horizontal support and resistance lines. This allows for visual fine-tuning based on chart background and personal preference.
Support (Color, Group: Display)
Lets you choose the color used for support zones and lines. By default, it's green, but you can change it to fit your theme or visual preference.
Resistance (Color, Group: Display)
Defines the color for resistance zones and lines. The default is red, but it can be customized freely.
AIO BOTAIO BOT Overview
This is an indicator that we have developed to provide signals, indicating whether you should buy or sell at that moment. In general, AIO BOT is built based on the VWAP and the volume of price movement, which is shown through three main lines on the chart:
The VWAP is represented by a gray-colored line by default.
The pink line is the key volume line for the Main Timeframe, which is colored pink by default.
The blue line is the key volume line for the Higher Timeframe, which is colored blue by default.
Additionally, there are some coding logics that we use to determine the signal candles like: convergence threshold (% of ATR) and pivot to filter good signals.
Originally, we built this BOT to trade crypto, specifically the BTCUSDT pair. It is designed for intraday trading. Therefore, the backtest results and settings are centered around BTCUSDT and are short trades that end within the day.
Symbol: BTCUSDT
Main Timeframe: 3m
Higher Timeframe: 15m
If you use AIO BOT to trade other symbols or other timeframes, the results might not align with your expectations, and you may need to adjust the settings to suit the symbol you're trading.
BOT Algos
There are 2 algorithms for signal detection. You can choose which algorithm best suits your symbol/trading style. You can also choose to display all signals of both algorithms
Algo 1: ON by default. This algorithm is built on the basis of the Key Volume Candles, VWAP, Pivot, Candlestick structure
Algo 2: OFF by default. This algorithm focuses more on how the candle reacts to these zone. This is a more aggressive algorithm, providing more signals and with higher risk.
In general, since the core logic of both algorithms is how the candle reacts to the key volume , you can choose the Cross mode as Cross or Touch from the settings. And to filter good signals, we add pivot logics & the convergence zone (%ATR) with yellow background to filter only good buy/sell signals of the algorithms. You can also change the value to widen or narrow the convergence zone. The default value is 150. Convergence zones are often important zones because they show consensus between indicators. Price can react strongly here (support/resistance or breakout).
Chart Layout
We typically use a 3-layout chart for 3 Timeframes:
3m
15m
1h
For other indicators, we also use them together for confluence analysis:
CDV, which is the Cumulative Delta Volume of LonesomeTheBlue.
How to Use AIO BOT
AIO BOT is not a fully automated 100% BOT. It generates signals to indicate that the price might be in a buy/sell zone. The actual entry candle/price might be the candle that triggered the signal or a different one.
Since AIO BOT uses higher timeframe data, it may sometimes produce repaint signals, especially when the signal is triggered by the key volume line of the higher timeframe (the blue line). To ensure the signal is accurate, wait for at least 2–3 more candles, then refresh the chart to confirm it's not a false signal before entering the trade.
To summarize: False signal = an alert occurred or a signal appears on the chart but then when you refresh the chart. It disappear. However, it may still be a potential zone to trade manually using logic like below:
The entry candle should be red for a sell trade and green for a buy trade.
The entry candle should be in a pullback zone from a larger trend.
The entry candle should cross one of the three lines: the key volume line of the main timeframe, the key volume line of the higher timeframe, or the VWAP line.
Consider not entering the trade immediately if the signal candle is too far from the VWAP line. Wait for the price to retrace to the VWAP zone and also retrace to key volume lines where those lines go like horizontal lines. Although we added Convergence Threshold to filter these ones but there may be some cases that we have not covered yet.
Prioritize selling when the price is below all three lines: the two key volume lines and the VWAP line.
Prioritize buying when the price is above all three lines: the two key volume lines and the VWAP line.
You can manually analyze and choose the buy/sell point based on the rules we just mentioned, without necessarily waiting for a signal candle from the BOT.
For CDV analysis: Set the SMA value to 20. If you want to increase the win rate, make sure the CDV candle is green and above the SMA when buying, and red and below the SMA when selling. CDV can also be used for analysis when the CDV candle retraces back to the SMA line as a potential entry point.
If the AIO BOT in a higher timeframe like 15m or 1h is showing a buy signal, but the lower timeframe (3m) is showing a reverse sell signal, consider not entering the trade and prioritize the higher timeframe.
For setting TP and SL: You need to set them manually, typically at nearby highs/lows.
In terms of experience with entering trades, we mostly use limit orders, with positions always around the key volume lines. You will need to analyze and choose the lines based on your own judgment.
When there are three consecutive signals in the same direction, we believe that by the third signal, you should consider not trading because the trend might be too strong and there could be a reversal risk at that point.
Timeframes and Higher Timeframes Settings
For 1m, 3m, and 5m TFs: We usually set the higher TF to 15m.
For 15m TF: We usually set the higher TF to 1h.
For 1h TF: We usually set the higher TF to 4h.
However, these values may differ for each symbol, so you should adjust them to fit your own trading style.
AIO BOT can be combined with other AIO indicators to increase the win rate. Depending on your trading method, you can choose the appropriate setup.
Some Explanatory Images
SF-NQ-3mSF Dual BB Momentum Strategy
// Description:
// This intraday trading strategy is designed to capture volatility breakouts and momentum shifts using advanced technical tools.
// It employs a multi-layer volatility framework through dual Bollinger Bands with configurable parameters to define dynamic entry and exit zones.
// Momentum filtering is achieved via a stochastic-based indicator to improve trade timing and reduce false signals.
//
// The strategy integrates adaptive risk management through ATR-based dynamic trailing stops combined with fixed stop loss and take profit levels.
// Additionally, it features a unique forced exit mechanism that triggers during specific volatility expansion patterns to protect capital.
//
// Multi-timeframe analysis is utilized, sampling price ranges from higher timeframes to improve signal robustness and reduce noise.
//
// Key Features:
// - Dual Bollinger Bands system for dynamic support/resistance and risk boundaries.
// - Stochastic momentum filter to help confirm trade entries and filter adverse market conditions.
// - ATR-based trailing stops with configurable trailing offset and minimum distance to lock in profits dynamically.
// - Forced exit on consecutive volatility expansion bars to mitigate risk during sudden market moves.
// - Configurable multi-timeframe sampling for more reliable entry signals.
// - JSON formatted alert messages for seamless integration with external automation platforms.
//
// Parameters Overview:
// Users can customize Bollinger Band periods, multipliers, and types (SMA or EMA) for both primary and secondary bands.
// Stop loss and take profit levels are adjustable to balance risk and reward preferences.
// Stochastic filter periods and threshold values are tunable to match user trading style.
// ATR period and trailing stop parameters provide flexible exit management.
// Forced exit features can be enabled or disabled according to user risk tolerance.
//
// Usage Recommendations:
// - Suitable for futures, forex, and other liquid markets with intraday timeframes.
// - Parameter optimization is recommended for each instrument and timeframe to enhance performance.
// - Comprehensive backtesting and paper trading should be conducted before deploying on live accounts.
// - Users should combine this strategy with prudent risk management and position sizing.
//
// Disclaimer:
// This strategy is provided as a tool for educational and analytical purposes only and comes without guarantees of profit.
// Market conditions vary, and past performance is not indicative of future results.
// Users assume full responsibility for any trading decisions made using this strategy.
//
// Licensing:
// This script is open-source under the TradingView Mozilla Public License 2.0.
TTM Squeeze MTF Full DashboardThis script puts a multi-timeframe dashboard directly on your main TradingView chart. It shows you, at a glance, whether price is in a squeeze, what the trend is, and how volatility/volume/OBV are behaving—all for your chart timeframe and up to four user-selected higher timeframes.
How to Set It Up
Add the Script to Your Chart:
Paste the code into a new indicator in TradingView’s Pine Script editor.
Add it to your chart.
Configure Your Timeframes:
Open the script’s settings.
Set MTF 1 Timeframe, MTF 2 Timeframe, MTF 3 Timeframe, and MTF 4 Timeframe to whatever you want (e.g., 5, 15, 60, D, W, M).
The “Chart” column will always show your current chart timeframe.
Set Dashboard Position:
Use the Dashboard Position dropdown to stick the dashboard in any corner of your main chart (top left, top right, bottom left, bottom right).
How to Read the Dashboard
Columns:
Chart: Your current chart timeframe.
MTF 1–MTF 4: Your chosen higher timeframes.
Rows:
💥 Squeeze:
⬛ Squeeze = Squeeze ON (tight volatility, expect a move soon)
🟩 No Sq = No squeeze (volatility expanding)
📊 Trend:
🟢 Bull = Price is above the 21 EMA
🔴 Bear = Price is below the 21 EMA
⚪ Flat = Price is right at the EMA
🌀 ADR Growth:
Today's range vs. 20-period average daily range; >1x means today is more volatile than usual.
📈 Vol/Week:
Today's volume divided by 5-bar average volume.
📆 Vol/Month:
Today's volume divided by 21-bar average volume.
🎧 OBV Δ:
Change in On-Balance Volume; a quick gauge of buying/selling pressure.
How to Trade With It
Look for ⬛ Squeeze in multiple columns: Squeezes across timeframes mean volatility is really compressed.
Combine with Trend:
🟢 Bull & Squeeze: Get ready for a bullish breakout.
🔴 Bear & Squeeze: Watch for a breakdown.
Check ADR and Vol: If ADR Growth is spiking but squeeze is on, you might be seeing the start of a move.
Watch OBV Δ: Use OBV to confirm whether volume is flowing in or out.
Tips and Warnings
If you see zeros (“0x”) for volume/ADR on a low-liquidity ticker or on a fresh chart, it means there isn’t enough data.
The dashboard is fully customizable. Set your own timeframes to match your trading system (e.g., scalping? Set MTFs to 5/15/60. Swinging? Try 1H/4H/D/W).
You don’t need to look at the code—just use the dashboard.
If you want alerts, you’ll need to add alertcondition() lines to the code.
Summary:
Add the script.
Pick your timeframes.
Read the dashboard: Squeeze, trend, volatility, volume, OBV, across five timeframes.
Trade like a grownup with context, not just candles and hope.
If you want a “how to trade squeeze” mini-guide, or need this as a block you can paste at the top of the script as a Pine description, let me know.
MÈGAS ALGO : NMS (Nexora Momentum Synchronizer) [INDICATOR]Overview
The NMS (Nexora Momentum Synchronizer) is an advanced, multi-timeframe indicator designed to deliver high-probability trade signals by aggregating and analyzing multiple momentum oscillators across configurable timeframes.
The script, thanks to the best technical momentum indicators provided by Tradingview, evaluates trend strength and market momentum through synchronized readings of TRSI , TSI , RSI , Stochastic RSI , Williams %R , and CCI , providing traders with a unified view of confluence and divergence.
In addition, the indicator implements a dynamic linear regression channel model that calculates slope, intercept, and deviation bounds based on a user-defined lookback period. Upper and lower bands are derived from price deviation and error margins, enabling the identification of overextended conditions — effectively determining whether the current price resides in a premium (overbought) or discount (oversold) zone relative to the trend.
With fully customizable parameters, multi-timeframe alerts, and selectable timeframes, this indicator caters to the diverse needs of traders, whether they are focused on short-term momentum bursts or long-term trend-following strategies.
By synchronizing momentum indicators across multiple timeframes, this tool provides a holistic view of market dynamics, empowering traders to make informed decisions with confidence.
Key Features
1.Multi-Timeframe Momentum Analysis
The Nexora Momentum Synchronizer performs a detailed analysis of key momentum indicators :
—Trend Strength Index (TSI) , True Strength Index (TSI) , Relative Strength Index (RSI) , Stochastic Oscillator (STOCH), Williams Percent Range (W%R) and Commodity Channel Index (CCI) —across multiple timeframes. This ensures traders receive a
comprehensive understanding of momentum alignment, helping them identify high-probability
trade setups with reduced noise and false signals.
In addition to oscillator alignment and regression-based zone detection, the script includes:
a price-to-open change percentage for each timeframe, providing insight into intrabar momentum and directional bias.
A real-time countdown to new bar/open , displayed directly in the table, which enhances timing precision and supports scalping or event-based trading strategies.
These tools combine to offer a comprehensive, non-repainting framework for both discretionary and alert-driven trading systems.
2.Customizable Parameters
Fully adjustable settings allow traders to tailor the indicator to their specific preferences and
adapt to diverse market conditions. From adjusting overbought and oversold levels to selecting preferred timeframes for multitimeframe alignment, the Nexora Momentum Synchronizer offers unparalleled flexibility to meet individual trading styles.
3.Multi-Timeframe Alerts
Traders can set up real-time alerts for momentum alignment, bullish or bearish crosses, and
overbought/oversold conditions across multiple selectable timeframes. These alerts ensure
that no opportunity is missed, regardless of the trading horizon or strategy being employed.
4.User-Friendly Interface
Designed with simplicity in mind, the Nexora Momentum Synchronizer features an intuitive
graphical interface that makes complex data easy to interpret. Clear visual cues and
interactive elements allow traders to focus on executing strategies without being
overwhelmed by cluttered charts.
Advantages of Nexora Momentum Synchronizer
Precision : Combines multi-timeframe analysis of advanced momentum indicators with fractal
insights to deliver highly accurate buy and sell signals.
Flexibility : Fully customizable parameters ensure the indicator adapts to diverse market
conditions and trader preferences.
Comprehensive Analysis : Multi-timeframe evaluation of momentum indicators provides a
holistic view of market dynamics, enhancing trade confidence.
Actionable Insights : Proprietary Fractal Algorithm delivers precise entry points, improving
trade execution and timing.
Real-Time Alerts : Multi-timeframe alert functionality keeps traders informed of critical
market movements and momentum shifts across different horizons.
Please Note:
This indicator is provided for informational and educational purposes only. It is not financial advice, and it should not be considered a recommendation to buy, sell, or trade any financial instrument. Trading involves significant risks, including the potential loss of your entire investment. Always conduct your own research and consult with a licensed financial advisor before making any trading decisions.
The results and images provided are based on algorithms and historical/paid real-time market data but do not guarantee future results or accuracy. Use this tool at your own risk, and understand that past performance is not indicative of future outcomes.
MÈGAS ALGO : MÈGAS Signals [INDICATOR]Overview
The MÈGAS Signals is a cutting-edge, multi-functional trading tool designed for advanced traders seeking to identify high-probability trade setups. This script combines price action analysis, machine learning techniques, and real-time signal generation across multiple timeframes to provide actionable insights. The indicator is optimized for both bullish and bearish market conditions and includes features like backtesting metrics, take-profit tools, and customizable alerts.
Key Features
1. Machine Learning and Statistical Clustering
The script implements the K-Means clustering algorithm , a widely used unsupervised machine learning technique, to segment historical price movements into distinct clusters based on magnitude and distribution characteristics. These clusters represent quantized levels of bullish and bearish momentum, enabling the system to adaptively model market behavior across varying volatility regimes.
By applying this statistical clustering approach to real-time price data, the algorithm dynamically identifies meaningful thresholds for key Smart Money Concepts (SMC) such as Break of Structure (BOS) and Change of Character (CHOCH) . This integration enhances classical SMC logic with a data-driven, self-adjusting mechanism that responds to evolving market conditions, effectively bridging traditional price action analysis with modern machine learning methodologies.
2.Multi-Timeframe Table:
A dynamic, real-time multi-timeframe table displayed on the chart that provides at-a-glance insight into:
-Current trend or signal status per timeframe
-Percentage price change relative to the previous bar
-Countdown to the next bar open , updated every second
This table empowers traders with cross-timeframe context , helping them identify confluence, reversals, or divergences across multiple horizons — from scalping (1m) to long-term trends (1D).
3.Dynamic Trailing Stops with Enhanced Visualization
The dynamic trailing stop mechanism adjusts based on volatility clusters, ensuring tighter risk
management during low-volatility periods and wider stops during high-volatility phases.
The feed speed feature enhances visualization by adjusting the transparency of candle
coloring relative to the trailing stop. This makes it easier to interpret trend strength and
momentum, allowing traders to stay ahead of price action.
4.Customizable Alerts for Seamless Execution
Sublimia Signals offers highly customizable alerts that can be tailored to specific timeframes
and trading preferences.
With the intra-bar calculation feature, alerts can be triggered on every tick rather than just
on bar close, empowering traders to act swiftly in fast-moving markets.
Personalized alert messages allow you to create clear and concise notifications for entry and
exit points, streamlining your trading workflow.
5.Comprehensive Backtesting Metrics
The built-in performance metrics table provides detailed backtesting results, including total
trades, win rates, cumulative profit/loss, profit factor, best profit, and worst loss for both
long and short positions.
These metrics enable traders to evaluate the effectiveness of their strategies and optimize
input parameters for better performance.
6.Non-Standard Candle Integration for Smoother Price Action Analysis
The optional Non-Standard Candle toggle allows users to switch between "Traditional", "Heikin-Ashi", "Volume-Weighted" and "Hybrid" candles.
This feature is particularly useful for identifying trends and filtering out market noise, while
backtesting remains based on normal candles to ensure accuracy.
7.Intra-Bar Calculation for Granular Insights
When enabled, the intra-bar calculation feature provides granular insights into price
movements within each bar, offering traders a deeper understanding of market dynamics.
This feature also modifies the algorithm's logic, triggering alerts on every tick rather than just
on bar close, making it ideal for scalpers and day traders who need ultra-responsive tools.
8.Take-Profit/Trailing-Profit Tools: Precision and Flexibility
This feature allows you to set multiple profit levels with customizable percentage
distances, giving you unparalleled control over your trades.
Selectable Type of exit mode : Take-Profit or Trailing-Profit.
Selectable Number of Profit Levels: Define as many profit targets as you need,
ensuring you can capture profits at different stages of price movement.
Percentage-Based Distance: Set each profit level based on a percentage distance from
your entry point. This ensures precise positioning tailored to your risk-reward preferences.
Integrated Alerts: Never miss an opportunity! The tool includes built-in alerts that notify you
when each take-profit level is reached, keeping you informed in real-time.
9.Optimized Visualization
The script ensures optimized visualization of trend strength through smooth transitions in
candle transparency, making it easier to interpret market momentum.
The feed speed parameter calculates how quickly the candle coloring adjusts relative to the
trailing stop, enhancing clarity and decision-making.
How it work
Identify the Primary Trend Using Multi-Timeframe Analysis :
Focus on Higher Timeframes : Start by analyzing the 4h, 8h, or 24h timeframes to determine the primary trend. These higher timeframes provide a clearer picture of long-term momentum.
The built-in table provides real-time updates across all primarly timeframes. Look for confluence—when multiple timeframes align in the same direction.
Confirm Entry Points Using Lower Timeframes :
Fine-Tune Entries with Shorter Timeframes : Once you’ve identified the primary trend, use lower timeframes (e.g., 1m, 5m, or 15m ) to confirm entry points.
Set Take-Profit Levels Based on Percentage Distances :
Customizable Take-Profit Tools : Use the take-profit feature to set multiple levels based on percentage distances from your entry point.
Use Customizable Alerts for Real-Time Updates :
Enable alerts for specific timeframes (e.g., 4h, 8h, 15m) to stay informed about changes in the primary trend or short-term opportunities.
For fast-moving markets, enable the intra-bar calculation feature to receive alerts on every tick, ensuring you don’t miss critical entries or exits.
Backtesting for Strategy Optimization :
Performance Metrics : Use the backtesting metrics table to evaluate how well your trend-following strategy performs over time. Analyze win rates, profit factor, and best/worst trades to refine your approach.
Adjust Inputs : Fine-tune settings like slippage and commission(%) to optimize the indicator for your prefer pair.
Please Note:
This indicator is provided for informational and educational purposes only. It is not financial advice, and it should not be considered a recommendation to buy, sell, or trade any financial instrument. Trading involves significant risks, including the potential loss of your entire investment. Always conduct your own research and consult with a licensed financial advisor before making any trading decisions.
The results and images provided are based on algorithms and historical/paid real-time market data but do not guarantee future results or accuracy. Use this tool at your own risk, and understand that past performance is not indicative of future outcomes.
MirPapa:ICT:HTF: Candle OB Threeple# MirPapa:ICT:HTF: Candle OB Threeple
**Version:** Pine Script® v6
---
## Installation
1. Open TradingView’s Pine Editor.
2. Paste the entire script (including `import goodia/MirPapa_Library_ICT/3 as lib`).
3. Click **“Add to Chart”**.
---
## Inputs & Configuration
After adding to chart, open the indicator’s settings panel:
1. **Box Close Color**
- Choose the color applied when a Candle OB box is finalized (recolored).
2. **HighTF COB Settings**
- **HighTF Label:** Select a higher timeframe (e.g., “4시간” for 4H).
- **Enable HighTF COB Boxes:** Toggle drawing of HighTF boxes.
- **Enable HighTF COB Midlines:** Toggle drawing of the horizontal midpoint line inside each HighTF box.
- **HighTF COB Close Count:** Number of HTF closes beyond the box required to finalize (1–10).
- **HighTF COB Bull Color / Bear Color:** Select fill/border colors for bullish and bearish HighTF boxes.
- **HighTF Box Transparency:** Adjust box opacity (1–100).
3. **MidTF COB Settings**
- **MidTF Label:** Select a middle timeframe (e.g., “1시간” for 1H).
- **Enable MidTF COB Boxes:** Toggle drawing of MidTF boxes.
- **Enable MidTF COB Midlines:** Toggle the midpoint line inside each MidTF box.
- **MidTF COB Close Count:** Number of MidTF closes beyond the box required to finalize (1–10).
- **MidTF COB Bull Color / Bear Color:** Select fill/border colors for bullish and bearish MidTF boxes.
- **MidTF Box Transparency:** Adjust box opacity (1–100).
4. **CurrentTF COB Settings**
- **Enable CurrentTF COB Boxes:** Toggle drawing of COB boxes on the chart’s own timeframe.
- **Enable CurrentTF COB Midlines:** Toggle the midpoint line inside each CurrentTF box.
- **CurrentTF COB Close Count:** Number of closes beyond the box required to finalize (1–10).
- **COB Detection Level:** Choose pivot strength for detection (1 or 2).
- **CurrentTF COB Bull Color / Bear Color:** Select fill/border colors for bullish and bearish CurrentTF boxes.
- **CurrentTF Box Transparency:** Adjust box opacity (1–100).
---
## Display & Interpretation
- **Candle OB Boxes**
- Each box appears at the moment a reversal candle is detected on the chosen timeframe.
- Bullish boxes have the “Bull Color”; bearish boxes have the “Bear Color.”
- The midpoint line (if enabled) is drawn across the box’s center.
- **Box Extension**
- Once created, each box extends to the right on every new bar of the chart.
- You will see the box tracking along with price until it is finalized.
- **Box Finalization (Recoloring)**
- After the specified number of closes beyond the candle range, the box’s border and fill change to the **Box Close Color**.
- Finalized boxes remain visible in semi-transparent form, indicating that the zone has been “tested.”
- **Multiple Timeframes**
- If HighTF, MidTF, and/or CurrentTF boxes are all enabled, you’ll see up to three separate layers of boxes (one per timeframe).
- Higher-timeframe boxes typically span more candles; MidTF and CurrentTF boxes will be narrower.
---
## Tips
- **Adjust Opacity** to avoid clutter when multiple boxes overlap.
- **Use Distinct Colors** for each timeframe to quickly differentiate HighTF vs. MidTF vs. CurrentTF.
- **Experiment with Close Count** to control how long boxes remain active before finalizing.
- **Toggle Midlines** if you prefer seeing only the box or want an added visual cue at its center.
Enjoy clear, multi-timeframe Candle Order Block visualization on your chart!
MirPapa:ICT:HTF: FVG OB Threeple# MirPapa:ICT:HTF: FVG OB (Fair Value Gap Order Block)
**Version:** Pine Script® v6
**Author:** © goodia
**License:** MPL-2.0 (Mozilla Public License 2.0)
---
## Overview
“FVG OB” (Fair Value Gap Order Block) identifies higher-timeframe candle ranges where a gap (imbalance) exists between two non-consecutive candles, signaling potential institutional order blocks. This module draws bullish or bearish FVG OB boxes on your lower-timeframe chart, extends them until price interacts a specified number of times, and then finalizes (recolors) the box.
---
## Inputs
- **Enable FVG OB Boxes** (`bool`)
Toggle drawing of HTF FVG OB boxes on the chart.
- **Enable FVG OB Midlines** (`bool`)
Toggle drawing of a midpoint line inside each FVG OB box.
- **FVG OB Close Count** (`int` 1–10)
Number of HTF closes beyond the FVG range required to finalize (recolor) the box.
- **FVG OB Bull Color** (`color`)
Fill & border color for bullish FVG OB boxes.
- **FVG OB Bear Color** (`color`)
Fill & border color for bearish FVG OB boxes.
- **FVG OB Box Transparency** (`int` 1–100)
Opacity level for FVG OB box fills (higher = more transparent).
---
## How It Works
1. **HTF Data Retrieval**
- The script uses `request.security()` (via `GetHTFrevised()`) to fetch HTF OHLC and historical values:
- `_htfHigh3` (high three bars ago) and `_htfLow1` (low one bar ago) for bullish FVG OB.
- `_htfLow3` (low three bars ago) and `_htfHigh1` (high one bar ago) for bearish FVG OB.
- It also tracks the HTF `bar_index` on the lower timeframe to align drawing.
2. **FVG OB Detection**
- **Bullish FVG OB**: Occurs when the HTF low of the previous bar (`low `) is strictly above the HTF high of three bars ago (`high `), creating a gap.
- **Bearish FVG OB**: Occurs when the HTF high of the previous bar (`high `) is strictly below the HTF low of three bars ago (`low `), creating a gap.
3. **Box Creation**
- On each new HTF bar (`ta.change(time(HTF)) != 0`), if a bullish or bearish FVG OB condition is met, the script calls `CreateBoxData()` with:
- **Bullish**: `bottom = HTF low `, `top = HTF high `, `_isBull = true`.
- **Bearish**: `bottom = HTF low `, `top = HTF high `, `_isBull = false`.
- Midline toggled by input.
- A `BoxData` struct is created and stored in either the Bull or Bear array.
4. **Box Extension & Finalization**
- On **every LTF bar**, `ProcessBoxDatas(...)` iterates over all active FVG OB boxes:
1. **Extend Right Edge**: `box.set_right(bar_index)` ensures the box follows the latest bar.
2. **Record Volume Delta**: Tracks buy/sell volume inside the box.
3. **Touch Stage Update**: `modBoxUpdateStage()` increments `_stage` when price touches its “basePoint” (for FVG OB, the basePrice is one side of the gap).
4. **Finalize**: `setBoxFinalize()` checks if the configured number of closes beyond the FVG gap (`FVG OB Close Count`) has occurred. If so:
- `_isActive := false`
- Border and background colors are changed to the “Box Close Color” (input).
- Finalized boxes remain on screen semi-transparent, indicating that the FVG OB zone has been tested.
5. **Midline (Optional)**
- If “Enable FVG OB Midlines” is checked, `ProcessBoxDatas()` also extends a horizontal midpoint line inside the box with `line.set_x2(bar_index)`.
---
## Usage Instructions
1. **Installation**
- Copy the FVG OB section of the Pine Script into TradingView’s Pine Editor (ensure the library import is included).
- Click “Add to Chart.”
2. **Configure Inputs**
- Choose a Higher Time Frame via the dropdown (e.g., “4시간” maps to a 4H timeframe).
- Toggle “Enable FVG OB Boxes” and “Enable FVG OB Midlines.”
- Select colors for bullish and bearish boxes and set transparency.
- Adjust “FVG OB Close Count” to control how many closes beyond the gap finalize the box.
3. **Interpretation**
- **Active FVG OB Boxes** extend to the right until price closes beyond the gap range the specified number of times.
- When finalized, each box changes to the “Box Close Color,” signaling that institutional orders in that gap have likely been filled.
Enjoy precise visualization of higher-timeframe Fair Value Gap Order Blocks on your lower-timeframe chart!
MirPapa:ICT:HTF: FVG Threeple# MirPapa:ICT:FVG Double HTF
**Version:** Pine Script® v6
**Author:** © goodia
**License:** MPL-2.0 (Mozilla Public License 2.0)
---
## Overview
“MirPapa:ICT:FVG Double HTF” is a TradingView indicator that identifies and visualizes Fair Value Gaps (FVG) on two higher time frames (HighTF and MidTF) simultaneously. It can also draw FVG boxes on the current chart’s time frame. When “Overlap Mode” is enabled, the indicator displays only the intersection of HighTF and MidTF FVG areas.
---
## Key Features
- **HighTF FVG**
- Detects bullish and bearish FVGs on a user-selected upper time frame (e.g., 4H).
- Draws colored boxes around gap ranges, optionally with a midpoint line.
- Automatically extends boxes on every bar and finalizes (recolors) them after a specified number of closes beyond the gap.
- **MidTF FVG**
- Same as HighTF FVG but for a second, intermediate time frame (e.g., 1H).
- Runs in parallel to HighTF logic, with separate color and transparency settings.
- **CurrentTF FVG (Optional)**
- If enabled, draws FVG boxes using the chart’s own time frame.
- Behaves identically: extends until broken by price, then finalizes.
- **Overlap Mode**
- When enabled, hides all individual HighTF and MidTF boxes.
- Instead, computes and displays only their overlapping rectangle(s)—separate for bullish and bearish gaps.
---
## Inputs & Configuration
- **Common Inputs**
- **Enable High/Mid Overlap Mode** (`boolean`): Show only overlapping HighTF + MidTF FVG areas.
- **Box Close Color** (`color`): Color applied to any FVG box when it is finalized.
- **HighTF FVG Settings**
- **HighTF Label** (`dropdown`): Choose a Korean label (e.g., “4시간”) that maps to a Pine timeframe (e.g., “240”).
- **Enable HighTF FVG Boxes** (`boolean`): Toggle drawing of HighTF FVG boxes.
- **Enable HighTF FVG Midlines** (`boolean`): Toggle midpoint line inside each HighTF box.
- **HighTF FVG Close Count** (`integer` 1–10): Number of closes beyond the gap before finalizing the box.
- **HighTF FVG Bull Color** (`color`): Fill & border color for bullish HighTF gaps.
- **HighTF FVG Bear Color** (`color`): Fill & border color for bearish HighTF gaps.
- **HighTF Box Transparency** (`integer` 1–100): Opacity level for HighTF box fills.
- **MidTF FVG Settings**
- **MidTF Label** (`dropdown`): Choose a Korean label (e.g., “1시간”) mapped to a Pine timeframe.
- **Enable MidTF FVG Boxes** (`boolean`): Toggle drawing of MidTF FVG boxes.
- **Enable MidTF FVG Midlines** (`boolean`): Toggle midpoint line inside each MidTF box.
- **MidTF FVG Close Count** (`integer` 1–10): Number of closes beyond the gap before finalizing the box.
- **MidTF FVG Bull Color** (`color`): Fill & border color for bullish MidTF gaps.
- **MidTF FVG Bear Color** (`color`): Fill & border color for bearish MidTF gaps.
- **MidTF Box Transparency** (`integer` 1–100): Opacity level for MidTF box fills.
- **CurrentTF FVG Settings**
- **Enable CurrentTF FVG Boxes** (`boolean`): Draw FVG boxes on the chart’s own timeframe.
- **Enable CurrentTF FVG Midlines** (`boolean`): Toggle midpoint line inside each CurrentTF box.
- **CurrentTF FVG Close Count** (`integer` 1–10): Number of closes beyond the gap before finalizing the box.
- **CurrentTF FVG Bull Color** (`color`): Fill & border color for bullish CurrentTF gaps.
- **CurrentTF FVG Bear Color** (`color`): Fill & border color for bearish CurrentTF gaps.
- **CurrentTF Box Transparency** (`integer` 1–100): Opacity level for CurrentTF box fills.
---
## How It Works
1. **Time Frame Conversion**
Korean labels (e.g., “4시간”, “1시간”) are converted internally to Pine timeframe strings via `GetHtfFromLabel()`.
2. **Data Retrieval**
For each chosen TF (HighTF, MidTF, and optionally CurrentTF), the script fetches OHLC and historical values using `GetHTFrevised()`.
- Tracks `bar_index` from that TF to align box drawing on the chart’s base timeframe.
3. **Box Lifecycle**
- **Creation**: On each new TF bar, if a bullish gap (`low > high `) or bearish gap (`low > high `) is detected, `CreateBoxData()` registers a new `BoxData` struct and draws an initial box.
- **Extension**: On every chart bar, `ProcessBoxDatas()` extends each active box’s right edge and updates internal “touch stage” and volume.
- **Finalization**: After the specified number of closes beyond the gap, `setBoxFinalize()` disables the box and changes its border & fill to the “Box Close Color”.
4. **Overlap Mode**
- When enabled, HighTF and MidTF boxes are not drawn individually.
- Instead, at each bar, the script iterates over all active HighTF boxes and all active MidTF boxes, computes their intersection rectangle (if any), and draws only that overlapping area (distinct handling for bullish vs. bearish gaps).
---
## Installation & Usage
1. **Copy & Paste**
Copy the entire Pine Script code into TradingView’s Pine Editor.
Click “Add to Chart.”
2. **Configure Inputs**
- Choose your HighTF and MidTF via the dropdown menus.
- Enable or disable FVG boxes/midlines for each TF.
- Adjust colors, transparency, and “Close Count” settings to taste.
- Toggle “Overlap Mode” if you only want to see common areas between HighTF and MidTF gaps.
3. **Interpretation**
- **Active Boxes** extend to the right as new bars form. When price closes beyond a gap (per “Close Count”), the box is finalized and recolored to the close color.
- In **Overlap Mode**, you’ll see only the overlapping region between HighTF and MidTF gaps, updated on every bar.
Enjoy precise FVG visualization across multiple time frames!
BG EMA MTF**BG EMA MTF**
*Multi‐Timeframe Exponential Moving Averages Sentiment*
---
## Overview
BG EMA MTF calculates a single “sentiment score” by checking the direction of five user-defined EMAs across five user-defined timeframes. It aggregates 25 individual EMA signals (rising vs. falling) into one percentage and displays it as a small, color-coded overlay table.
---
## Features
* **Five EMAs (configurable)**: Default lengths are 5, 20, 50, 70, and 200.
* **Five Timeframes (configurable)**: Any valid Pine timeframe (e.g., “1”, “5”, “15”, “60”, “240”, “D”, “W”).
* **Trend Detection**: Each EMA is considered “rising” if its current value > value two bars ago.
* **Sentiment Aggregation**: Counts how many “rising” EMA signals out of 25 total (5 EMAs × 5 timeframes) and converts it to a 0–100% score.
* **Overlay Display**:
* Text: `BG EMA MTF : XX %`
* Background color:
* **Green** (80% opacity) when score > 50% (bullish).
* **Red** (80% opacity) when score < 50% (bearish), showing 100 – raw for symmetry.
* **Gray** (80% opacity) when score = 50% (neutral).
* Percentage text remains black for maximum contrast.
* Hover tooltip shows “Bullish (N Bullish / M Bearish on 25 signals)” or “Bearish…” / “Neutral (12 Bullish / 13 Bearish)”.
---
## Inputs
1. **Timeframes (tf1…tf5)**
* Five `input.timeframe` fields.
* Default: “1”, “1”, “3”, “5”, “15”.
2. **EMA Lengths (len1…len5)**
* Five `input.int` fields.
* Default: 5, 20, 50, 70, 200.
3. **Table Position**
* `input.string`: “top\_left”, “top\_right” (default), “bottom\_left”, “bottom\_right”.
4. **Text Size**
* `input.string`: “tiny”, “small”, “normal” (default), “large”, “huge”.
5. **Colors**
* `col_bullish` (default: lime), `col_bearish` (default: red), `col_neutral` (default: gray).
---
## How to Use
1. Add the script to your chart.
2. Customize timeframes and EMA lengths to match your strategy (e.g., scalping vs. swing trading).
3. The overlay shows the current sentiment:
* **> 50% (green)** → majority of EMA signals are rising → bullish bias.
* **< 50% (red)** → majority are falling → bearish bias.
* **= 50% (gray)** → neutral.
4. Hover over the table to see the exact breakdown of bullish vs. bearish EMAs (e.g., “Bullish (18 Bullish / 7 Bearish on 25 signals)”).
---
## Disclaimer
This indicator is for informational purposes only. It does not constitute trading advice. Always test strategies on historical data before using in live trading.
---
**Version 1.0**
© babtrader24 – Licensed under MPL 2.0 ( (mozilla.org))
GOOGL Multi-Timeframe LevelsGOOGL levels from Pivot, Fib, Gann, OI, Volume, Dark Pool evaluated by AI at 6 months, 2 weeks, and 1 week. Specific to 02Jun25
AAPL Multi-Timeframe LevelsAuto-populate level lines from AI Analysis of key technical, pivot, volume, liquidity and Fib lines for 6 month, 2 week and 1 week timeframes. Levels are specific to the target date shown, although wider swing levels based on longer timeframe analysis may still be valid.
Weekly Session Divider (Alt Background) | Chart_BullyThis tool adds subtle alternating background shading for each new week, helping you visually distinguish trading sessions at a glance.
✅ Alternates background by weekly session
✅ Works great on intraday and daily timeframes
✅ Ideal for traders who rely on weekly pivots, volume profiles, or macro structure
✅ Compatible with both RTH and ETH charts
✅ Clean design for easy chart integration
Use it to improve your session awareness, spot emerging weekly trends, and avoid mental fatigue when reading extended charts.
MEO PRO: BIST Market Strength Oscillator / Piyasa Gücü OsilatörüMEO PRO: BIST Market Strength Oscillator
MEO PRO: BIST Market Strength Oscillator helps you gauge the overall strength of the market by showing how many of your selected Borsa Istanbul (BIST) symbols are trading above their specified moving average. This tool, which generates a value between 0 and 1, provides insight into the general direction of BIST.
Features
* Measures the overall strength of the BIST market.
* Tracks up to 7 user-defined BIST symbols (indices, stocks, etc.).
* Adjustable Moving Average (MA) period for trend determination.
* Adjustable smoothing (EMA) period for the oscillator.
* Clear oscillator output ranging from 0 to 1.
* Key reference levels: Strong Bullish (0.80), Neutral Zone (0.50), Strong Bearish (0.20).
* The indicator's user interface (settings, tooltips) is in Turkish.
---
Who Is It For?
* Borsa Istanbul (BIST) investors and technical analysts.
* Those who want to get an idea about the overall market strength and market breadth.
* Those looking for an additional confirmation and assessment tool for their existing technical analysis methods.
---
How to Use?
1. Adding to Chart:
In TradingView, search for "MEO PRO: BIST Market Strength Oscillator" in the "Indicators" section and add it to your chart.
2. Settings:
MA Period for Trend: Determines the MA against which tracked symbols are evaluated (e.g., 50).
Oscillator Smoothing Period: Smoothes the oscillator line (e.g., 10).
Symbols to Track: Enter up to 7 BIST symbols (e.g., "BIST:XU100", "BIST:GARAN") and activate them.
3. Interpretation:
* If the oscillator is at 0.80 or above, it generally indicates a strong bullish trend in the market.
* If the oscillator is at 0.20 or below, it generally indicates a strong bearish trend in the market.
* Values around 0.50 may suggest an indecisive or sideways market.
* Important Note: This oscillator should not be used as a standalone buy/sell signal but as a decision support tool in conjunction with other analyses.
---
Frequently Asked Questions (FAQ)
Q: Does this indicator only work for BIST?
A: Yes, it is primarily designed for Borsa Istanbul (BIST) symbols and market conditions.
Q: How many symbols can I track at most?
A: There are 7 symbol inputs in the settings.
Q: Why does the oscillator range between 0 and 1?
A: The oscillator shows the ratio of active symbols above their MA to the total number of active symbols; this ratio is always between 0 and 1.
Q: Does this indicator provide definitive buy/sell signals?
A: No. The MEO PRO BIST Market Strength Oscillator is an analysis tool that provides insight into the overall market condition. Trading decisions should be based on your personal risk assessment and other analyses.
---
Disclaimer
* This indicator is for educational and informational purposes only and does not constitute investment advice.
* Past market performance is not a guarantee of future results.
* You are solely responsible for any trades you make using this indicator. Trading in financial markets involves risk of loss.
* It is important to conduct your own research and, if necessary, consult a licensed financial advisor before making any investment decisions.
---
TradingView Terms of Use
By using this indicator on the TradingView platform, you agree to TradingView's Terms of Use. You can access the current terms of use at www.tradingview.com
⚙️ 𝓕𝓪𝓬𝓽𝓸𝓻𝓕𝓾𝓼𝓲𝓸𝓷 ⚙️ | QuantMAC⚙️ FactorFusion ⚙️ - Advanced Multi-Factor Crypto Portfolio System
🤔 What is FactorFusion?
FactorFusion is a comprehensive cryptocurrency portfolio rotation system 🔄 designed to help traders systematically identify and invest in the strongest-performing assets. Unlike basic indicators that merely signal buy or sell opportunities, FactorFusion is a complete trading framework ⚡. It analyzes up to 38 crypto assets 📊 at once—such as BONKUSD, WIFUSD, and PEPEUSD—and dynamically selects the top 3 performers 🏆 based on a combination of advanced financial metrics like alpha , beta , and a proprietary Trend Probability Index (TPI) . It also incorporates market regime detection 🔍 and a BB% market filter to ensure trades align with favorable conditions, switching to cash 💰 during choppy or bearish markets to protect your capital 🛡️. Working on previous bar close data and a visually intuitive interface, FactorFusion empowers traders to make data-driven decisions with confidence. ✨
👥 Who Should Use This Indicator?
📈 Swing Traders : Ideal for rotating positions over days to weeks based on momentum.
💼 Portfolio Managers : Offers a systematic way to allocate capital across crypto assets.
🧮 Quantitative Traders : Provides robust data and backtesting capabilities for strategy refinement.
🎯 Advanced Investors : Delivers professional-grade tools for risk management and performance analysis.
⚙️ Core Components Explained
FactorFusion 's strength lies in its multi-layered approach. Here's a detailed breakdown of its key components and how they function within the system:
📊 Alpha & Beta Analysis
Alpha 🎯: Measures an asset's excess return compared to a benchmark (default: CRYPTOCAP:OTHERS).
How It Works : Calculated over a configurable period (default: 40 bars), alpha quantifies how much an asset outperforms the market after adjusting for risk. For example, an alpha of 0.5% means the asset beats the benchmark by 0.5% daily.
Role in Selection : Only assets with alpha ≥ a threshold (default: 0.3%) are eligible, ensuring weak performers are filtered out 🚫.
Interpretation : Positive alpha (e.g., green in the table) signals potential outperformance 🟢.
Beta 📈: Assesses an asset's volatility and correlation with the market.
How It Works : Computed over 40 bars by default, beta shows how sensitive an asset is to market movements (e.g., beta of 1.2 means 20% more volatile than the benchmark).
Role : Complements alpha by providing a risk context, though it's not a direct filter in selection.
Interpretation : Helps you understand the risk exposure of top-ranked assets. ⚖️
Together, alpha and beta provide a risk-adjusted lens for identifying high-performing assets. 🔍
🔥 Trend Probability Index (TPI)
What It Is : A proprietary momentum signal derived from Bollinger Bands. 📊
(might change this to be more comprehensive in the near future)
How It Works :
Uses a base length (default: 31 bars), standard deviation length (default: 65 bars), and multiplier (default: 2.6) to calculate Bollinger Bands on the asset's price.
Converts the price's position within the bands into a percentage (BB% Multiplier: 100), then compares it to thresholds:
Positive TPI : Above 83% (bullish momentum 🚀).
Negative TPI : Below 66% (bearish momentum 📉).
Role in Selection : Only assets with positive TPI qualify for ranking, ensuring the system targets assets in strong uptrends.
Interpretation : A "Positive" TPI in the table means the asset is trending upward ⬆️, making it a candidate for selection.
🔄 Market Regime Detection
A sophisticated filter that identifies whether the market is in a trending phase (prices moving steadily up or down) or a mean-reverting phase (prices oscillating within a range). This helps decide whether to trade or stay in cash.
How It Works : It combines multiple statistical tests, each customizable, to assess market conditions. These tests contribute to a Trend Confidence Score , which determines the market regime. Here’s how each component works and is calculated:
KPSS Test (Lookback: 30, Significance: 0.05):
What It Does : Checks if prices are stationary (mean-reverting) or non-stationary (trending).
How It’s Calculated : Analyzes the last 30 bars of price data to test for a unit root—a statistical sign of a trend. It produces a test statistic; if this exceeds 0.05 (the significance level), it indicates a trend.
Why It Matters : A trending result increases the confidence score.
Choppiness Index (Period: 16, Signal: 10):
What It Does : Measures how “choppy” or sideways the market is.
How It’s Calculated : Over 16 bars, it calculates price range relative to total movement, scaled from 0 to 100. Values above 61.8 suggest high choppiness (no trend), while below 38.2 indicate a trend. A 10-bar signal line smooths the result.
Why It Matters : Low choppiness boosts the trend confidence.
Hilbert Transform (Smoothing: 24, Filter: 20):
What It Does : Breaks down price data to confirm if the market is trending or cycling.
How It’s Calculated : Uses a mathematical process (Hilbert Transform) over 24 bars to separate trend and cycle components, then applies a 20-bar filter to smooth the output.
Why It Matters : A strong trend component raises the confidence score.
DMI Component (Threshold: 25):
What It Does : Assesses the strength and direction of a trend (optional).
How It’s Calculated : Uses the Directional Movement Index (DMI) over 14 bars, comparing +DI (upward movement) and -DI (downward movement). If the difference exceeds 25, it signals a strong trend.
Why It Matters : A large difference supports a trending market.
ADF Test (Threshold: -1.5, Lookback: 30):
What It Does : Tests if prices are stationary (mean-reverting) or trending (optional).
How It’s Calculated : The Augmented Dickey-Fuller test analyzes 30 bars of price data. A test statistic below -1.5 indicates stationarity (no trend); above -1.5 suggests a trend.
Why It Matters : A non-stationary result adds to trend confidence.
Each test’s result feeds into the Trend Confidence Score . If the score exceeds a threshold (e.g., 0.25), the market is classified as trending, prompting trades. Otherwise, it’s mean-reverting, and the system avoids trading.
Aggregation : Combines these signals into a Trend Confidence Score (threshold: 0.25). If >0, the market is trending 📈; otherwise, it's mean-reverting 🔄.
Role : The system only takes positions during trending conditions, switching to cash otherwise. 💰
Interpretation : Displayed as "Trending" or "Mean Reverting" in the table, with a percentage (e.g., 75%) showing the proportion of assets trending.
🛡️ BB% Market Filter
What It Is : An additional safety check using Bollinger Band percentiles on a market index (default: CRYPTOCAP:OTHERS). 🔒
How It Works :
Calculates Bollinger Bands (Base: 35, SD Length: 40, Multiplier: 2.7) on a chosen timeframe (default: 480 minutes).
Converts the index's position into a percentage (default multiplier: 100).
Bullish : Above 83% ▲▲▲ 🟢.
Bearish : Below 44% ▼▼▼ 🔴.
Role : Ensures the broader market is bullish before allowing positions. If bearish, the system shifts to cash. 💰
Interpretation : Plotted as a green (bullish) or red (bearish) line; also shown as "BULLISH" or "BEARISH" in the table.
🔧 How It Works - The Selection Process
FactorFusion follows a rigorous, step-by-step process to manage your portfolio:
Analyzes all 38 assets for their TPI signals. 🔍
Keeps only assets with alpha ≥ 0.3% (configurable). ✅
Confirms a trending regime via statistical tests. 📈
Verifies a bullish BB% filter (if enabled). 🟢
Ranks eligible assets by alpha and selects the top 3 . 🏆
Allocates equal weight to the top 3 assets if conditions are met. ⚖️
Switches to cash if the market turns unfavorable. 💰
Applies a swap fee (default: 0.1%) on rotations for realistic performance tracking. 💸
Recalculates equity and metrics like Sharpe and Sortino ratios in real time. 📊
This ensures your portfolio stays aligned with the strongest assets in optimal market conditions. 🎯
📱 Visual Interface Breakdown
FactorFusion 's outputs are displayed in three intuitive tables and plots:
📋 Main Asset Table
Columns :
Asset : Lists all 38 assets (e.g., BONKUSD). 💎
TPI : "Positive" (🟢) or "Negative" (🔴).
Rank : "1", "2", "3" for selected assets; "N/A" otherwise. 🏆
Alpha : Excess return % (green if ≥ 0.3%). 📈
Regime : "Trending" or "Mean Reverting" per asset. 🌊
Highlights : Top 3 assets are highlighted in green when active. ✨
💼 Current Positions Table
Shows the 3 active assets (e.g., WIFUSD, PEPEUSD, DOGEUSD) or "Cash" if no positions are held. 💰
Centered for quick reference. 🎯
📊 Performance Metrics Table
Rotations : Total position changes (e.g., 150). 🔄
Sharpe : Risk-adjusted return (e.g., 2.5). 📈
Sortino : Downside risk-adjusted return (e.g., 2.1). 🛡️
Omega : Advanced performance ratio (e.g., 2). ⚡
Total : Return multiplier (e.g., 120.7x). 💰
Max DD : Maximum drawdown (e.g., -28.3%). 📉
Prev Day % : Yesterday's gain/loss (e.g., +15.5%). 📅
🎨 Visual Features
Equity Curve : Plots portfolio value (blue when in positions, white when in cash). 📈
Market Filter Plot : Tracks the BB% filter (green = bullish, red = bearish). 🚦
Background Colors : Green during trending markets, red during mean-reverting phases. 🌈
Color Schemes : Choose from Default, Sky Blue, Universo, Dark, or Midnight Blue (default: Dark). 🎨
⏰ Timeframe Recommendations
8H : Best for swing trading. 📈
1D : Suited for longer-term positions. 📅
12H : Balanced option for active management. ⚡
🔧 Key Settings You Can Customize
Alpha Threshold : Minimum outperformance (default: 0.3%). 🎯
Assets List : Edit the 38 assets (e.g., add XMRUSD, remove FARTCOINUSD). 📝
BB% Filter : Enable/disable or adjust thresholds (83% long, 44% short). 🛡️
Regime Tests : Toggle KPSS , Choppiness , etc., and set confidence levels. ⚙️
Swap Fees : Adjust transaction costs (default: 0.1%). 💸
Backtest Period : Set start date (default: January 2024). 📅
🎯 Perfect For
Eliminating emotional trading with a systematic approach. 🧠
Managing a crypto portfolio with data-driven precision. 📊
Backtesting and optimizing quantitative strategies. 🔬
Balancing risk and reward in volatile markets. ⚖️
⚠️ Important Notes
This is a portfolio rotation system , not a simple signal indicator. 🔄
Requires basic knowledge of portfolio concepts like alpha and drawdown. 📚
Optimized for higher timeframes (4H+). ⏰
Includes realistic swap fees and market filters for practical use. 💼
Protects capital by exiting to cash during poor conditions. 🛡️
🌟 Why FactorFusion Stands Out
FactorFusion blends academic financial metrics ( alpha , beta ) with crypto-specific tools ( TPI , regime detection ) to create a unique, professional-grade system. It's like having a quant analyst team at your fingertips 👥, constantly scanning the market, ranking assets, and adjusting your portfolio based on statistical edges—all in real time. ⚡
Disclaimer: Past performance is not indicative of future results. No trading strategy can guarantee success in financial markets.
Strategic Advice: Always backtest, optimize, and align parameters with your trading objectives and risk tolerance before live trading.
Works on previous bar's close data to not cause repainting issues
Ready to elevate your crypto trading? 🚀
Any Questions - DM
RSI Multi-TF TabRSI Multi-Timeframe Table 📊
A tool for multi-timeframe RSI analysis with visual overbought/oversold level highlighting.
Description
This indicator calculates the Relative Strength Index (RSI) for the current chart and displays RSI values across five additional timeframes (15m, 1h, 4h, 1d, 1w) in a dynamic table. The color-coded system simplifies identifying overbought (>70), oversold (<30), and neutral zones. Visual signals on the chart enhance analysis for the current timeframe.
Key Features
✅ Multi-Timeframe Analysis :
Track RSI across 15m, 1h, 4h, 1d, and 1w in a compact table.
Color-coded alerts:
🔴 Red — Overbought (potential pullback),
🔵 Blue — Oversold (potential rebound),
🟡 Yellow — Neutral zone.
✅ Visual Signals :
Background shading for oversold/overbought zones on the main chart.
Horizontal lines at 30 and 70 levels for reference.
✅ Customizable Settings :
Adjust RSI length (default: 14), source (close, open, high, etc.), and threshold levels.
How to Use
Table Analysis :
Compare RSI values across timeframes to spot divergences (e.g., overbought on 15m vs. oversold on D).
Use colors for quick decisions.
Chart Signals :
Blue background suggests bullish potential (oversold), red hints at bearish pressure (overbought).
Always confirm with other tools (volume, trends, or candlestick patterns).
Examples :
RSI(1h) > 70 while RSI(4h) < 30 → Possible reversal upward.
Sustained RSI(1d) above 50 may indicate a bullish trend.
Settings
RSI Length : Period for RSI calculation (default: 14).
RSI Source : Data source (close, open, high, low, hl2, hlc3, ohlc4).
Overbought/Oversold Levels : Thresholds for alerts (default: 70/30).
Important Notes
No direct trading signals : Use this as an analytical tool, not a standalone strategy.
Test strategies historically and consider market context before trading.
ALMA Shifting Band Oscillator | QuantMACALMA Shifting Band Oscillator | QuantMAC
🎯 Advanced Technical Analysis Tool Combining ALMA with Dynamic Oscillator Technology
The ALMA Shifting Band Oscillator represents a sophisticated fusion of the Arnaud Legoux Moving Average (ALMA) with an innovative oscillator-based signaling system. This indicator transforms traditional moving average analysis into a comprehensive trading solution with dynamic band visualization and precise entry/exit signals.
Core Technology 🔧
Arnaud Legoux Moving Average Foundation
Built upon the mathematically superior ALMA calculation, this indicator leverages the unique properties of ALMA's phase shift and noise reduction capabilities. The ALMA component provides a responsive yet smooth baseline that adapts to market conditions with minimal lag.
Dynamic Band System
The indicator generates adaptive upper and lower bands around the ALMA centerline using statistical deviation analysis. These bands automatically adjust to market volatility, creating a dynamic envelope that captures price extremes and potential reversal zones.
Normalized Oscillator Engine
The heart of the system transforms price action relative to the dynamic bands into a normalized oscillator that oscillates around a zero line. This oscillator provides clear visual representation of momentum and position within the established bands.
Visual Features 🎨
Multi-Pane Display Architecture
Primary oscillator plotted in separate pane for clarity
Dynamic band overlay on price chart with elegant fill visualization
ALMA centerline marked with distinctive styling
Customizable threshold lines for signal identification
Advanced Color Schemes
Choose from 9 professionally designed color palettes:
Classic series offering various aesthetic preferences
High contrast options for different chart backgrounds
State-based coloring that changes with market conditions
Candle coloring that reflects current oscillator state
Enhanced Visual Elements
Smooth gradient band fills for easy trend identification
Dynamic line thickness and styling options
Professional transparency settings for overlay clarity
Customizable threshold visualization
Signal Generation System 📊
Dual Threshold Architecture
The indicator employs two distinct threshold levels that create a sophisticated signal framework:
Long Threshold : Triggers bullish signal generation
Short Threshold : Activates bearish signal conditions
Intelligent State Management
Advanced state tracking ensures clean signal generation without false triggers:
Prevents redundant signals in same direction
Maintains position awareness for proper entries/exits
Implements crossover logic for precise timing
Flexible Trading Modes
Long/Short Mode : Full bidirectional trading capabilities
Long/Cash Mode : Conservative approach with cash positions during bearish conditions
Professional Analytics Suite 📈
Comprehensive Performance Metrics
Integrated real-time performance analysis including:
Maximum Drawdown percentage tracking
Sortino Ratio for downside risk assessment
Sharpe Ratio for risk-adjusted returns
Omega Ratio for comprehensive performance evaluation
Profit Factor calculation
Win rate percentage analysis
Half Kelly percentage for position sizing guidance
Total trade count and net profit tracking
Advanced Risk Management
Real-time equity curve tracking
Peak-to-trough drawdown monitoring
Downside deviation calculations
Risk-adjusted return measurements
Customization Options ⚙️
ALMA Parameter Control
ALMA Length (Default: 42) - Controls the lookback period for the moving average calculation. Lower values (20-30) create faster, more responsive signals but increase noise. Higher values (50-100) produce smoother signals with less false alerts but slower reaction to price changes.
ALMA Offset (Default: 0.68) - Determines the phase shift of the moving average. Values closer to 0 behave like a simple moving average. Values closer to 1 act more like an exponential moving average. 0.68 provides optimal balance between responsiveness and smoothness.
ALMA Sigma (Default: 1.8) - Controls the smoothness factor of the ALMA calculation. Lower values (1.0-2.0) create sharper, more reactive averages. Higher values (4.0-8.0) produce extremely smooth but slower-responding averages. Affects how quickly the ALMA adapts to price changes.
Source Selection - Choose between Close, Open, High, Low, or custom price combinations. Close price is standard for most analysis. HL2 or HLC3 can provide different market perspectives and reduce single-price volatility.
Oscillator Fine-tuning
Standard Deviation Length (Default: 27) - Determines the lookback period for volatility calculation. Shorter periods (10-20) make bands more reactive to recent volatility changes. Longer periods (40-60) create more stable bands that filter out short-term volatility spikes.
SD Multiplier (Default: 2.8) - Controls the width of the dynamic bands. Lower values (1.5-2.0) create tighter bands with more frequent signals but higher false signal rate. Higher values (3.0-4.0) produce wider bands with fewer but potentially more reliable signals.
Oscillator Multiplier (Default: 100) - Scales the oscillator for visual clarity. This is purely cosmetic and doesn't affect signal generation. Adjust based on your preferred oscillator range visualization.
Long Threshold (Default: 82) - Sets the level where bullish signals trigger. Lower values (70-80) generate more frequent long signals but may include weaker setups. Higher values (85-95) create fewer but potentially stronger bullish signals.
Short Threshold (Default: 50) - Determines where bearish signals activate. Higher values (55-65) produce more short signals. Lower values (35-45) wait for stronger bearish conditions before signaling.
Trading Mode Configuration
Long/Short Mode - Full bidirectional trading that takes both long and short positions. Suitable for trending markets and experienced traders comfortable with short selling.
Long/Cash Mode - Conservative approach that only takes long positions or moves to cash during bearish signals. Ideal for bull market conditions or traders who prefer not to short.
Display Customization
Color Schemes (9 Options) - Choose from Classic to Classic9 palettes. Each offers different visual contrast for various chart backgrounds and personal preferences.
Metrics Table Position - Place performance metrics in any of 6 chart locations: Top Left/Right, Middle Left/Right, Bottom Left/Right.
Show/Hide Metrics Table - Toggle the comprehensive performance analytics display on or off based on your analysis needs.
Date Range Limiter - Set specific start dates for backtesting and signal generation. Useful for testing strategies on specific market periods or excluding unusual market events.
Parameter Optimization Tips
Volatile Markets - Use shorter ALMA Length (25-35), lower SD Multiplier (2.0-2.5), and moderate thresholds
Trending Markets - Employ longer ALMA Length (45-60), higher SD Multiplier (3.0-4.0), and extreme thresholds
Sideways Markets - Try medium ALMA Length (35-45), standard SD Multiplier (2.5-3.0), and closer thresholds (75/55)
Higher Timeframes - Generally use longer periods and higher multipliers for smoother signals
Lower Timeframes - Opt for shorter periods and lower multipliers for more responsive signals
Practical Applications 💡
Trend Following
Identify and follow established trends using the dynamic band system and oscillator position relative to thresholds.
Momentum Analysis
Gauge market momentum through oscillator readings and their relationship to historical levels.
Reversal Detection
Spot potential reversal points when price reaches extreme oscillator levels combined with band interactions.
Risk Management
Utilize integrated metrics for position sizing and risk assessment decisions.
Technical Specifications 🔍
Calculation Methodology
The indicator employs sophisticated mathematical formulations for ALMA calculation combined with statistical analysis for band generation. The oscillator normalization process ensures consistent readings across different market conditions and timeframes.
Performance Optimization
Designed for efficient processing with minimal computational overhead while maintaining calculation accuracy across all timeframes.
Multi-Timeframe Compatibility
Functions effectively across all trading timeframes from intraday scalping to long-term position trading.
Installation and Usage 📋
Simple Setup Process
Add indicator to chart
Configure ALMA parameters for your preferred responsiveness
Adjust threshold levels based on market volatility
Select desired color scheme and display options
Enable metrics table for performance tracking
Best Practices
Use multiple timeframe analysis for context
Monitor metrics table for strategy performance
Adjust parameters based on market conditions
This indicator represents a professional-grade tool designed for serious traders seeking advanced technical analysis capabilities with comprehensive performance tracking. The combination of ALMA's mathematical precision with dynamic oscillator technology creates a unique analytical framework suitable for various trading styles and market conditions.
🚀 Transform your technical analysis with this advanced ALMA-based oscillator system!
⚠️ IMPORTANT DISCLAIMER
Past Performance Warning: 📉⚠️
PAST PERFORMANCE IS NOT INDICATIVE OF FUTURE RESULTS. Historical backtesting results, while useful for strategy development and parameter optimization, do not guarantee similar performance in live trading conditions. Market conditions change continuously, and what worked in the past may not work in the future.
Remember: Successful trading requires discipline, continuous learning, and adaptation to changing market conditions. No indicator or strategy guarantees profits, and all trading involves substantial risk of loss.
Swing High Low Detector by RV5📄 Description
The Swing High Low Detector is a visual indicator that automatically detects and displays swing highs and swing lows on the chart. Swings are determined based on configurable strength parameters (number of bars before and after a high/low), allowing users to fine-tune the sensitivity of the swing points.
🔹 Current swing levels are shown as solid (or user-defined) lines that dynamically extend until broken.
🔹 Past swing levels are preserved as dashed/dotted lines once broken, allowing traders to see previous support/resistance zones.
🔹 Customizable line colors, styles, and thickness for both current and past levels.
This indicator is useful for:
Identifying key market structure turning points
Building breakout strategies
Spotting trend reversals and swing zones
⚙️ How to Use
1. Add the indicator to any chart on any timeframe.
2. Adjust the Swing Strength inputs to change how sensitive the detector is:
A higher value will filter out smaller moves.
A lower value will capture more frequent swing points.
3. Customize the line styles for visual preference.
Choose different colors, line styles (solid/dashed/dotted), and thickness for:
Current Swing Highs (SH)
Past Swing Highs
Current Swing Lows (SL)
Past Swing Lows
4. Observe:
As new swing highs/lows are detected, the indicator draws a new current level.
Once price breaks that level, the line is archived as a past level and a new current swing is drawn.
✅ Features
Fully customizable styling for all lines
Real-time updates and automatic level tracking
Supports all chart types and instruments
👨💻 Credits
Script logic and implementation by RV5. This script was developed as a tool to improve price action visualization and trading structure clarity. Not affiliated with any financial institution. Use responsibly.
[Top] Simple Position + SL CalculatorThis indicator is a user-friendly tool designed to help traders easily calculate optimal position sizing, determine suitable stop-loss levels, and quantify maximum potential losses in dollar terms based on their personalized trading parameters.
Key Features:
Position Size Calculation: Automatically computes the number of shares to purchase based on the trader’s total account size and specified percentage of the account allocated per trade.
Stop-Loss Level: Suggests an appropriate stop-loss price point calculated based on the trader’s defined risk percentage per trade.
Max Loss Visualization: Clearly displays the maximum potential loss (in dollars) should the stop-loss be triggered.
Customizable Interface: Provides the flexibility to place the calculation table in different chart positions (Top Left, Top Right, Bottom Left, Bottom Right) according to user preference.
How to Use:
Enter your total Account Size.
Set the desired Position Size as a percentage of your account. (Typically, 1%–5% per trade is recommended for cash accounts.)
Define the Risk per Trade percentage (commonly between 0.05%–0.5%).
Choose your preferred Table Position to comfortably integrate with your trading chart.
Note:
If you identify a technical support level below the suggested stop-loss point, consider reducing your position size to manage the increased risk effectively.
Keep in mind that the calculations provided by this indicator are based solely on standard industry best practices and the specific inputs entered by you. They do not account for market volatility, news events, or any other factors outside the provided parameters. Always complement this indicator with sound technical and fundamental analysis.
Kijun Shifting Band Oscillator | QuantMAC🎯 Kijun Shifting Band Oscillator | QuantMAC
📊 **Revolutionary Technical Analysis Tool Combining Ancient Ichimoku Wisdom with Cutting-Edge Statistical Methods**
🌟 Overview
The Kijun Shifting Band Oscillator represents a sophisticated fusion of traditional Japanese technical analysis and modern statistical theory. Built upon the foundational concepts of the Ichimoku Kinko Hyo system, this indicator transforms the classic Kijun-sen (base line) into a dynamic, multi-dimensional analysis tool that provides traders with unprecedented market insights.
This advanced oscillator doesn't just show you where price has been – it reveals the underlying momentum dynamics and volatility patterns that drive market movements, giving you a statistical edge in your trading decisions.
🔥 Key Features & Innovations
Dual Trading Modes for Maximum Flexibility: 🚀
Long/Short Mode: Full bidirectional trading capability for aggressive traders seeking to capitalize on both bullish and bearish market conditions
Long/Cash Mode: Conservative approach perfect for risk-averse traders, taking long positions during uptrends and moving to cash during downtrends (avoiding short exposure)
Advanced Visual Intelligence: 🎨
9 Professional Color Schemes: From classic blue/navy to vibrant orange/purple combinations, each optimized for different chart backgrounds and personal preferences
Dynamic Gradient Histogram: Color intensity reflects oscillator strength, providing instant visual feedback on momentum magnitude
Intelligent Overlay Bands: Semi-transparent fills create clear visual boundaries without cluttering your chart
Smart Candle Coloring: Real-time color changes reflect current market state and trend direction
Customizable Threshold Lines: Clearly marked entry and exit levels with contrasting colors
Professional-Grade Analytics: 📊
Real-Time Performance Metrics: Live calculation of 9 key performance indicators
Risk-Adjusted Returns: Sharpe, Sortino, and Omega ratios for comprehensive performance evaluation
Position Sizing Guidance: Half-Kelly percentage for optimal risk management
Drawdown Analysis: Maximum drawdown tracking for risk assessment
📈 Deep Technical Foundation
Kijun-Based Mathematical Framework: 🧮
The indicator begins with the traditional Kijun-sen calculation but extends it significantly:
Statistical Enhancements: 📉
Adaptive Volatility: Bands expand and contract based on market volatility
Momentum Filtering: EMA smoothing of oscillator for trend confirmation
State Management: Intelligent signal filtering prevents whipsaws and false signals
Multi-Timeframe Compatibility: Optimized algorithms work across all timeframes
⚙️ Comprehensive Parameter Control
Kijun Core Settings: 🎛️
Kijun Length (Default: 30): Controls the lookback period for the base calculation. Shorter periods = more responsive, longer periods = smoother signals
Source Selection: Choose from Close, Open, High, Low, or HL2. Close price recommended for most applications
Calculation Method: Uses traditional Ichimoku methodology ensuring compatibility with classic analysis
Advanced Oscillator Configuration: 📊
Standard Deviation Length (Default: 36): Determines volatility measurement period. Affects band width and sensitivity
SD Multiplier (Default: 2.1): Fine-tune band distance from basis line. Higher values = wider bands, lower values = tighter bands
Oscillator Multiplier (Default: 100): Scales the final oscillator output. Useful for matching other indicators or personal preference
Smoothing Algorithm: Built-in EMA smoothing prevents noise while maintaining responsiveness
Signal Threshold Optimization: 🎯
Long Threshold (Default: 83): Oscillator level that triggers long entries. Higher values = fewer but stronger signals
Short Threshold (Default: 42): Oscillator level that triggers short entries. Lower values = fewer but stronger signals
Threshold Logic: Crossover-based system with state management prevents signal overlap
Customization Range: Fully adjustable to match your trading style and risk tolerance
Precision Date Control: 📅
Start Date/Month/Year: Precise backtesting control down to the day
Historical Analysis: Test strategies on specific market periods or events
Strategy Validation: Isolate performance during different market conditions
📊 Professional Metrics Dashboard
Risk Assessment Metrics: 💼
Maximum Drawdown %: Largest peak-to-trough decline in portfolio value. Critical for understanding worst-case scenarios and position sizing
Sortino Ratio: Risk-adjusted return measure focusing only on downside volatility. Superior to Sharpe ratio for asymmetric return distributions
Sharpe Ratio: Classic risk-adjusted performance metric. Values above 1.0 considered good, above 2.0 excellent
Omega Ratio: Probability-weighted ratio capturing all moments of return distribution. More comprehensive than Sharpe or Sortino
Performance Analytics: 📈
Profit Factor: Gross Profit ÷ Gross Loss. Values above 1.0 indicate profitability, above 2.0 considered excellent
Win Rate %: Percentage of profitable trades. Consider alongside average win/loss size for complete picture
Net Profit %: Total return on initial capital. Accounts for compounding effects
Total Trades: Sample size for statistical significance assessment
Advanced Position Sizing: 🎯
Half Kelly %: Optimal position size based on Kelly Criterion, reduced by 50% for safety margin
Risk Management: Helps determine appropriate position size relative to account equity
Mathematical Foundation: Based on win probability and profit factor calculations
Practical Application: Directly usable percentage for position sizing decisions
🎨 Advanced Display Options
Flexible Interface Design: 🖥️
6 Positioning Options: Top/Bottom/Middle × Left/Right combinations for optimal chart organization
Toggle Functionality: Show/hide metrics table for clean chart presentation during analysis
Color Coordination: Metrics table colors match selected oscillator color scheme
Professional Styling: Clean, readable format with proper spacing and alignment
Visual Hierarchy: 🎭
Oscillator Histogram: Primary focus with gradient intensity showing momentum strength
Threshold Lines: Clear horizontal references for entry/exit levels
Zero Line: Neutral reference point for trend bias determination
Background Bands: Subtle overlay context without chart clutter
🚀 Advanced Signal Generation System
Multi-Layer Signal Logic: ⚡
Primary Signal Generation: Oscillator crossover above Long Threshold (default 83) triggers long entries
Exit Signal Processing: Oscillator crossunder below Short Threshold (default 42) triggers position exits
State Management System: Prevents duplicate signals and ensures clean position transitions
Mode-Specific Logic: Different behavior for Long/Short vs Long/Cash modes
Date Range Filtering: Signals only generated within specified backtesting period
Confirmation Requirements: Bar confirmation prevents false signals from intrabar price spikes
Intelligent Position Management: 🧠
Entry Tracking: Precise entry price recording for accurate P&L calculations
Position State Monitoring: Continuous tracking of long/short/cash positions
Automatic Exit Logic: Seamless position closure and new position initiation
Performance Calculation: Real-time P&L tracking with compounding effects
📉📈 Comprehensive Band Interpretation Guide
Dynamic Band Analysis: 🔍
Upper Band Function: Represents dynamic resistance based on recent volatility. Price approaching upper band suggests potential reversal or breakout
Lower Band Function: Represents dynamic support with volatility adjustment. Price near lower band indicates oversold conditions or support testing
Middle Line (Basis): Trend direction indicator. Price above = bullish bias, price below = bearish bias
Band Width Interpretation: Wide bands = high volatility, narrow bands = low volatility/potential breakout setup
Band Slope Analysis: Rising bands = strengthening trend, falling bands = weakening trend
Oscillator Interpretation: 📊
Values Above 50: Price in upper half of recent range, bullish momentum
Values Below 50: Price in lower half of recent range, bearish momentum
Extreme Values (>80 or <20): Overbought/oversold conditions, potential reversal zones
Momentum Divergence: Oscillator direction vs price direction for early reversal signals
Trend Confirmation: Oscillator direction confirming or contradicting price trends
💡 Strategic Trading Applications
Primary Trading Strategies: 🎯
Trend Following: Use threshold crossovers to capture major directional moves. Best in trending markets with clear directional bias
Mean Reversion: Identify extreme oscillator readings for counter-trend opportunities. Effective in range-bound markets
Breakout Trading: Monitor band compressions followed by expansions for breakout signals
Swing Trading: Combine oscillator signals with band interactions for swing position entries/exits
Risk Management: Use metrics dashboard for position sizing and risk assessment
Market Condition Optimization: 🌊
Trending Markets: Increase threshold separation for fewer, stronger signals
Choppy Markets: Decrease threshold separation for more responsive signals
High Volatility: Increase SD multiplier for wider bands
Low Volatility: Decrease SD multiplier for tighter bands and earlier signals
⚙️ Advanced Configuration Tips
Parameter Optimization Guidelines: 🔧
Kijun Length Adjustment: Shorter periods (10-20) for faster signals, longer periods (50-100) for smoother trends
SD Length Tuning: Match to your trading timeframe - shorter for responsive, longer for stability
Threshold Calibration: Backtest different levels to find optimal entry/exit points for your market
Color Scheme Selection: Choose schemes that provide best contrast with your chart background and other indicators
Integration with Other Indicators: 🔗
Volume Indicators: Confirm oscillator signals with volume spikes
Support/Resistance: Use key levels to filter oscillator signals
Momentum Indicators: RSI, MACD confirmation for signal strength
Trend Indicators: Moving averages for overall trend bias confirmation
⚠️ Important Usage Notes & Limitations
Indicator Characteristics: ⚡
Lagging Nature: Based on historical price data - signals occur after moves have begun
Best Practice: Combine with leading indicators and price action analysis
Market Dependency: Performance varies across different market conditions and instruments
Backtesting Essential: Always validate parameters on historical data before live implementation
Optimization Recommendations: 🎯
Parameter Testing: Systematically test different combinations on your preferred instruments
Walk-Forward Analysis: Regularly re-optimize parameters to maintain effectiveness
Market Regime Awareness: Adjust parameters for different market conditions (trending vs ranging)
Risk Controls: Implement maximum drawdown limits and position size controls
🔧 Technical Specifications
Performance Optimization: ⚡
Efficient Algorithms: Optimized calculations for smooth real-time operation
Memory Management: Smart array handling for metrics calculations
Visual Optimization: Balanced detail vs performance for responsive charts
Multi-Symbol Ready: Consistent performance across different assets
---
The Kijun Shifting Band Oscillator represents the evolution of technical analysis, bridging the gap between traditional methods and modern quantitative approaches. This indicator provides traders with a comprehensive toolkit for market analysis, combining the intuitive wisdom of Japanese candlestick analysis with the precision of statistical mathematics.
🎯 Designed for serious traders who demand professional-grade analysis tools with institutional-quality metrics and risk management capabilities. Whether you're a discretionary trader seeking visual confirmation or a systematic trader building quantitative strategies, this indicator provides the foundation for informed trading decisions.
⚠️ IMPORTANT DISCLAIMER
Past Performance Warning: 📉⚠️
PAST PERFORMANCE IS NOT INDICATIVE OF FUTURE RESULTS. Historical backtesting results, while useful for strategy development and parameter optimization, do not guarantee similar performance in live trading conditions. Market conditions change continuously, and what worked in the past may not work in the future.
Remember: Successful trading requires discipline, continuous learning, and adaptation to changing market conditions. No indicator or strategy guarantees profits, and all trading involves substantial risk of loss.