@MO_XBT - EMA/MA ToolkitClean set of EMAs & MAs I use for trend tracking, momentum shifts, and cross signals
If you found this useful, follow me on X: @mo_xbt
Trend
Exponential Moving Average + ATR MTF [YSFX]Description:
This indicator is a reupload of a previously published EMA + ATR tool, updated and enhanced after a house rule violation to provide additional features and a cleaner, more versatile experience for traders.
It combines trend analysis and volatility measurement into one intuitive tool, allowing traders to visualize market direction, dynamic support and resistance, and adaptive risk levels—all in a clean, minimal interface.
The indicator calculates a customizable moving average (MA) type—EMA, SMA, WMA, HMA, RMA, DEMA, TEMA, VWMA, LSMA, or KAMA—and surrounds it with ATR-based bands that expand and contract with market volatility. This creates a dynamic envelope around price, helping traders identify potential breakouts, pullbacks, or high-probability entry/exit zones.
Advanced Features:
Multiple MA types: Supports all major moving averages, including advanced options like KAMA, DEMA, and TEMA.
KAMA customization: Adjustable fast and slow lengths for precise tuning.
Dual timeframe support: Optionally use separate timeframes for the MA and ATR, or a global timeframe for both.
Dynamic ATR bands: Automatically adjust to market volatility, useful for setting adaptive stop-loss levels.
Optional fill: Shade the area between upper and lower ATR bands for a clear visual representation of volatility.
Flexible for all markets: Works across any timeframe or asset class.
Who It’s For:
This indicator is ideal for trend-following traders, swing traders, and volatility-focused analysts who want to:
Confirm trend direction while accounting for volatility
Identify high-probability trade entries and exits
Implement dynamic, ATR-based stop-loss strategies
Keep charts clean and uncluttered while still capturing key market information
This reuploaded version ensures compliance with platform rules while offering enhanced flexibility and clarity for modern trading workflows.
Tactical Holding [SwissAlgo]Tactical Holding
A visual framework for managing long-term positions across market cycles
--------------------------------------------------------------
Purpose
Instead of holding a fixed position through all market conditions , you can use this framework to adjust your exposure tactically . By reducing positions during distribution phases and accumulating during favorable accumulation zones, you may end up holding more units of the asset over complete market cycles - even if you temporarily exit or reduce exposure during unfavorable periods. This approach aims to help you compound your holdings by taking advantage of market volatility rather than simply enduring it.
--------------------------------------------------------------
Recommended Settings
Timeframe : Weekly (1W) chart
Chart Type : Standard candlesticks (select 'Bar' type Candles)
This indicator is designed for higher timeframe analysis. While it can be applied to other timeframes, the logic and signal generation are optimized for weekly charts to filter out short-term noise and focus on major market cycles.
--------------------------------------------------------------
Key Features
♦ Market State Classification
The indicator aims to categorize potential market conditions into five color-coded states based on technical confluences:
* Bull (bright green): Multiple bullish indicators align
* Bull Retrace (teal): Bullish structure with temporary weakness
* Bull ⇆ Bear Reversal (yellow): Transitional phase between trends
* Bear (bright red): Multiple bearish indicators align
* Bear Retrace (Pale Red/Maroon): Bearish structure with temporary strength
♦ Visual Elements
* Candles change color based on the current market state
* A 50-period EMA tracks with the same color coding, providing visual trend context
* Small arrow markers appear when specific pattern conditions are met (zones for potential distribution or accumulation)
* A legend table (toggle on/off) explains the color system
* A label shows the current state name on the chart
♦ Pattern Recognition
The system monitors for two types of potential entry/exit zones:
1. State transition patterns after periods of market regime consistency
2. RSI divergence patterns (when price and momentum move in opposite directions)
♦ Customization
* Toggle the legend table visibility through settings
* All calculations are transparent and use standard technical analysis methods
--------------------------------------------------------------
How It Works
Think of this indicator as a traffic light system for your portfolio:
♦ Green zones suggest the asset might be in an environment where long-term holders historically have remained invested
Bright green (Bull) : Multiple technical indicators align in a potentially strong bullish phase
Pale green (Bull Retrace) : Bullish structure remains intact, but momentum shows temporary weakness - often a pullback within an uptrend
♦ Red zones suggest conditions where long-term holders might consider reducing exposure or waiting for better entry points
Dark red (Bear) : Multiple technical indicators align in a potentially strong bearish phase
Pale red (Bear Retrace) : Bearish structure remains intact but shows temporary strength - often a bounce within a downtrend
♦ Yellow zones indicate the market is in transition between bull and bear regimes - a time for increased attention as the trend direction becomes uncertain
The system doesn't predict future prices. Instead, it helps you understand the current technical environment by doing the heavy lifting of analyzing multiple indicators at once and presenting them in a simple visual format.
Example: During the 2022 crypto bear market, the indicator would have displayed extended red periods, signaling defensive conditions for holders. When accumulation arrows appeared in late 2022-early 2023, it highlighted potential re-entry zones as the technical regime transitioned back toward green, before the 2024 recovery.
--------------------------------------------------------------
Who This Is For
♦ Long-term investors who want to hold assets through cycles but prefer a systematic approach to position sizing and timing rather than buying and never selling .
♦ Portfolio managers looking for a visual tool to help determine when to increase or decrease exposure to specific assets based on technical regime changes.
♦ Swing traders on higher timeframes who want to align their positions with the broader market structure rather than fighting the trend.
This is not designed for:
* Day traders or scalpers
* Those seeking exact entry/exit prices
* Automated trading systems (this is a visual decision-support tool)
--------------------------------------------------------------
Understanding the Visuals
When you apply Tactical Holding to a chart, you'll see:
1. Colored candles - Instantly see what market regime the asset is in
2. Colored EMA line (thick line) - Provides a dynamic support/resistance reference that changes color with market conditions
3. Small arrows (↑ ↓) - Mark bars where specific technical patterns complete
4. State label - Shows current market classification
5. Legend table (top right) - Quick reference guide for the color system
6. Warning banner (top center) - Reminds you to use weekly charts
The visual design prioritizes clarity over complexity. You should be able to glance at a chart and immediately understand the current technical environment.
--------------------------------------------------------------
Important Limitations
This indicator cannot:
* Predict future price movements
* Guarantee profitable trades
* Work equally well on all assets or timeframes
* Replace your own research and risk management
Technical considerations:
* Divergence detection has a 3-bar confirmation lag (by design, to avoid false signals)
* State transitions require multiple technical confirmations, which may cause delayed reactions to rapid market changes
* The system is reactive, not predictive - it responds to price action after it occurs
* Performance varies significantly between trending assets (like Solana) and stable assets (like Apple)
--------------------------------------------------------------
Practical Application
Consider using this indicator as one component of a broader investment framework:
♦ Understanding Position Context:
The color-coded states can help frame your thinking about current holdings:
Bull: Technical conditions that have historically been associated with sustained uptrends
Bull Retrace: Pullbacks within an overall bullish structure- these periods may offer opportunities to evaluate entry points or reassess existing positions
Reversal (Yellow): Transitional phases where the trend direction is unclear - periods that may warrant closer monitoring
Bear Retrace: Temporary strength within an overall bearish structure - rallies that historically have often faded
Bear: Technical conditions that have historically been associated with sustained downtrends
♦ Interpreting Signal Arrows:
Arrow markers indicate when specific technical pattern conditions have been met. These are observation points, not instructions:
A signal appearing doesn't mean immediate action is required
Treat arrows as prompts for further analysis rather than automatic triggers
Consider the broader context: fundamentals, your investment timeline, risk tolerance, and overall market conditions
Signals show when historical technical patterns have formed - not whether those patterns will lead to the same outcomes as in the past
The framework is designed to organize information visually, not to tell you what to do. Your investment decisions should incorporate this technical perspective alongside other factors relevant to your situation.
--------------------------------------------------------------
Technical Methodology
For transparency, the indicator uses:
* RSI (14) with a 14-period SMA to assess momentum direction
* MACD (12,26,9) to confirm trend strength and histogram momentum
* Stochastic RSI with K and D line crossovers for additional confirmation
* 50-period EMA as the primary trend filter
* Linear regression-based slope analysis to detect flat/transitional periods
* Pivot-based divergence detection following standard technical analysis principles
All calculations use publicly available technical analysis formulas. Nothing is hidden or proprietary beyond the specific combination and weighting of these standard tools.
--------------------------------------------------------------
Disclaimer
This indicator is an educational and analytical tool only. It is not financial advice.
* Trading and investing involve substantial risk of loss
* Past performance of any technical system does not indicate future results
* No indicator can predict market movements with certainty
* Always conduct your own research and consult with qualified financial professionals
* Never invest more than you can afford to lose
* The creators of this indicator are not responsible for any trading losses
* This tool is not affiliated with, endorsed by, or connected to TradingView, 3Commas, or any other trading platform
* Use of this indicator is at your own risk
Risk Management: Regardless of what any indicator shows, always use proper position sizing, stop losses, and risk management appropriate to your personal financial situation.
This indicator provides a framework for analysis. Your decisions, research, and risk management determine your results.
DeMARK 9-13For the first time ever, the power and precision of DeMARK is now available on TradingView. Combining core elements of the renowned Sequential® and Combo® studies, the DeMARK 9-13® indicator delivers the same unique insights in a streamlined interface.
The Sequential and Combo family of indicators have been trusted by the top financial firms, funds and figures for decades to enhance their trading and investment strategies. Known for their 9 Setup® and 13 Countdown® readings, these studies are designed to highlight potential market reversals as well as key areas of support, resistance and momentum. With DeMARK 9-13, users can access these groundbreaking techniques in one integrated offering.
While it's often said, "the trend is your friend," it's also crucial to recognize when it's about to end. Identifying potential market inflection points allows you to buy weakness and sell strength, improving your cost basis, reducing risk and allowing you to capitalize on a greater portion of the reversal.
At its core, 9s and 13s are constructed to measure market momentum and exhaustion. Both Sequential and Combo consist of two phases: Setup and Countdown. The Setup phase compares price activity across nine consecutive bars to define the market environment, while the Countdown phase performs a separate 13-bar comparison to indicate when a reversal may be imminent. A 9-13 reading reflects the fulfillment of both phases. When combined with TDST® lines and Risk Levels®, this approach provides a more comprehensive view of the market.
The DeMARK 9-13 indicator consists of:
Sequential
Combo
9 Setup
13 Countdown
TD Setup Trend (TDST)
Perfected® Setup
Risk Levels & Zones
Together, these elements provide an unparalleled view into the inner workings of the market, helping you anticipate shifts and act with greater precision.
🟡 DESCRIPTION
SETUP
The initial stage of the DeMARK 9-13 indicator is the Setup phase. This series is the same for both Sequential and Combo and compares the close of the current bar to the close four bars earlier. Buy Setup counts are displayed in blue below the data set and fulfilled when there are nine consecutive closes less than the close four bars earlier. Sell Setup counts are displayed in blue above the data set and fulfilled when there are nine consecutive closes greater than the close four bars earlier.
During the active Setup, all number counts remain visible to show the progress of the series. Upon completing the Setup, the 9 is recorded and the 1-8 counts are removed. This reduces visual distraction and allows for more result history (due to TradingView’s 500-label limit). Setups are always counting, with Price Flips® occurring as the series alternates between Buy and Sell Setups.
PERFECTED SETUPS
Setups can be classified as either “Perfected” or “Imperfected.” The Setup is Perfected when the 9 is completed and the 6 and 7 bars have been exceeded. In the case of a Buy Setup, the low of bars 8 or 9 must be less than the low of bars 6 and 7. Conversely, in the case of a Sell Setup, the high of bars 8 or 9 must be greater than the high of bars 6 and 7. The point at which the Setup is perfected is displayed with a solid blue dot, matching the color of the Setup series.
Generally speaking, the market will reverse or stabilize within one to four bars of a completed and Perfected Setup 9. The strength and duration of this response can be assessed with the implementation of other indicators, such as TDST® lines.
TD SETUP TREND (TDST)
The TDST indicator is derived from the Setup phase and is used to confirm market trends and identify likely trend failures. A TDST resistance line is drawn from the highest true high of the completed 9 Buy Setup series, while a TDST support line is drawn from the lowest true low of the completed 9 Sell Setup series. These TDST lines provide an indication of market support, resistance and momentum to help evaluate the integrity of the move.
TDST lines are displayed in a lighter blue than the Setup phase. When Breakout Qualifiers are enabled, TDST lines can be considered qualified or disqualified. Disqualified TDSTs appear as a dashed line, indicating potential support in the case of TDST support lines or resistance in the case of TDST resistance lines. Qualified TDSTs appear as a solid line and will stop drawing when a breakout or breakdown occurs, suggesting continued momentum.
COUNTDOWN
Once the Setup phase is completed, the second stage of the DeMARK 9-13 indicator can begin — the Countdown phase. Sequential and Combo share the same Setup series, but there are subtle differences in their respective Countdown phases, each constructed to identify areas of potential trend exhaustion in different market conditions.
Sequential is designed to respond in both trending and consolidating markets, while Combo is more responsive in trending environments and inactive during periods of market consolidation. For that reason, we often say that Combo identifies the highest or lowest points of a move, with Sequential identifying secondary tests. When aligned, these results are even more powerful.
SEQUENTIAL COUNTDOWN
A Sequential Buy Countdown is possible upon completion of a Buy Setup and looks for 13 closes less than or equal to the low two bars earlier. Sequential Buy Countdown counts are displayed as a dark green number below the data set and can begin as early as the 9 bar of a completed Buy Setup. A Sequential Sell Countdown is possible upon completion of a Sell Setup and looks for 13 closes greater than or equal to the high two bars earlier. Sequential Sell Countdown counts are displayed as a dark red number above the data set and can begin as early as the 9 bar of a Sell Setup. Because of this overlap, Sequential Countdown requires as few as 12 bars beyond the 9 Setup to complete the cycle.
Unlike the Setup phase, Countdown counts need not be consecutive. During the active Countdown, all number counts remain visible to display the progress of the series. Upon completing the Countdown, the 13 is confirmed and the 1-12 counts are removed. This reduces visual distraction and allows for more result history (due to TradingView’s 500-label limit).
A completed Sequential 13 Countdown marks the fulfillment of the 9-13 reading and identifies potential market exhaustion. Additional elements of Sequential Countdown like Intersection, Countdown Deferral, Risk Levels and the 12-bar rule can be used to provide further detail and are outlined below.
COMBO COUNTDOWN
A Combo Buy Countdown is possible upon completion of a Buy Setup and looks for 13 closes less than or equal to the low two bars earlier, with additional rules based on the Combo version selected. Combo Buy Countdown counts are displayed as a light green number below the data set and can begin as early as the 1 bar of a completed Buy Setup. A Combo Sell Countdown is possible upon completion of a Sell Setup and looks for 13 closes greater than or equal to the high two bars earlier, with additional rules based on the Combo version selected. Combo Sell Countdown counts are displayed as a magenta number above the data set and can begin as early as the 1 bar of a Sell Setup. Because of this overlap, Combo Countdown requires as few as four bars beyond the 9 Setup to complete the cycle.
Unlike the Setup phase, Countdown counts need not be consecutive. During the active Countdown, all number counts remain visible to display the progress of the series. Upon completing the Countdown, the 13 is confirmed and the 1-12 counts are removed. This reduces visual distraction and allows for more result history (due to TradingView’s 500-label limit).A completed Combo 13 Countdown marks the fulfillment of the 9-13 reading and identifies potential market exhaustion. Additional elements of Combo Countdown like Risk Levels and the 12-bar rule can be used to provide further detail and are outlined below.
RISK LEVELS
When a 9 Setup or 13 Countdown indication is recorded, a Risk Level is generated to identify the zone within which a reversal should occur. This level accounts for any residual trend momentum without invalidating the buy or sell indication. For a completed buy indication, the Risk Level marks the price above which the 9 or 13 remains active and serves as additional support. Conversely, for a completed sell indication, it marks the price below which the 9 or 13 remains active and serves as additional resistance. This level can be viewed as the maximum threshold the indication can withstand before the prevailing momentum overwhelms and negates it and is often used to establish stop-loss areas.
Risk Level line colors correspond to the completed Setup, Sequential Countdown or Combo Countdown that generated it. Shaded risk zones can also be displayed, further highlighting the indication window. When Breakout Qualifiers are enabled, the Risk Level can be considered qualified or disqualified. Disqualified Risk Levels appear as a dashed line, indicating likely support in the case of a buy indication and likely resistance in the case of a sell indication. Qualified Risk Levels appear as a solid line and will stop drawing when a breakout or breakdown occurs, suggesting continued momentum.
4-BAR & 12-BAR METRICS
Generally speaking, the market should see some sort of response within four bars of a completed 9 Setup indication and 12 bars of a completed 13 Countdown indication. If the chart has not responded in that time the existing trend is likely to continue.
INTERSECTION
Intersection is an elective setting unique to Sequential Countdown. When enabled, it postpones the start of the Countdown phase until the price range of the later Setup counts overlap with the price activity of any Setup count occurring three or more bars earlier. This is intended as a pressure release to avoid commencing the count during an extraordinary breakaway market event or aberration. The Intersection level’s color matches its corresponding Buy and Sell Countdown reading and is displayed as a horizontal line on the confirming bar.
COUNTDOWN DEFERRAL
The Sequential Countdown phase of the DeMARK 9-13 indicator includes two optional Countdown Deferral qualifiers — the 13 vs. 8 rule and the 8 vs. 5 rule.
The 13 vs. 8 Countdown Deferral rule is designed to ensure that the tail end of the Countdown is representative of the existing trend. To fulfill this restriction, the low of the 13 bar must be less than or equal to the close of the 8 bar in the case of a Sequential Buy Countdown, while the high of the 13 bar must be greater than or equal to the close of the 8 bar in the case of a Sequential Sell Countdown. Because Countdown counts can increment in a sideways market, this rule helps to confirm that a trend has remained intact and improves accuracy as the series reaches its completion.
When enabled, this Countdown Deferral condition substitutes a “+” for what would otherwise be a “13,” thereby postponing the count. A Sequential Buy Countdown deferral is displayed in dark green below the data set, while a Sequential Sell Countdown deferral is displayed in dark red above the data set. Note that this optional setting is enabled by default and labeled “Last vs. 8 Qualifier” in the DeMARK 9-13 indicator settings.
Whereas the 13 vs. 8 rule is designed to ensure that the tail end of the Sequential series is representative of the existing trend, the 8 vs. 5 Countdown Deferral rule is designed to ensure that the body of the Countdown phase is properly configured. As with the 13 vs. 8 rule, the 8 vs. 5 rule matches the color and placement of its corresponding Buy or Sell Countdown series and substitutes a “+” for what would otherwise be a “5”, thereby postponing the count. The 13 vs. 8 comparison is critical to the Countdown phase, while the 8 vs. 5 comparison is elective and provides additional confidence that the trend has remained intact.
COUNTDOWN RECYCLE®
Markets are constantly evolving to reflect new information. Just as fundamentals experience occasional adjustments impacting the expectations of the asset, so too do technical analysis and market timing. This is most often reflected in the Sequential and Combo Countdown phase by a process known as Recycling.
Recycling occurs when a Countdown 13 is interrupted by a subsequent overlapping “22” Setup count in the same direction. Recycling suggests that the new Setup is sufficiently strong to weaken the impact of a confirmed Countdown series and resets the process. A recycling indication is represented as an “R” where the Countdown 13 was previously displayed, matching the color and placement of that Buy or Sell Countdown series.
COUNTDOWN CANCELLATION
Once completed, a 9 Setup and 13 Countdown confirmation is permanent and never altered. However, it’s important to note that Countdowns can be cancelled during their construction phase. There are two scenarios where a Countdown series would be removed from the chart.
The first Countdown cancellation scenario occurs when a subsequent 9 Setup is confirmed in the opposite direction prior to the completion of the Countdown phase. The reasoning is that market conditions have changed from what they were when the initial Setup was fulfilled, making the newer Setup more relevant. Upon confirming an opposing 9 Setup, the incomplete Countdown phase is canceled and removed from the chart.
The second Countdown cancellation scenario takes place when the TDST in the opposite direction is violated, suggesting a conclusion to the previous trend and a confirmation of a new one. In these cases, a true low that occurs above the Buy Setup’s TDST resistance line, or a true high that occurs below the Sell Setup’s TDST support line, cancels the incomplete Countdown phase and removes the counts from the chart.
🟡 SETTINGS
DISPLAY
Setup : Displays the Setup phase of the Sequential and Combo indicators. The first swatch controls the color of the Buy Setup phase displayed below the data set. The second swatch controls the color of the Sell Setup phase displayed above the data set.
TDST : Displays the TDST lines for the Sequential and Combo indicators. The first swatch controls the color of the TDST resistance lines associated with the Buy Setup phase. The second swatch controls the color of the TDST support lines associated with the Sell Setup phase.
Sequential Countdown : Displays the Countdown phase of the Sequential indicator. The first swatch controls the color of the Buy Countdown phase displayed below the data set. The second swatch controls the color of the Sell Countdown phase displayed above the data set.
Combo Countdown : Displays the Countdown phase of the Combo indicator. The first swatch controls the color of the Buy Countdown phase displayed below the data set. The second swatch controls the color of the Sell Countdown phase displayed above the data set.
Indicator font size : Adjusts the size of the Sequential and Combo indicator counts displayed above and below the data set. ( Default: 18 )
Display full series count : Displays the full Sequential and Combo numerical series for the active 9 Setup and 13 Countdown phases only, or for all completed indications (within TradingView’s 500-label limit). ( Default: Active only )
SETUP
Bars to Setup : Number of consecutive bars needed to complete the Setup phase. ( Default: 9 )
Bars to look back : Defines the bar to which the current Setup count is compared. ( Default: 4 )
Setup compare : Determines whether equal prices should increment the Setup count. ( Default: Without equal )
Count completion weight : Adjusts the font weight of the Setup completion counts displayed above and below the data set. ( Default: Bold )
Setup Perfection : Identifies when Setup Perfection occurs, with the low of the final two Buy Setup counts less than the lows three or four bars prior to completion, and the high of the final two Sell Setup counts greater than the highs three or four bars prior to completion. With the default “Bars to Setup” setting of “9,” Perfection occurs when the low of Buy Setup bar 8 or 9 is less than the lows of bars 6 and 7, and the high of Sell Setup bar 8 or 9 is greater than the highs of bars 6 and 7. ( Default: Enabled )
Enable Setup Risk Level : Displays the Risk Level tied to the Setup. ( Default: On )
Enable Setup Risk Level Zone : Shades the area between the completed Setup and its Risk Level. ( Default: On )
TD SETUP TREND (TDST)
TDST line thickness : Adjusts the thickness of TDST support and resistance lines. ( Default: Standard )
COUNTDOWN (SHARED)
Bars to Countdown : Number of bars needed to complete the Countdown phase. ( Default: 13 )
Bars to look back : Defines the bar to which the current Countdown count is compared. ( Default: 2 )
Countdown comparison value : Output used in the Countdown look back comparison. For Aggressive settings, Low/High is required. ( Default: Close )
Termination Count price value : Allows the final count of the Countdown phase to use a different comparison value for more flexibility. ( Default: Open or Close )
Countdown compare : Determines whether equal prices should increment the Countdown count. ( Default: With equal )
Count completion weight : Adjusts the font weight of the Countdown completion counts displayed above and below the data set. ( Default: Bold )
SEQUENTIAL COUNTDOWN
Enable Intersection : Toggles the Sequential Intersection phase requirement. ( Default: Off )
8 vs. 5 Qualifier : Qualifier requiring the low of the 8 Buy Countdown to be less than the close of the 5 count, and the high of the 8 Sell Countdown to be greater than the close of the 5 count. ( Default: Off )
Last vs. 8 Qualifier : Qualifier requiring the low of the final Buy Countdown count to be less than the close of the 8 count, and the high of the final Sell Countdown to be greater than the close of the 8 count. With the default “Bars to Countdown” setting of “13,” the low of the 13 Buy Countdown would need to be less than the close of the 8 count, and the high of the 13 Sell Countdown would need to be greater than the close of the 8 count. ( Default: On )
Enable Risk Level : Displays the Risk Level tied to the Countdown. ( Default: On )
Enable Risk Level Zone : Shades the area between the completed Countdown and its Risk Level. ( Default: On )
COMBO COUNTDOWN
Combo version : Determines the version of Combo used for the Countdown phase, whether it’s Standard, Conservative or Aggressive. ( Default: Standard )
Enable Risk Level : Displays the Risk Level tied to the Countdown. ( Default: On )
Enable Risk Level Zone : Shades the area between the completed Countdown and its Risk Level. ( Default: On )
RECYCLE
Enable Recycle : Toggles Recycling, replacing the final Sequential and Combo Countdown count with an “R” when its rules are met. With the default “Bars to Countdown” setting of “13,” a recycled 13 count would be replaced with the ‘R’. ( Default: On )
Setup Count : Defines the number of consecutive Setup bars required to trigger a Recycle. ( Default: 22 )
CANCEL
Reverse Setup : Incomplete Countdowns are cancelled when a Setup in the opposite direction is confirmed. ( Default: On )
TDST Rule : Incomplete Buy Countdowns are cancelled when a true low exceeds the Buy Setup’s TDST resistance line, and incomplete Sell Countdowns are cancelled when a true high breaks the Sell Setup’s TDST support line. ( Default: On )
BREAKOUT QUALIFIERS
Enable Breakout Qualifiers : Breakout Qualifier rules will dictate whether TDST and Risk Level line breakouts can be considered qualified or disqualified. Qualified lines are solid and will stop drawing when a breakout or breakdown occurs, suggesting continued momentum. Disqualified lines are dashed, serving as resistance in the case of a false breakout and support in the case of a false breakdown. When Breakout Qualifier rules are disabled, a line becomes solid on any close beyond the level. ( Default: On )
🟡 DISCLAIMER
By subscribing to and or using DeMARK 9-13 or any other DeMARK Indicators on TradingView, you acknowledge that you have read, understood and agree to the DeMARK for TradingView Terms of Service (located in the DeMARK account signature) as well as any updates to those terms which may happen from time-to-time.
The DeMARK Indicators are powerful tools designed to assist the individual process you use to understand financial markets and make investment decisions but they are not trading systems. Any information presented is not, and should not be construed as, financial or investment advice. You should not make any investment decision based solely on the information provided by these tools. The products we offer do not recommend or endorse any specific securities, financial products or investment strategies. Any information, data or analysis presented by any DeMARK products or tools is generic and does not consider your personal financial situation, investment objectives or risk tolerance. All investment decisions are yours alone and are made at your own risk. Those risks include, but are not limited to, potential system errors, data inaccuracies or outages.
From time to time unauthorized and unaffiliated third parties use the DeMARK name or the names of our copyrighted and/or trademarked products in an unapproved, inaccurate and misleading manner. While we do our best to remove these examples, some fake, flawed and fraudulent may exist. The only official and accurate sources of our products are those listed on the DeMARK company website. Unauthorized reproduction, copying, scraping, republishing, distribution, dissemination or any other use of our name, trademarks and/or copyrighted materials (including this script documentation) is prohibited.
Without in any way limiting DeMARK’s exclusive rights under copyright, trademark and all other intellectual property protections, any use of DeMARK products to “train” generative artificial intelligence (AI) technologies to generate text is expressly prohibited. DeMARK reserves all rights to license uses of this work for generative AI training and development of machine learning language or machine learning visual models.
The data and analysis in our products are based on sources believed to be reliable, but DeMARK does not control or guarantee the accuracy, completeness or timeliness of this information.
As a DeMARK subscriber or user, you are responsible for conducting your own research and due diligence before making any investment decisions.
Past performance, including any simulated or historical data, is not indicative of future results.
Ücretli komut dosyası
Adaptive Volume Trend - [RZ]Adaptive Volume Trend
Introduction
The Adaptive Volume Trend is a dynamic, volume-weighted trend detection indicator designed to identify significant directional shifts in market momentum. By integrating price and volume data into a single adaptive framework, it helps traders visualize when market participation supports upward or downward trends.
The indicator adapts to volatility conditions through statistical measures, offering a refined approach to trend confirmation beyond traditional moving averages.
Key Features
Dynamic Volume-Weighted Analysis : Utilizes a Volume-Weighted Moving Average (VWMA) combined with exponential smoothing to account for both price movement and traded volume.
Adaptive Thresholding : Implements a rolling standard deviation-based system that automatically adjusts sensitivity to volatility and market conditions.
Color-Coded Trend Visualization : Optional bar and line coloring dynamically represent bullish and bearish market states for intuitive chart interpretation.
Alert Conditions : Built-in alerts notify users when bullish or bearish thresholds are breached, enabling timely trading decisions.
Customizable Parameters : Users can modify VWMA length, smoothing period, threshold sensitivity, and color settings to align with their preferred trading style or asset characteristics.
How It Works
The indicator calculates a smoothed VWMA of the closing price weighted by trading volume, then compares the logarithmic deviation of price from this adaptive average. A dynamic standard deviation is applied over a defined period to establish upper and lower threshold bands that represent statistically significant price deviations.
When the oscillator crosses above the upper threshold, it signals potential bullish strength supported by rising volume.
When it falls below the lower threshold, it indicates bearish dominance or weakening momentum.
A scoring mechanism assigns values (+1 for bullish, –1 for bearish) which drive both bar and line color changes, providing immediate visual feedback.
The EMA overlay line, color-shifted by signal strength, further emphasizes ongoing directional trends.
This adaptive mechanism ensures responsiveness during high-volatility markets while filtering noise during consolidation phases.
ES
NVIDIA
GOLD
Conclusion
The Adaptive Volume Trend indicator offers traders a balanced, adaptive framework to analyze volume-backed price movements. By dynamically adjusting to volatility and market participation, it enhances the reliability of trend detection and visual clarity on charts. It serves as a valuable addition for traders seeking volume-informed trend confirmation and dynamic market structure insights.
Disclaimer
This indicator is provided for educational and analytical purposes only. It does not constitute financial advice or a recommendation to buy or sell any asset. Past performance is not indicative of future results. Users should conduct their own analysis and manage risk appropriately before making any trading decisions.
Elastic Trend OscillatorThe Elastic Trend Oscillator (ETO) is a volatility-adaptive momentum indicator that measures price displacement from a trend baseline while accounting for market volatility conditions. Unlike traditional oscillators that use fixed scaling, ETO dynamically adjusts its sensitivity based on current volatility levels relative to recent market conditions, providing context-aware momentum readings across different market regimes.
What Makes This Indicator Different
Volatility-Adaptive Scaling:
The core innovation of ETO is its dynamic volatility adjustment mechanism. The indicator calculates an ATR percentile rank over a lookback period and uses this to scale the momentum readings. When volatility is elevated, the indicator becomes less sensitive to price moves, recognizing that larger displacements are normal in volatile conditions. Conversely, in low volatility environments, smaller price moves are given more weight. This prevents false signals during volatility expansions and maintains sensitivity during quiet periods.
Low Volatility Compression:
During periods of extremely low volatility, the oscillator naturally compresses toward the midline and exhibits minimal movement. This midline-hugging behavior serves as a visual indicator that the market lacks directional energy and momentum readings are unreliable. Unlike indicators that continue oscillating during quiet periods and potentially generate false signals, ETO's compression around the midline is supposed to identify low-conviction environments where trend-following strategies underperform. When you see the oscillator stuck near 50 with little movement, recognize this as a consolidation phase where ranges dominate and breakout setups may be developing.
Trend Slope Analysis with Dynamic Thresholds:
The indicator monitors both the trend direction (EMA slope) and the rate of slope change. Dynamic thresholds based on ATR identify when trend acceleration is slowing. The oscillator becomes semi-transparent when slope deceleration exceeds the threshold, warning of potential trend exhaustion before actual reversals occur.
Relatively Linear Transformation:
Unlike many oscillators that use non-linear transformations, ETO applies a more linear scaling of the ATR-normalized displacement. This preserves the proportional relationship between price moves and oscillator readings, making divergences and momentum shifts more intuitive to interpret.
How to Use the Indicator
Trend Direction:
Green oscillator = Bullish trend (price above EMA with positive slope)
Red oscillator = Bearish trend (price below EMA with negative slope)
Oscillator compressed near 50 with minimal movement = Low volatility, consolidation phase. These phases often precede volatility expansions and significant directional moves, making them more ideal for monitoring breakout setups rather than taking positions.
Momentum Quality:
Solid color = Strong, accelerating trend
Semi-transparent = Decelerating trend, potential exhaustion, potential consolidation ahead
The transparency change acts as an early warning before actual trend reversals or consolidations.
Trading Signals:
Crossovers: When the oscillator crosses the signal line to the other side of momentum while oversold/overbought, it suggests potential reversals (better in combination with transparency loss).
Overbought/Oversold: Levels above 70 indicate overbought conditions; below 30 indicate oversold. These are not reversal signals themselves but identify extended moves where momentum may be extreme.
Midline: Oscillator above 50 indicates price is above the trend baseline with positive displacement. Below 50 indicates negative displacement.
Divergences: Like with other momentum indicators compare oscillator highs/lows with price highs/lows.
Settings
EMA Length: Controls the trend baseline period. Lower values make the indicator more responsive to short-term price changes; higher values focus on longer-term trends. This directly affects how quickly the oscillator responds to trend changes.
ATR Length: Determines the period for volatility measurement. This affects both the normalization of price displacement and the momentum confirmation filter. Lower values make volatility measurements more reactive; higher values provide smoother volatility assessment.
Oscillator Smoothing: Applies EMA smoothing to the raw oscillator values. A value of 1 shows unsmoothed, more volatile readings. Higher values produce smoother oscillations with less noise but more lag.
Signal Line Length: The EMA period for the signal line. Lower values create more frequent crossovers; higher values generate fewer but potentially more significant crossovers. This acts as a moving average of the oscillator itself.
Slope Change Sensitivity: Multiplier that sets how much slope deceleration triggers the transparency effect. Lower values make the indicator more sensitive to trend exhaustion, showing transparency earlier. Higher values require more pronounced deceleration before visual warning.
Overbought Level: Defines the upper extreme threshold.
Oversold Level: Defines the lower extreme threshold.
Best Practices
Use on any timeframe, but adjust EMA and ATR lengths according to your trading style (shorter for shorter term trades, longer for longer term trading like swing trading)
Combine with price action — the indicator identifies momentum conditions, not specific entry/exit points.
In strongly trending markets, the oscillator may remain in overbought/oversold territory for extended periods—this is normal and indicates persistent momentum rather than imminent reversal.
This indicator does not provide investment or trading advice. All trading decisions should be made based on your own analysis and risk management.
BVC - Optimized Trend StrengthOverview
BVC-Optimized Trend Strength is a next-generation trend evaluation system designed specifically for the Casablanca Stock Exchange (BVC).
It measures the true strength of bullish and bearish pressure using a combination of advanced technical filters:
• Trend structure via MM20 & MM50
• Market momentum via RSI
• Breakout confirmation using Donchian levels
• Volume validation based on BVC liquidity characteristics
• Slope strength of the fast moving average
• Weighted scoring engine (0 → 100)
• Non-repainting BUY/SELL signals
• Background regime detection (Bull / Bear / Neutral)
It is engineered to be highly configurable, lightweight, and fully adapted to BVC market behavior, where liquidity, breakout reliability, and trend confirmation behave differently from US or European markets.
⸻
How It Works
At every bar, the script evaluates 6 categories of trend evidence.
Each category contributes a configurable weight to a final Bull Score and Bear Score, each ranging from 0 to 100.
Bull Score Components
• Price above MM20
• MM20 above MM50
• Positive MA slope
• RSI above bullish threshold
• Donchian bullish breakout (non-repainting)
• Volume confirmation
Bear Score Components
Exact mirror of the bullish setup.
The result is a quantitative trend strength meter that reflects the true pressure behind the market.
⸻
Non-Repainting BUY & SELL Signals
Signals only trigger when the calculated score crosses your minimum threshold (default: 60).
Labels fire once, at the close of the candle, using:
MM crossovers
RSI regime shifts
Donchian breakouts
Trend structure & volume validation
All signals are non-repainting, meaning what you see historically is exactly what was printed live.
Labels include:
BUY • Very Strong (85/100)
SELL • Strong (65/100)
⸻
Background Regime Detection
The chart background automatically adapts to market conditions:
• Green → confirmed bullish regime
• Red → confirmed bearish regime
• Gray → mixed or transition phase
You may customize transparency and behavior.
⸻
Top-Right Dashboard
A clean summary panel displays:
• Price
• MM20
• MM50
• RSI
• Bull/Bear scores
• Recommended Action: BUY / HOLD, SELL / AVOID or WAIT
This gives traders an instant, objective view of market conditions.
⸻
Alerts
Built-in TradingView alerts:
• BUY Signal
• SELL Signal
Customize them directly through the TradingView alerts panel.
⸻
Ideal For
Swing traders
Position traders
Portfolio managers
Trend-followers
BVC investors wanting objective confirmation
Traders who hate repainting signals
⸻
Why It Works on the BVC
The BVC behaves differently from high-frequency markets.
Breakouts often require confirmation, low volume distorts momentum, and many assets move in structured waves.
This script integrates all these insights into a single, powerful and unified indicator—built for Morocco, by someone who trades Morocco.
⸻
Disclaimer
This indicator does not guarantee profits and should be combined with market structure, liquidity evaluation, and proper risk management. Past performance does not guarantee future results.
EMA + RSI Autotrade Webhook - VarunOverview
The EMA + RSI Autotrade Webhook is a powerful trend-following indicator designed for automated crypto futures trading. This indicator combines the reliability of Exponential Moving Average (EMA) crossovers with RSI momentum filtering to generate high-probability buy and sell signals optimized for webhook integration with crypto exchanges like Delta Exchange, Binance Futures, and Bybit.Key Features
Simple & Effective: Uses proven EMA 9/21 crossover strategy
RSI Momentum Filter: Eliminates low-probability trades in ranging markets
Webhook Ready: Two clean alerts (LONG Entry, SHORT Entry) for seamless automation
Exchange Compatible: Works with Delta Exchange, 3Commas, Alertatron, and other webhook platforms
Zero Lag Signals: Real-time alerts on crossover confirmation
Visual Clarity: Clean chart markers for easy signal identification
How It Works
Entry Signals:
LONG Entry: Triggers when EMA 9 crosses above EMA 21 AND RSI is above 52 (bullish momentum confirmed)
SHORT Entry: Triggers when EMA 9 crosses under EMA 21 AND RSI is below 48 (bearish momentum confirmed)
Technical Components:
Fast EMA: 9-period (tracks short-term price action)
Slow EMA: 21-period (identifies primary trend)
RSI: 14-period (confirms momentum strength)
RSI Long Threshold: 52 (filters weak bullish signals)
RSI Short Threshold: 48 (filters weak bearish signals)
Best Use Cases
Crypto Futures Trading: Bitcoin, Ethereum, Altcoin perpetual contracts
Automated Trading Bots: Integration with Delta Exchange webhooks, TradingView alerts
Timeframes: Optimized for 15-minute charts (works on 5min-1H)
Markets: Trending crypto markets with clear directional moves
Risk Management: Best used with 1-2% stop loss per trade (managed externally)
Webhook Automation Setup
Add indicator to your TradingView chart
Create alerts for "LONG Entry" and "SHORT Entry"
Configure webhook URL from your exchange (Delta Exchange, Binance, etc.)
Use alert message: Entry LONG {{ticker}} @ {{close}} or Entry SHORT {{ticker}} @ {{close}}
Exchange automatically reverses positions on opposite signals
Advantages
✅ No manual trading required - fully automated
✅ Eliminates emotional trading decisions
✅ Catches trending moves early with EMA crossovers
✅ RSI filter reduces whipsaws in choppy markets
✅ Works 24/7 without monitoring
✅ Simple two-alert system (easy to manage)
✅ Compatible with multiple exchanges via webhooksStrategy Philosophy
This indicator follows a trend-following with momentum confirmation approach. By waiting for both EMA crossover AND RSI confirmation, it ensures you're entering trades with genuine momentum behind them, not just random price noise. The tight RSI thresholds (52/48) keep you aligned with the prevailing trend.Recommended Settings
Timeframe: 15-minute (primary), 5-minute (scalping), 1-hour (swing)
Markets: BTC/USDT, ETH/USDT, high-liquidity altcoin perpetuals
Position Sizing: 100% capital per signal (exchange manages reversals)
Stop Loss: 2% (managed via exchange or external bot)
Leverage: 1-2x for conservative approach, up to 5x for aggressive
Important Notes
⚠️ This indicator generates entry signals only - position reversals are handled automatically by your exchange
⚠️ Always backtest on historical data before live trading
⚠️ Use proper risk management and position sizing
⚠️ Best performance in trending markets; may generate false signals in tight ranges
⚠️ Requires TradingView Premium or higher for webhook functionalityTags
cryptocurrency futures automated-trading ema-crossover rsi webhook delta-exchange tradingview-alerts trend-following momentum bitcoin ethereum crypto-bot algo-trading 15-minute-strategy
SibayakNa - v16.1 Entry Setup Indicator to confirm Entry Setup with simple MA Crossing, RSI, Volume, ATR, OBV, ADX at MTF.
ADX Trend Strength Filter + TRAMA [DotGain]Summary
Are you tired of trading trend signals, only to get stopped out in volatile, sideways chop?
The ADX Trend Strength Filter (ADX TSF) is designed to solve this exact problem. It is a comprehensive trend-following system that only generates signals when a trend not only has the right direction and momentum, but also sufficient strength.
This indicator filters out weak or indecisive market phases (the "chop") and will only color the bars Green or Red when all conditions for a strong, confirmed trend are met.
⚙️ Core Components and Logic
The ADX TSF relies on a triple-filter logic to generate a clear trade signal:
Trend Filter (TRAMA): A TRAMA (Trending Adaptive Moving Average) is used as the main trendline. This adaptive average automatically adjusts to market volatility, acting as a dynamic support/resistance level.
Price > TRAMA = Bullish
Price < TRAMA = Bearish
Momentum Filter (RSI Crossover): Momentum is measured by a crossover of two moving averages of the RSI (a fast EMA and a slow SMA). This confirms whether the momentum is pointing in the same direction as the trend.
Strength Filter (ADX): This is the most important filter. A signal is only considered valid if the ADX (Average Directional Index) is above a defined threshold (Default: 30). This ensures the trend has sufficient strength.
🚦 How to Read the Indicator
The indicator has three states, displayed directly as bar colors on your chart:
🟩 GREEN BARS (Strong Uptrend) All three conditions are met:
Price is above the TRAMA.
RSI momentum is bullish (Fast MA > Slow MA).
ADX is above 30 (Strong trend is present).
🟥 RED BARS (Strong Downtrend) All three conditions are met:
Price is below the TRAMA.
RSI momentum is bearish (Fast MA < Slow MA).
ADX is above 30 (Strong trend is present).
🟧 ORANGE BARS (Neutral / Caution) This state appears if any of the following conditions are true:
Weak Trend: The ADX is below 30. The market is in consolidation or a sideways phase. (This is the primary filter!)
Indecision: The price is caught in the "Neutral Zone" between the TRAMA and the 200 SMA.
Visual Elements
Bar Colors: (Green/Red/Orange) Show the current trend status.
TRAMA (Orange Line): Your primary adaptive trendline.
200 SMA (White Line): Serves as a reference for the long-term trend.
Orange Background (Fill): Fills the area between the TRAMA and SMA to visually highlight the "Neutral Zone."
Key Benefit
The goal of the ADX TSF is to keep traders out of weak, unpredictable markets and help them participate only in strong, momentum-confirmed trends.
Have fun :)
Disclaimer
This "Buy The F*cking Dip" (BTFD) indicator is provided for informational and educational purposes only. It does not, and should not be construed as, financial, investment, or trading advice.
The signals generated by this tool (both "Buy" and "Sell") are the result of a specific set of algorithmic conditions. They are not a direct recommendation to buy or sell any asset. All trading and investing in financial markets involves substantial risk of loss. You can lose all of your invested capital.
Past performance is not indicative of future results. The signals generated may produce false or losing trades. The creator (© DotGain) assumes no liability for any financial losses or damages you may incur as a result of using this indicator.
You are solely responsible for your own trading and investment decisions. Always conduct your own research (DYOR) and consider your personal risk tolerance before making any trades.
BVC - Momentum Dashboard ForecastBVC – Momentum Dashboard Forecast is an all-in-one indicator designed for the Casablanca Stock Exchange.
It merges trend, momentum, volatility and breakout signals to produce clear, non-repainting Buy/Sell triggers, strength scoring,
short-term forecasting and a complete visual dashboard.
Main Components
• MA20 / MA50 trend structure
• RSI(14) oversold/overbought exits
• Donchian breakouts (non-repainting using previous window)
• Optional volume confirmation
• Buy/Sell labels + strength score (0→5)
• Automatic trend-based background coloring
• Forecasting (J+1 … J+H) using linear regression + ±k·ATR
• Mini Dashboard + Forecast Table
Forecast Module
• Linear projection using slope of linreg
• ATR-based uncertainty envelope
• Projection labels (optional)
• Forecast table: Session, Projection, ATR band
Alerts
• Buy Signal
• Sell Signal
(Add alert on the indicator.)
Best Practices (BVC)
• Use daily for swing trades
• Weekly timeframe for structural trend
• Donchian 20–30 depending on volatility
• Activate volume filter for liquid stocks
• Combine with support/resistance and order book analysis
MILLION MEN - Zone ScannerWhat it is
MILLION MEN - Zone Scanner is a context-driven momentum tool that visualizes trend regimes (bullish / bearish) and highlights the first-touch opportunity within each regime’s reactive zones. It’s designed to help traders identify pullbacks inside an existing bias rather than chasing breakouts.
How it works
Uses a custom RSI-style momentum meter calculated from RMA of up/down moves.
When the meter > upper threshold → Green Regime.
When the meter < lower threshold → Red Regime.
Defines LONG Zone (34 – 40) and SHORT Zone (60 – 70) for mean-reversion touches.
Prints L FT or S FT on the first confirmed touch after a regime turns on.
Optional candle-color filter (green bar for LONG / red bar for SHORT).
Exit signals trigger once the meter revisits the regime boundary.
Optional Neon Glow styling improves visual clarity without clutter.
How to use
Identify regime direction (green = bullish bias, red = bearish bias).
Wait for the first touch into the relevant zone.
Confirm with higher-time-frame structure or volume context.
Manage position or exit once the meter retests its regime limit.
Use it as a context tool, not an auto-entry system.
Originality & Value
This script enforces discipline by allowing only one signal per regime, reducing over-trading and noise. The zone visualization and glow layers offer a clean, cinematic UI consistent with the MILLION MEN visual standard.
Limitations & Transparency
Works best on standard candlesticks and normal-time frames (tested on BTC, ETH, XRP, BNB, XAUUSD).
No look-ahead or future data.
Signals are bar-close confirmed (barstate.isconfirmed).
Educational tool — not financial advice.
Free Protected Version
Published for public educational use under the MILLION MEN framework. Core logic is protected to maintain script integrity.
Trend & Strength Detector TSDTrend Strength Detector (TSD)
*Objective Trend Quality Measurement for Educational Market Analysis*
Note: This mathematical framework is a proprietary quantitative model developed by Ario Pinelab, inspired by classical EMA, ADX, RSI and MACD principles, yet not documented in any public technical or academic publication.
## 🎯 Purpose & Design Philosophy
The ** Trend Strength Detector- TSD ** is an educational research tool that provides **quantitative measurement of trend quality** through two independent scoring systems (0-100 scale). It answers the analytical question: *"How strong and aligned is the current market trend environment?"*
This indicator is designed with a **modular, complementary approach** to work alongside various analysis methodologies, particularly pattern-based recognition systems.
## 🔗 Complementary Research Framework
### Designed to Work With Pattern Detection Systems
This indicator provides **environmental context measurement** that complements qualitative pattern recognition tools. It works particularly well alongside systems like:
- **RMBS Smart Detector - Multi-Factor Momentum System**
- Traditional chart pattern analyzers
- Any momentum-based pattern identification tools
🔍 **To find RMBS Smart Detector:**
- Search in TradingView Indicators Library: `" RMBS Smart Detector - Multi-Factor Momentum System"`
- Look for: *Multi-Factor Momentum System*
- By author: ` `
### Why This Complementary Approach?
**Trend Quality Measurement** (TSD - this tool) provides:
- ✅ Structural trend alignment (0-100 score)
- ✅ Momentum intensity levels (0-100 score)
- ✅ Environment classification (Strong/Moderate/Weak)
- 📌 **Answers:** *"HOW STRONG is the underlying trend environment?"*
### Educational Research Value
When used together in a research context, these tools enable systematic study of questions like:
- How do reversal patterns behave when Strength Score is above 70 vs below 30?
- Do continuation patterns in weakening environments (declining scores) show different characteristics?
- What is the correlation between high Alignment Scores and pattern "success rates"?
- Can environment classification help identify genuine trend initiation vs false starts?
⚠️ **Important Note:** Both tools are **independent and work standalone**. TSD provides value whether used alone or with other analysis methods. The relationship with RMBS (or any pattern tool) is **complementary for research purposes**, not dependent.
---
###Mathematical Foundation
##TSA Formula: scoring method developed by Ario
-Trend Model (0 – 100)
TAS = EMA Alignment (0–40) + Price Position (0–30) + Trend Consistency (0–30)
EMA Alignment checks EMA_fast vs EMA_slow vs EMA_trend structure.
Price Position evaluates if Close is above/below all EMAs.
Consistency = 3 × max(bullish,bearish bars within 10 candles).
-Strength Model (0 – 100)
Strength = ADX (0–50) + EMA Slope (0–25) + RSI (0–15) + MACD (0–10)
ADX measures trend energy; Slope shows EMA momentum %;
RSI assesses zone positioning; MACD confirms directional agreement.
Note: This formula represents a proprietary quantitative model by Ario_Pinelab, inspired by classical technical concepts but not published in any external reference.________________________________________
📊 Environment Classification
Based on Total Strength Score:
🟢 Strong Environment: Score ≥ 60
→ Well-defined momentum, clear directional bias
🟡 Moderate Environment: 40 ≤ Score < 60
→ Mixed signals, transitional conditions
🔴 Weak Environment: Score < 40
→ Ranging, choppy, low conviction movement
Color Coding:
• Green background: Strong (≥60)
• Yellow background: Moderate (40-59)
• Red background: Weak (<40)
________________________________________
📈 Visual Components
Main Chart Display
Score Labels (Top-Right Corner):
┌─────────────────────────────────┐
│ 📊 Alignment: 75 | Strength: 82 │
│ Environment: Strong 🟢 │
└─────────────────────────────────┘
Color-Coded Background:
• Environment strength visually indicated via background color
• Helps quick identification of market regime
• Customizable transparency (default: 90%)
Reference Lines:
• Dotted line at 60: Strong/Moderate threshold
• Dotted line at 40: Moderate/Weak threshold
• Mid-line at 50: Neutral reference
________________________________________
🔧 Customization Settings
Input Parameters
The best setting is the default mode.
🚫 Important Disclaimers & Limitations
What This Indicator IS:
✅ Educational measurement tool for trend quality research
✅ Quantitative assessment of current market environment
✅ Complementary analysis tool for pattern-based systems
✅ Historical data analyzer for systematic study
✅ Multi-factor scoring system based on technical calculations
What This Indicator IS NOT:
❌ NOT a trading system or signal generator
❌ NOT financial advice or trade recommendations
❌ NOT predictive of future price movements
❌ NOT a guarantee of pattern success/failure
❌ NOT a substitute for comprehensive risk management
________________________________________
Known Limitations
1. Lagging Nature:
⚠️ All components (EMA, ADX, RSI, MACD) are calculated
from historical price data
→ Scores reflect CURRENT and RECENT conditions
→ Cannot predict sudden reversals or black swan events
→ Trend measurements lag actual price turning points
2. Whipsaw Risk:
⚠️ In choppy/ranging markets, scores may fluctuate rapidly
→ Moderate zone (40-60) can see frequent transitions
→ Low timeframes more susceptible to noise
→ Consider higher timeframes for stable measurements
3. Component Conflicts:
⚠️ Individual components may disagree
→ Example: Strong ADX but weak RSI alignment
→ Scores average these conflicts (may hide nuance)
→ Check individual components for deeper insight
4. Not Predictive:
⚠️ High scores do NOT guarantee continuation
⚠️ Low scores do NOT guarantee reversal
→ Measurement ≠ Prediction
→ Use for CONTEXT, not SIGNALS
→ Combine with comprehensive analysis
________________________________________
Risk Acknowledgments
Market Risk:
• All trading involves substantial risk of loss
• Past performance (even systematic studies) does not guarantee future results
• No indicator, system, or methodology can eliminate market risk
Measurement Limitations:
• Scores are mathematical calculations, not market predictions
• Environmental classification is descriptive, not prescriptive
• Strong measurements can deteriorate rapidly without warning
Educational Purpose:
• This tool is designed for LEARNING about market structure
• Not designed, tested, or validated as a standalone trading system
• Any trading decisions are user’s sole responsibility
No Warranty:
• Indicator provided “as-is” for educational purposes
• No guarantee of accuracy, reliability, or profitability
• Users must verify calculations and apply critical thinking
Open Source
Full Pine Script code available for educational study and modification. Feedback and improvement suggestions welcome.
“All logic is presented for research and educational visualization.”
---
ATR Support LineOverview
ATR Support Line is a higher-timeframe-aware overlay that builds a single dynamic support line by anchoring a smoothed price baseline and offsetting it with an Average True Range (ATR) multiple. It is designed to track constructive trends while adapting to current volatility. The tool can render using higher-timeframe (HTF) data with optional closed-bar confirmation to avoid repainting, or live interpolation for more responsive visuals.
Core logic (concepts, not implementation)
• Compute an anchor from price using a selectable moving-average family (SMA / EMA / ZLEMA).
• Measure volatility using ATR and apply a configurable multiplier.
• Form the support line by offsetting the anchor downward by the ATR multiple.
• Timeframe handling: either use the chart timeframe or request an explicit HTF for calculation.
• Rendering modes:
– Closed-bar mode : interpolate inside the previous HTF bar for non-repainting behavior.
– Live mode : interpolate inside the current HTF bar for more timely responsiveness (can visually “breathe” intrabar).
Inputs
• Anchor smoothing: MA type (SMA / EMA / ZLEMA) and anchor length.
• Volatility: ATR length and multiplier.
• Timeframe: optional calculation timeframe (HTF) distinct from the chart timeframe.
• Confirmation: toggle to use closed HTF values (non-repainting) vs. live interpolation.
How to read it
• Price holding above the ATR Support Line indicates constructive conditions; orderly pullbacks toward the line can be normal trend behavior.
• Persistent closes above the line indicate strength; reactions into the line often resolve higher in constructive regimes.
• Persistent closes below the line warn of deterioration; consider reducing risk until price reclaims the level.
• On HTF rendering with closed-bar confirmation, use closes on that HTF for signal confirmation.
• In live mode, treat intrabar pierces as potential noise until confirmed by the close.
Practical use cases
• Trend context: define a trailing “line in the sand” for long-bias frameworks.
• Risk framing: size down or tighten exposure when price loses the support line.
• Confluence: combine with structure (HH/HL vs. LH/LL), volume, or market-wide risk gauges.
• Multi-TF workflow: calculate on HTF for bias, execute on lower TFs for entries/exits.
Best practices
• Align confirmations with the timeframe used for calculation (especially in closed-bar mode).
• Pair with clear invalidation rules (e.g., daily/weekly closes below the line).
• Start with conservative multipliers on noisier assets; adjust ATR length/multiplier to match instrument volatility.
Technical notes
• Non-repainting option : closed-bar HTF mode finalizes values on HTF close; lower-TF plotting uses interpolation only for continuity (no look-ahead).
• Live option : interpolates within the current HTF bar for responsiveness; expect intrabar breathing.
• Works on any time-based chart; results are most interpretable on liquid instruments.
Who it is for
• Traders who want a single, disciplined, volatility-adjusted support line with HTF awareness.
• Systematic users who prefer clear, reproducible rules for trend context and risk boundaries.
Limitations & disclosures
• Closed-source; for educational and analytical use only.
• Not financial advice. Markets involve risk; past performance does not guarantee future results.
Release notes
• Added selectable anchor MA (SMA / EMA / ZLEMA) and explicit HTF calculation with two rendering modes (closed-bar non-repainting vs. live).
• Interpolation refined for smooth visuals while respecting HTF closes in confirmation mode.
Originality & why closed-source
This is not a reimplementation of public open-source scripts. The integration of anchor smoothing choices, volatility offset, HTF calculation, and dual rendering modes (closed-bar non-repainting vs. live interpolation) is designed to maintain trend fidelity with practical control over responsiveness. The interaction of these components is proprietary and the source is closed to protect the implementation.
Integration, not a mashup
ATR Support Line is a single, self-contained framework. It does not merely merge indicators; its components are purpose-built to produce one coherent, volatility-aware, single-line support with a clear reading protocol (hold above = constructive; loss = caution).
Indicator, not a strategy
This publication is an indicator overlay, not a trading strategy. It includes no backtests, position logic, performance claims, or risk assumptions. Use it as analytical context within your own risk management.
Comparison to common tools
Compared to static moving-average baselines or classic volatility bands, ATR Support Line emphasizes (1) a single actionable support level, (2) explicit volatility adjustment via ATR, and (3) HTF-aware rendering with an optional non-repainting confirmation mode.
Axel AltsOverview
Axel Alts is a higher-timeframe-aware overlay that forms a two-line support band for altcoins using a sticky, threshold-and-step progression. It draws an Upper Support (mid) and a Lower Support (low) derived from evolving local lows, with smoothed transitions and an optional halving-cycle bear-window background.
The goal is disciplined context: identify controlled pullbacks into support in constructive regimes and avoid emotional chasing. All core settings are fixed for consistent behavior across symbols.
Core logic (concepts, not implementation)
• Two baseline levels are computed as fractional distances from the current base and then smoothed.
• A sticky mechanism advances each line toward its target only when deviation is material, and in capped steps. This reduces whipsaw and preserves structure.
• Visual easing smooths transitions so curves remain stable and readable.
• Rendering accounts for higher-timeframe structure and uses interpolation on lower timeframes for visual continuity; values do not look ahead and finalize on higher-timeframe closes.
• An optional bear-window background is derived from halving dates to flag a more cautious phase between the late part of one cycle and the run-up to the next.
Inputs
• Parameters are locked (lengths, fractions, sticky thresholds/steps, easing radii, bear-window bounds). No user-tweakable inputs—this prevents overfitting and improves repeatability.
How to read it
• The zone between Upper Support and Lower Support is the preferred “controlled pullback” area in constructive regimes.
• Persistent closes above Upper Support indicate strength; orderly reactions into the band can be constructive.
• Sustained closes below Lower Support warn of deterioration; be cautious with aggressive longs until recovery.
• The bear-window background suggests a more conservative stance on risk and size.
• Confirmations are best taken on daily/weekly closes; short-term pokes through the band are often noise.
Practical use cases
• Altcoin rotation: prioritize names holding the band; de-prioritize those persisting below it.
• Dollar-Cost Averaging (DCA) context: scale within the band during favorable regimes.
• Risk framing: tighten or reduce exposure on breaks below Lower Support or during the bear window.
• Confluence: combine with volume/volatility tools and market-wide risk gauges.
Best practices
• Rely on daily/weekly closes for confirmation.
• Pair with market structure (HH/HL vs. LH/LL) and higher-timeframe support/resistance.
• Consider broader cycle context (e.g., halving windows) before scaling risk.
Technical notes
• Non-repainting: values finalize on the close of the higher timeframe used by each calculation.
• Interpolation on lower timeframes is for continuity only; it is not forward-looking.
• Bear-window boundaries are fixed and derived from publicly known Bitcoin halving dates.
• The fill between lines is fixed in the current configuration.
Who it is for
• Traders who want a fixed-rules, repeatable context for alt pullbacks and trend health.
• Systematic users who prefer deterministic, non-tunable overlays for portfolio discipline.
Limitations & disclosures
• Closed-source; for educational and analytical use only.
• Not financial advice. Markets involve risk; past performance does not guarantee future results.
Release notes
• Includes sticky progression for both support lines with eased transitions.
• Improved visual continuity on lower timeframes while respecting higher-timeframe structure.
• Added halving-based bear-window highlighting (bounds are fixed).
Originality & why closed-source
This is not a reimplementation of public open-source scripts. Axel Alts integrates (1) sticky threshold-and-step progression, (2) dual support lines built from fractional levels off evolving lows with separate smoothing, (3) visual easing for stability, and (4) a halving-based bear window. The interaction of thresholds/steps, smoothing, and the regime window is proprietary and tuned to retain structure while limiting lag. The source is closed to protect this implementation.
Integration, not a mashup
Axel Alts is a single, self-contained framework. It does not merely merge indicators; its components are designed to work together to form a unified support band with a clear reading protocol (hold within the band, caution below, close-based confirmations, optional bear-window context).
Indicator, not a strategy
This publication is an indicator overlay, not a trading strategy. It includes no backtests, position logic, performance claims, or risk assumptions. Use it as analytical context within your own risk management.
Comparison to common tools
Compared to standard moving-average channels or volatility bands, Axel Alts emphasizes (1) structure retention via sticky thresholds/steps, (2) smoother visuals through eased transitions, and (3) explicit cycle context via the halving-based bear window.
Trap LineOverview
Trap Line is a higher-timeframe trend framework designed to define market regimes using smoothed weekly (1W) and three-week (3W) baselines. Price trading above the line reflects a bullish regime; price below the line reflects a bearish one. The goal is regime discipline—stay aligned with the dominant higher-timeframe direction and avoid late, emotional entries. All parameters are fixed to ensure consistent behavior across symbols.
Core logic (concepts, not full code)
• Computes a Hull-type moving average on 1W and 3W closes (with optional linear-regression pre-filtering) and projects them onto lower timeframes via interpolation.
• Produces a smooth, lag-reduced structural baseline that tracks the weekly trend path.
• Observing price vs. the baseline highlights potential trap zones—temporary breaches that often fail without a confirmed weekly close.
• The 3-Week Trap Line adds a macro confirmation layer and is hidden by default in the Style tab to keep charts clean.
Inputs
• Parameters (length, smoothing type, regression toggle, interpolation mode) are fixed to prevent overfitting and preserve repeatability.
How to read it
• Above the line => bullish regime.
• Below the line => bearish regime.
• A confirmed weekly close through the line suggests a regime transition.
• A weekly close above the line with a green candle supports bullish continuation; a weekly close below the line with a red candle supports bearish continuation.
• Intraweek deviations near the line are often noise and may fade.
Practical use cases
• Weekly bias filter for swing/position frameworks.
• Regime confirmation across related assets or sectors.
• Portfolio overlay: favor long exposure in bullish regimes; reduce risk in bearish regimes.
• Combine with volume or ATR-based tools to assess trend quality.
Best practices
• Wait for the weekly close before declaring regime flips.
• Avoid overreacting to intraweek moves around the baseline.
• Combine with structure analysis (HH/HL vs. LH/LL) and higher-timeframe S/R.
• Use standard time-based candles; avoid interpreting signals on Heikin Ashi, Renko, Kagi, Point & Figure, or Range charts.
Technical notes
• Built on locked higher-timeframe data (1W and 3W).
• Interpolation is used to render HTF structure smoothly on lower charts.
• Non-repainting : values finalize when the higher timeframe closes; lower-TF plotting is interpolated, not forward-looking.
Who it is for
• Traders who want a consistent, rules-based higher-timeframe bias filter.
• Systematic users who prefer fixed-parameter baselines for regime context.
Limitations & disclosures
• Closed-source; educational and analytical use only.
• Not financial advice. Markets involve risk; past performance does not guarantee future results.
Release notes
• Includes the 3-Week Trap Line (3W). It is hidden by default in the Style tab; enable it if you want an additional macro confirmation layer.
• Fixed-parameter design (no user-tweakable inputs) for consistent behavior across symbols.
• Non-repainting values finalize on 1W/3W candle close.
Originality & why closed-source
This is not a reimplementation of public open-source scripts. Trap Line uses a specific combination of higher-timeframe Hull smoothing, optional linear-regression pre-filtering, and lower-timeframe interpolation designed to expose trap zones (temporary regime breaches that often fail without a confirmed weekly close). The integration and thresholds are proprietary and tuned to retain weekly structure with reduced lag. The source is closed to protect this implementation.
Integration, not a mashup
Trap Line is a single, self-contained framework. It does not merely merge other indicators; its components are integrated to produce a unified higher-timeframe baseline (1W/3W) with a defined reading protocol (above/below line, weekly-close confirmation, optional candle-color confirmation).
Indicator, not a strategy
This publication provides an indicator overlay , not a trading strategy. It includes no backtests, position logic, performance claims, or risk assumptions. Use it as an analytical bias filter within your own risk management.
Comparison to common tools
Compared to standard MAs or SuperTrend-style bands, Trap Line prioritizes (1) higher-timeframe structure fidelity, (2) reduced lag via HMA-type smoothing, and (3) explicit weekly-close confirmation to avoid premature regime flips. The optional 3-Week line acts as a macro confirmation layer and is hidden by default in the Style tab.
VWAP Kalman FilterOverview
This indicator applies Kalman filtering techniques to Volume Weighted Average Price (VWAP) calculations, providing a statistically optimized approach to VWAP analysis. The Kalman filter reduces noise while maintaining responsiveness to genuine price movements, addressing common VWAP limitations in volatile or low-volume conditions.
Technical Implementation
Kalman Filter Mathematics
The indicator implements a state-space model for VWAP estimation:
- Prediction Step: x̂(k|k-1) = x̂(k-1|k-1) + v(k-1)
- Update Step: x̂(k|k) = x̂(k|k-1) + K(k)
- Kalman Gain: K(k) = P(k|k-1) / (P(k|k-1) + R)
Where:
- x̂ = estimated VWAP state
- K = Kalman gain (adaptive weighting factor)
- P = error covariance
- R = measurement noise
- Q = process noise
- v = optional velocity component
Core Components
Dual VWAP System
- Standard VWAP: Traditional volume-weighted calculation
- Kalman-filtered VWAP: Noise-reduced estimation with optional velocity tracking
- Real-time divergence measurement between filtered and unfiltered values
Adaptive Filtering
- Process Noise (Q): Controls adaptation to price changes (0.001-1.0)
- Measurement Noise (R): Determines smoothing intensity (0.01-5.0)
- Optional velocity tracking for momentum-based filtering
Multi-Timeframe Anchoring
- Session, Weekly, Monthly, Quarterly, and Yearly anchor periods
- Automatic Kalman state reset on anchor changes
- Maintains VWAP integrity across timeframes
Features
Visual Components
- Dual VWAP Lines: Compare filtered vs. unfiltered in real-time
- Dynamic Bands: Three-level deviation bands (1σ, 2σ, 3σ)
- Trend Coloring: Automatic color adaptation based on price position
- Cloud Visualization: Highlights divergence between standard and Kalman VWAP
- Signal Markers: Crossover and band-touch indicators
Trading Signals
- VWAP crossover detection with Kalman filtering
- Band touch alerts at multiple standard deviation levels
- Velocity-based momentum confirmation (optional)
- Divergence warnings when filtered/unfiltered values separate
Information Display
- Real-time VWAP values (both standard and filtered)
- Trend direction indicator
- Velocity/momentum reading (when enabled)
- Divergence percentage calculation
- Anchor period display
Input Parameters
VWAP Settings
- Anchor Period: Choose calculation reset period
- Band Multipliers: Customize deviation band distances
- Display Options: Toggle standard VWAP and bands
Kalman Parameters
- Length: Base period for calculations (5-200)
- Process Noise (Q: Higher values increase responsiveness
- Measurement Noise (R): Higher values increase smoothing
- Velocity Tracking: Enable momentum-based filtering
Visual Controls
- Toggle filtered/unfiltered VWAP display
- Band visibility options
- Signal markers on/off
- Cloud fill between VWAPs
- Bar coloring by trend
Use Cases
Noise Reduction
Particularly effective during:
- Low volume periods (pre-market, lunch hours)
- Volatile market conditions
- Fast-moving markets where standard VWAP whipsaws
Trend Identification
- Cleaner trend signals with reduced false crosses
- Earlier trend detection through velocity component
- Confirmation through divergence analysis
Support/Resistance
- Filtered VWAP provides more stable S/R levels
- Bands adapt to filtered values for better zone identification
- Reduced false breakout signals
Technical Advantages
1. Optimal Estimation: Mathematically optimal under Gaussian noise assumptions
2. Adaptive Response: Self-adjusting to market conditions
3. Predictive Element: Velocity component provides forward-looking insight
4. Noise Immunity: Superior noise rejection vs. simple moving average smoothing
Limitations
- Assumes linear price dynamics
- Requires parameter optimization for different instruments
- May lag during sudden volatility regime changes
- Not suitable as standalone trading system
Mathematical Background
Based on control systems theory, the Kalman filter provides recursive Bayesian estimation originally developed for aerospace applications. This implementation adapts the algorithm specifically for financial time series, maintaining VWAP's volume-weighted properties while adding statistical filtering.
Comparison with Standard VWAP
Standard VWAP Issues Addressed:
- Choppy behavior in low volume
- Whipsaws around VWAP line
- Lag in trend identification
- Noise in deviation bands
Kalman VWAP Benefits:
- Smooth yet responsive line
- Fewer false signals
- Optional momentum tracking
- Statistically optimized filtering
Alert Conditions
The indicator includes several pre-configured alert conditions:
- Bullish/Bearish VWAP crosses
- Upper/Lower band touches
- High divergence warnings
- Velocity shifts (if enabled)
---
This open-source indicator is provided as-is for educational and trading purposes. No guarantees are made regarding trading performance. Users should conduct their own testing and validation before using in live trading.
OverBought & OverSold [SwissAlgo]OverBought & OverSold
Statistical analysis of momentum extremes
----------------------------------------------------------
Purpose
This indicator was built to answer three questions:
Is the current price move statistically extreme? - By comparing current momentum to historical distribution
What is the current market regime? - By combining trend position and momentum direction
Is momentum accelerating or decelerating? - By analyzing weekly momentum shifts
----------------------------------------------------------
What You Can Do With This Indicator
Identify Statistical Extremes
See when price momentum seems to have reached levels that historically preceded reversals
Compare the current Rate of Change to its historical mean and standard deviation
Spot when readings exceed ±1σ, ±2σ, or higher thresholds
Monitor Market Regime/State
Track whether the market seems to be in BULL, WEAK BULL, BEAR, or WEAK BEAR state
Observe potential transitions between regimes as they occur
Understand the relationship between price position and momentum
Assess Momentum Quality
Distinguish between potentially accelerating momentum (lime/red bars) and decelerating momentum (green/maroon bars)
Watch for possible momentum deterioration within established trends
Track weekly momentum patterns that filter out daily noise
Measure Distance from Trend
Monitor how far the price is from its long-term moving average (EMA 350)
Identify when price approaches trend support/resistance
Contextualize current position relative to historical distance patterns
----------------------------------------------------------
Overview
This indicator calculates a volume-weighted Rate of Change (ROC) and displays it with statistical Z-Score bands. It combines ROC analysis with market regime detection using weekly MACD and EMA positioning.
Key Features
Volume-weighted ROC calculation with 5-bar smoothing
Dynamic Z-Score bands (±0.5σ to ±6σ)
Four-state market regime classification
Weekly Stochastic RSI-based histogram coloring
Visual markers for extreme readings
Information table with current statistics
Calculations
Volume-Weighted ROC
The indicator compares two 5-bar volume-weighted average prices separated by the ROC
Length period:
Recent VWAP = Σ(Price × Volume) / Σ(Volume) for last 5 bars
Past VWAP = Σ(Price × Volume) / Σ(Volume) for 5 bars at lookback
ROC = ((Recent VWAP - Past VWAP) / Past VWAP) × 100
Default ROC Length: 30 periods
Why volume-weighted:
Single price points can be affected by temporary spikes
Volume weighting emphasizes legitimate price moves
5-bar averaging reduces single-bar noise
Z-Score Bands
The indicator maintains separate statistical distributions for positive and negative ROC values:
For positive ROC values:
Calculates mean and standard deviation of all positive ROC readings
Plots bands at +0.5σ, +1σ, +2σ, +3σ, +4σ, +5σ, +6σ above the mean
For negative ROC values:
Calculates mean and standard deviation of all negative ROC readings
Plots bands at -0.5σ, -1σ, -2σ, -3σ, -4σ, -5σ, -6σ below the mean
Z-Score formula:
If ROC > 0: Z = (ROC - Positive Mean) / Positive Std Dev
If ROC < 0: Z = (ROC - Negative Mean) / Negative Std Dev
Why separate distributions:
Upward and downward momentum often have different statistical properties
Separate analysis provides more accurate extreme identification
Each side maintains its own mean and volatility characteristics
The ±1σ bands use thicker lines (linewidth=2) as these levels are most frequently tested.
Market Regime States
Four states based on weekly MACD (10, 24, 8) and EMA 350:
BULL
Conditions: Price > EMA 350, Weekly MACD > 0, MACD > Signal, ROC histogram lime
Background: Lime (85% transparency)
Interpretation: Price above long-term trend with accelerating momentum
WEAK BULL
Conditions: Price > EMA 350 AND (MACD < Signal OR ROC histogram green)
Background: Green (95% transparency)
Interpretation: Price above trend, but momentum seems to be decelerating
BEAR
Conditions: Price < EMA 350, Weekly MACD < 0, MACD < Signal, ROC histogram red
Background: Red (85% transparency)
Interpretation: Price below long-term trend with accelerating downward momentum
WEAK BEAR
Conditions: Price < EMA 350 AND (MACD > Signal OR ROC histogram maroon)
Background: Maroon (95% transparency)
Interpretation: Price below trend, but downward momentum seems to be decelerating
NEUTRAL
Conditions: None of the above met
Background: Gray (95% transparency)
Interpretation: Transitional state between regimes
Why weekly MACD:
Filters daily volatility and noise
Provides more stable regime classification
Reduces false regime switches
Histogram Colors
Colors determined by Weekly Stochastic RSI (14, 14, 3, 3):
Lime: ROC > 0 and K > D (rising positive momentum)
Green: ROC > 0 and K < D (falling positive momentum)
Red: ROC < 0 and K < D (falling negative momentum)
Maroon: ROC < 0 and K > D (rising negative momentum)
Why weekly Stochastic RSI:
Shows momentum direction independent of absolute level
Weekly timeframe provides stable readings
K/D crossover indicates momentum shifts
Visual Markers
Red arrows (↓): Display when ROC ≥ +1σ (overbought zone)
Lime arrows (↑): Display when ROC ≤ -0.5σ (oversold zone)
These markers highlight when readings reach statistical extremes.
Information Table
Located at the top-right, displays four rows:
Row 1 - Market State
Shows current regime text (BULL/WEAK BULL/BEAR/WEAK BEAR/NEUTRAL)
Color matches regime state
Row 2 - Current Z-Score
Shows Z-Score value with 2 decimal places
Lime when Z ≤ -0.5 (statistically oversold)
Red when Z ≥ +1 (statistically overbought)
White for values between -0.5 and +1 (normal range)
Adds bullet (●) for extreme values
Row 3 - Price ROC %
Shows current ROC percentage
Lime when positive
Red when negative
Row 4 - Distance % EMA
Shows percentage distance from EMA 350
Calculates Z-score of distance
Red with ● when close to EMA in bull market (|Z| < 0.5)
Lime with ● when close to EMA in bear market (|Z| < 0.5)
Standard colors otherwise (lime when above EMA, red when below)
Why distance matters:
A price approaching EMA 350 in a bull market can signal a support test
Price near EMA 350 in a bear market can signal a resistance test
Z-score of distance shows if the current proximity is statistically unusual
----------------------------------------------------------
Settings
ROC Length (Integer, default: 30, minimum: 1)
Number of periods for ROC lookback
Higher values = slower response, smoother
Lower values = faster response, more sensitive
Source (Source, default: close)
Price data input for calculations
Can use close, open, high, low, hl2, hlc3, ohlc4
Show Info Table (Boolean, default: true)
Toggle table visibility
----------------------------------------------------------
Technical Details
Uses lookahead=barmerge.lookahead_off for all request.security() calls
Accumulates all historical ROC values in arrays for Z-Score calculation
Weekly timeframe data retrieved via request.security() on "1W" resolution
EMA length hardcoded to 350 periods
All plots use Pine Script v6 syntax
Data Requirements
Minimum bars required: ROC Length + 5 bars
Works on any timeframe
Applicable to any instrument with volume data
Historical data used: All available bars on the chart
Display Elements
Plots:
ROC histogram (plotcandle format)
Zero line (horizontal line)
14 standard deviation lines (7 positive, 7 negative)
13 filled regions between bands
14 sigma labels (displayed on last bar only)
Extreme zone markers (arrows)
Color Scheme:
Positive bands: Lime with varying transparency
Negative bands: Red with varying transparency
Fills: Green (positive) and Red (negative) with high transparency
Bands beyond 3σ use increased transparency (85%, 90%, 93%)
Visual Hierarchy
±1σ bands: Thicker lines (most important levels)
±0.5σ to ±3σ: Standard visibility
±4σ to ±6σ: Faded (visible only during extreme events)
Notes
This is an oscillator-type indicator (overlay=false)
Displays in a separate pane below the price chart
Does not generate automatic buy/sell signals
Does not include alert conditions
Does not repaint (all calculations use confirmed data)
Limitations
Requires sufficient historical data for meaningful statistics
Z-Score bands recalculate as new data accumulates
Market regime requires weekly MACD calculation (may show neutral on insufficient data)
Volume-weighting requires volume data availability
EMA 350 is fixed (not adjustable via inputs)
Statistical extremes do not guarantee reversals
Past distribution patterns do not predict future behavior
----------------------------------------------------------
Disclaimer
Educational Purpose Only
This indicator is provided for educational and informational purposes only. It is a technical analysis tool that displays statistical calculations and historical data patterns.
Not Financial Advice
This indicator does not provide financial, investment, trading, or any other type of professional advice. All content and calculations are for informational purposes only and should not be construed as a recommendation to buy, sell, or hold any security or financial instrument.
No Guarantee of Results
Past performance and historical statistical patterns do not guarantee future results. Markets are inherently unpredictable, and statistical analysis cannot predict future price movements with certainty. The appearance of statistical extremes does not ensure that reversals will occur.
User Responsibility
Users of this indicator are solely responsible for their own trading and investment decisions. You should conduct your own research and due diligence and consult with qualified financial professionals before making any investment decisions.
Risk Warning
Trading and investing in financial markets involves substantial risk of loss. You should only trade with capital you can afford to lose. The use of technical indicators does not eliminate market risk.
No Warranty
This indicator is provided "as is" without warranty of any kind, either expressed or implied, including but not limited to warranties of accuracy, reliability, or fitness for a particular purpose. The author makes no guarantees regarding the accuracy of calculations or the absence of errors.
Limitation of Liability
The author and publisher of this indicator shall not be held liable for any losses, damages, or claims arising from the use or inability to use this indicator, including but not limited to trading losses, lost profits, or any other financial losses.
Data Accuracy
While efforts have been made to ensure calculation accuracy, users should independently verify all outputs. The indicator relies on data provided by TradingView, and the author is not responsible for data feed errors or interruptions.
User Agreement
By using this indicator, you acknowledge that you have read, understood, and agree to this disclaimer. If you do not agree with any part of this disclaimer, you should not use this indicator.
RMBS Smart Detector - Multi-Factor Momentum System v2# RMBS Smart Detector - Multi-Factor Momentum System
## Overview
RMBS (Smart Detector - Multi-Factor Momentum System) is a proprietary scoring method developed by Ario, combining normalized RSI and Bollinger band positioning into a single composite metric.
---
## Core Methodology
### Buy/Sell Logic
Marker (green or red )appear when **all four filters** pass:
**1. RMBS Score (Momentum Strength)**
From the formula Bellow
Combined Range: -10 (extreme bearish) to +10 (extreme bullish)
Signal Thresholds:
• BUY: Score > +3.0
• SELL: Score < -3.0
2. EMA Trend Filter
BUY: EMA(21) > EMA(55) → Uptrend confirmed
SELL: EMA(21) < EMA(55) → Downtrend confirmed
3. ADX Strength Filter
Minimum ADX: 25 (adjustable 20-30)
ADX > 25: Trending market → Signal allowed
ADX < 25: Range-bound → Signal blocked
4. Alternating Logic
Prevents signal spam by requiring alternation:
✓ BUY → SELL → BUY (allowed)
✗ BUY → BUY → BUY (blocked)
________________________________________
Mathematical Foundation
RMBS Formula: scoring method developed by Ario
RMBS = (RSI – 50) / 10 + ((BB_pos – 50) / 10)
where:
• RSI = Relative Strength Index (close, L)
• BB_pos = (Close – (SMA – 2 σ)) / ((SMA + 2 σ) – (SMA – 2 σ)) × 100
• σ = standard deviation of close over lookback L
• SMA = simple moving average of close over lookback L
• L = rmbs_length (period setting)
This produces a normalized composite score around zero:
• Positive → bullish momentum and upper band dominance
• Negative → bearish momentum and lower band pressure
• Near 0 → neutral or transitional zone
Input Parameters
ADX Threshold (default: 25)
• Lower (20-23): More signals, less filtering
• Higher (28-30): Fewer signals, stronger trends
• Recommended: 25 for balanced filtering
Signal Thresholds
• BUY: +3.0 (adjustable)
• SELL: -3.0 (adjustable)
Visual Options
• Marker colors
• Background highlights
• Alert settings
________________________________________
Usage Guidelines
How to Interpret
• 🟢 Green Marker: All conditions met for Bull condition
• 🔴 Red Marker: All conditions met for Bear condition
• No Marker: Waiting for confirmation
________________________________________
Important Disclaimers
⚠️ Educational Purpose Only
• This tool demonstrates multi-factor technical analysis concepts
• Not financial advice or trade recommendations
• No guarantee of profitability
⚠️ Known Limitations
• Less effective in ranging/choppy markets
• Requires proper risk management (stop-loss, position sizing)
• Should be combined with fundamental analysis
⚠️ Risk Warning
Trading involves substantial risk of loss. Past performance does not indicate future results. Always conduct your own research and consult professionals before trading.
________________________________________
Open Source
Full Pine Script code available for educational study and modification. Feedback and improvement suggestions welcome.
“All logic is presented for research and educational visualization.”
ADX Trend Color HistogramOverview:
This script provides a visually enhanced version of the classic Average Directional Index (ADX) indicator. Instead of a simple line, it plots the ADX as a histogram, making it easier to gauge trend strength at a glance. The key feature is its dynamic color-coding, which shifts based on the relationship between the Directional Indicators (DI+ and DI-), offering immediate insight into market momentum.
Features:
Histogram Style: The ADX value is presented as a histogram for clear, easy-to-read visualization of trend strength.
Dynamic Color-Coding: The histogram bars are colored green when DI+ is greater than DI-, indicating bullish momentum. They turn red when DI- is greater than DI+, signaling bearish momentum.
Customizable Transparency: The default color transparency is set to 80% (20% opacity) for a clean look that doesn't overpower the main chart, but this can be adjusted in the script's color settings.
Built-in Alerts: The script includes configurable alerts that trigger whenever the momentum shifts, i.e., when the color of the histogram changes from red to green or vice-versa. This allows you to stay notified of potential changes in trend direction without constantly watching the chart.
Clean and Simple: The code is well-structured and commented for clarity, making it easy for other PineScripters to understand or modify.
How to Use:
Assess Trend Strength: The height of the histogram bars represents the strength of the current trend. Higher bars suggest a stronger trend (either bullish or bearish), while lower bars indicate a weak or non-trending market.
Identify Momentum Direction: The color of the bars provides a quick guide to the direction of market momentum.
Green Bars: Indicate that the upward momentum is dominant.
Red Bars: Indicate that the downward momentum is dominant.
Use Alerts for Signals: Set up alerts in TradingView based on the "ADX Green" and "ADX Red" conditions to receive notifications for potential entry or exit signals when the momentum shifts. A change from red to green can signal a potential bullish reversal or continuation, while a change from green to red can signal a bearish one.
Ultimate Scalping IndicatorOverview
The Confluence Signal Indicator is a precision-built scalping tool designed to identify high-probability reversal points in the market.
It combines three core technical elements:
Trend
Mean reversion
Momentum
into a single, efficient system.
By filtering out weak RSI signals and focusing only on setups that align with trend direction and recent momentum shifts, this indicator delivers cleaner and more accurate short-term trade signals.
Core Components
200-Period Moving Average (MA200, 5-Minute Timeframe)
The MA200 is always calculated from the 5-minute chart, regardless of your current timeframe. It defines the macro trend direction and ensures that all trades align with the prevailing momentum.
Session VWAP (Volume-Weighted Average Price)
The VWAP tracks the real-time average price weighted by volume for the current trading session. It acts as a dynamic mean-reversion level and helps identify key areas of institutional activity and short-term balance.
RSI (Relative Strength Index)
The indicator uses a standard 14-period RSI to detect overbought and oversold market conditions.
A “recency filter” is added to ensure signals only appear when RSI has recently transitioned from strength to weakness or vice versa, reducing false signals in trending markets.
Signal Logic
Bullish Signal (Green Arrow)
A bullish reversal signal is plotted below a candle when:
Price is above both the 5-minute MA200 and the Session VWAP.
RSI is oversold (below 30).
The last time RSI was above 50 occurred within the last 10 candles before going oversold.
This ensures that the dip is a fresh pullback within an uptrend, not a prolonged oversold condition.
Bearish Signal (Red Arrow)
A bearish reversal signal is plotted above a candle when:
Price is below both the 5-minute MA200 and the Session VWAP.
RSI is overbought (above 70).
The last time RSI was below 50 occurred within the last 10 candles before going overbought.
This ensures that the overbought reading follows a recent move from weakness, identifying potential short entries in a downtrend.
Recommended Usage
This is a scalping-focused indicator, intended for use on timeframes of 5 minutes or lower. Therefore I would highly recommend to use it on Equity futures trading, such as NQ!, ES!, GC! and so on.
It performs best when combined with additional tools such as support and resistance zones, order blocks, or liquidity levels for context.
Avoid counter-trend signals unless confirmed by price structure or volume behavior.
Ornstein-Uhlenbeck Trend Channel [BOSWaves]Ornstein-Uhlenbeck Trend Channel - Adaptive Mean Reversion with Dynamic Equilibrium Geometry
Overview
The Ornstein-Uhlenbeck Trend Channel introduces an advanced equilibrium-mapping framework that blends statistical mean reversion with adaptive trend geometry. Traditional channels and regression bands react linearly to volatility, often failing to capture the natural rhythm of price equilibrium. This model evolves that concept through a dynamic reversion engine, where equilibrium adapts continuously to volatility, trend slope, and structural bias - forming a living channel that bends, expands, and contracts in real time.
The result is a smooth, equilibrium-driven representation of market balance - not just trend direction. Instead of static bands or abrupt slope shifts, traders see fluid, volatility-aware motion that mirrors the natural pull-and-release dynamic of market behavior. Each channel visualizes the probabilistic boundaries of fair value, showing where price tends to revert and where it accelerates away from its statistical mean.
Unlike conventional envelopes or Bollinger-type constructs, the Ornstein-Uhlenbeck framework is volatility-reactive and equilibrium-sensitive, providing traders with a contextual map of where price is likely to stabilize, extend, or exhaust.
Theoretical Foundation
The Ornstein-Uhlenbeck Trend Channel is inspired by stochastic mean-reversion processes - mathematical models used to describe systems that oscillate around a drifting equilibrium. While linear regression channels assume constant variance, financial markets operate under variable volatility and shifting equilibrium points. The OU process accounts for this by treating price as a mean-seeking motion governed by volatility and trend persistence.
At its core are three interacting components:
Equilibrium Mean (μ) : Represents the evolving balance point of price, adjusting to directional bias and volatility.
Reversion Rate (θ) : Defines how strongly price is pulled back toward equilibrium after deviation, capturing the self-correcting nature of market structure.
Volatility Coefficient (σ) : Controls how far and how quickly price can diverge from equilibrium before mean reversion pressure increases.
By embedding this stochastic model inside a volatility-adjusted framework, the system accurately scales across different markets and conditions - maintaining meaningful equilibrium geometry across crypto, forex, indices, or commodities. This design gives traders a mathematically grounded yet visually intuitive interpretation of dynamic balance in live market motion.
How It Works
The Ornstein-Uhlenbeck Trend Channel is constructed through a structured multi-stage process that merges stochastic logic with volatility mechanics:
Equilibrium Estimation Core : The indicator begins by identifying the evolving mean using adaptive smoothing influenced by trend direction and volatility. This becomes the live centerline - the statistical anchor around which price naturally oscillates.
Volatility Normalization Layer : ATR or rolling deviation is used to calculate volatility intensity. The output scales the channel width dynamically, ensuring that boundaries reflect current variance rather than static thresholds.
Directional Bias Engine : EMA slope and trend confirmation logic determine whether equilibrium should tilt upward or downward. This creates asymmetrical channel motion that bends with the prevailing trend rather than staying horizontal.
Channel Boundary Construction : Upper and lower bands are plotted at volatility-proportional distances from the mean. These envelopes form the “statistical pressure zones” that indicate where mean reversion or acceleration may occur.
Signal and Lifecycle Control : Channel breaches, mean crossovers, and slope flips mark statistically significant events - exhaustion, continuation, or rebalancing. Older equilibrium zones gradually fade, ensuring a clear, context-aware visual field.
Through these layers, the channel forms a continuously updating equilibrium corridor that adapts in real time - breathing with the market’s volatility and rhythm.
Interpretation
The Ornstein-Uhlenbeck Trend Channel reframes how traders interpret balance and momentum. Instead of viewing price as directional movement alone, it visualizes the constant tension between trending force and equilibrium pull.
Uptrend Phases : The equilibrium mean tilts upward, with price oscillating around or slightly above the midline. Upper band touches signal momentum extension; lower touches reflect healthy reversion.
Downtrend Phases : The mean slopes downward, with upper-band interactions marking resistance zones and lower bands acting as reversion boundaries.
Equilibrium Transitions : Flat mean sections indicate balance or distribution phases. Breaks from these neutral zones often precede directional expansion.
Overextension Events : When price closes beyond an outer boundary, it marks statistically significant disequilibrium - an early warning of exhaustion or volatility reset.
Visually, the OU channel translates volatility and equilibrium into structured geometry, giving traders a statistical lens on trend quality, reversion probability, and volatility stress points.
Strategy Integration
The Ornstein-Uhlenbeck Trend Channel integrates seamlessly into both mean-reversion and trend-continuation systems:
Trend Alignment : Use mean slope direction to confirm higher-timeframe bias before entering continuation setups.
Reversion Entries : Target rejections from outer bands when supported by volume or divergence, capturing snapbacks toward equilibrium.
Volatility Breakout Mapping : Monitor boundary expansions to identify transition from compression to expansion phases.
Liquidity Zone Confirmation : Combine with BOS or order-block indicators to validate structural zones against equilibrium positioning.
Momentum Filtering : Align with oscillators or volume profiles to isolate equilibrium-based pullbacks with statistical context.
Technical Implementation Details
Core Engine : Stochastic Ornstein-Uhlenbeck process for continuous mean recalibration.
Volatility Framework : ATR- and deviation-based scaling for dynamic channel expansion.
Directional Logic : EMA-slope driven bias for adaptive mean tilt.
Channel Composition : Independent upper and lower envelopes with smoothing and transparency control.
Signal Structure : Alerts for mean crossovers and boundary breaches.
Performance Profile : Lightweight, multi-timeframe compatible implementation optimized for real-time responsiveness.
Optimal Application Parameters
Timeframe Guidance:
1 - 5 min : Reactive equilibrium tracking for short-term scalping and microstructure analysis.
15 - 60 min : Medium-range setups for volatility-phase transitions and intraday structure.
4H - Daily : Macro equilibrium mapping for identifying exhaustion, distribution, or reaccumulation zones.
Suggested Configuration:
Mean Length : 20 - 50
Volatility Multiplier : 1.5× - 2.5×
Reversion Sensitivity : 0.4 - 0.8
Smoothing : 2 - 5
Parameter tuning should reflect asset liquidity, volatility, and desired reversion frequency.
Performance Characteristics
High Effectiveness:
Trending environments with cyclical pullbacks and volatility oscillation.
Markets exhibiting consistent equilibrium-return behavior (indices, majors, high-cap crypto).
Reduced Effectiveness:
Low-volatility consolidations with minimal variance.
Random walk markets lacking definable equilibrium anchors.
Integration Guidelines
Confluence Framework : Pair with BOSWaves structural tools or momentum oscillators for context validation.
Directional Control : Follow mean slope alignment for directional conviction before acting on channel extremes.
Risk Calibration : Use outer band violations for controlled contrarian entries or trailing stop management.
Multi-Timeframe Synergy : Derive macro equilibrium zones on higher timeframes and refine entries on lower levels.
Disclaimer
The Ornstein-Uhlenbeck Trend Channel is a professional-grade equilibrium and volatility framework. It is not predictive or profit-assured; performance depends on parameter calibration, volatility regime, and disciplined execution. BOSWaves recommends using it as part of a comprehensive analytical stack combining structure, liquidity, and momentum context.






















