π Pi-MA Bandπ Pi-MA Band – Parametric Moving Averages with π Scaling
The π Pi-MA Band is a custom moving average indicator that applies the mathematical constant π (3.14159) as a multiplier to traditional moving average lengths, offering a unique perspective on market smoothing and trend detection.
🔍 Core Features:
Three Dynamic MAs: Includes a Fast, Slow, and Long moving average, each with customizable base lengths and types (EMA, SMA, WMA, HMA, RMA, VWMA, DEMA, TEMA).
π-Based Lengths: Each MA length is automatically scaled by π to align with cyclical and fractal market behavior.
Color Adaptive Bands:
The fast/slow band dynamically changes color based on trend direction (green when fast > slow, red when fast < slow).
A secondary fill highlights when both fast and slow MAs are positioned above or below the long-term MA, indicating strong bullish or bearish alignment.
Visual Clarity: Distinct line thickness and color coding for fast, slow, and long MAs make it easy to assess momentum and trend shifts.
Alerts: Built-in alert conditions notify you of key crossover events between the fast and slow MAs.
📈 Use Cases:
Trend Confirmation: Use the alignment of all three MAs to validate bullish or bearish market conditions.
Momentum Shift Detection: Crossover alerts help traders identify emerging trends early.
Customization: Suitable for scalpers, swing traders, and long-term investors due to adjustable lengths and MA types.
Simple Moving Average (SMA)
SMA ExtensionsThe SMA Extensions indicator overlays a 200-period Simple Moving Average (SMA) along with its extensions (1.5x, 2x, 2.5x, and 3x) on the price chart. This setup helps traders identify price zones relative to the SMA.
Key Features:
Customizable Settings: Users can adjust the SMA source, length, and colors (default colors: blue, green, yellow, orange, red).
Clear Zone Visualization: The indicator plots each extension as a line, with transparent colored fills between them and below the SMA, visually highlighting price zones.
Dynamic Labels: Labels such as "Very Cheap," "Cheap," "Fair Value," "Expensive," and "Very Expensive" appear only on the last bar. These labels are slightly right-shifted and match the line colors for clarity.
How to Use:
Use the color-coded zones to assess whether prices are undervalued or overvalued relative to the SMA.
Adjust the SMA settings to suit different assets or timeframes.
This indicator is designed to provide a clear visual representation of price levels in relation to a standard SMA, making it a versatile tool for both novice and experienced traders.
50 & 200 SMA Death CrossSimple 50 and 200 Simple Moving Average Script with customizations. You can use these on the Daily Timeframe to confirm the "Death Cross" when trading Bitcoin. Right before the "Death Cross" happens the price usually dumps, and Right as they cross the price usually pumps. (Bitcoin must be in a bull market already)
Created by: Dan Heilman
Pucci Trend EMA-SMA Crossover with TolerancePucci Trend EMA-SMA Crossover with Tolerance
This indicator helps identify market trends and generates trading signals based on the crossover between an Exponential Moving Average (EMA) and a Simple Moving Average (SMA) with an adjustable tolerance threshold. The signals work as follows:
Buy Signal (B) -> Triggers when the EMA crosses above the SMA, exceeding a user-defined tolerance (in basis points). Optionally, a price filter can require the high or low to be below the EMA for confirmation.
Sell Signal (S) -> Triggers when the SMA crosses above the EMA, exceeding the tolerance. The optional price filter may require the high or low to be above the EMA.
The tolerance helps reduce false signals by requiring a minimum distance between the moving averages before confirming a crossover. The price filter adds an extra confirmation layer by checking if price action respects the EMA level.
Important Notes:
1º No profitability guarantee: This tool is for analysis only and may generate losses.
2º "As Is" disclaimer: Provided without warranties or responsibility for trading outcomes.
3º Use Stop Loss: Users must determine their own risk management.
4º Parameter adjustment needed: Optimal MA periods and tolerance vary by timeframe.
5º Filter impact varies: Enabling/disabling the price filter may improve or worsen performance.
RSI/SR/Trend Signals by Fliux v1.1RSI/SR/Trend Signals by Fliux v1.1 is a lightweight yet highly customizable overlay indicator that combines three classic techniques into one seamless tool:
RSI Triggers
BUY when RSI exits the oversold zone (default 40)
SELL when RSI enters the overbought zone (default 60)
Dynamic Support & Resistance
Draws recent highs/lows over a look-back period (default 14 bars)
Optional proximity filter enforces “touch” conditions as a percentage of the S/R range
Trend Filter
Uses an SMA (default period 50) to only allow signals in the direction of the prevailing trend
Key Features & Inputs:
Adjustable RSI length and thresholds
Configurable S/R length and proximity sensitivity
Optional trend filtering via SMA
Toggleable BUY/SELL arrows and an overlay of RSI levels
Fully controllable through intuitive inputs—no code edits required
This indicator is perfect for spotting momentum reversals and price retests of key levels, all while remaining simple to tune and deploy across any market.
Trend Catcher SwiftEdgeTrend Catcher SwiftEdge
Overview
The Trend Catcher SwiftEdge is a simple yet effective tool designed to help traders identify potential trend directions using two Simple Moving Averages (SMAs). It plots two SMAs based on the high and low prices of the chart, visually highlights trend conditions, and provides buy/sell labels to assist with trade entries. This indicator is best used as part of a broader trading strategy and should not be relied upon as a standalone signal generator.
How It Works
Two SMAs: The indicator calculates two SMAs: one based on the lowest price (Low) and one based on the highest price (High) over a user-defined period (default: 20).
Dynamic Colors:
Green: When the price is above both SMAs (indicating a potential uptrend).
Red: When the price is below both SMAs (indicating a potential downtrend).
Purple: When the price is between the SMAs (indicating consolidation).
The SMAs and the background between them change color dynamically to reflect the current trend condition.
Buy/Sell Labels:
A "Buy" label appears when an entire candlestick (including its low) crosses above both SMAs, marking the start of a potential uptrend.
A "Sell" label appears when an entire candlestick (including its high) crosses below both SMAs, marking the start of a potential downtrend.
To reduce noise, only one label is shown per trend direction. The indicator resets when the price enters the consolidation zone (purple), allowing for a new signal when the next trend begins.
Settings
SMA Length: Adjust the period of the SMAs (default: 20). A longer period smooths the SMAs and focuses on larger trends, while a shorter period makes the indicator more sensitive to price changes.
How to Use
Add the indicator to your chart.
Look for "Buy" labels to consider potential long entries during uptrends (green zone).
Look for "Sell" labels to consider potential short entries during downtrends (red zone).
Use the purple consolidation zone to prepare for potential breakouts.
Always combine this indicator with other forms of analysis (e.g., support/resistance, volume, or other indicators) to confirm signals.
Important Notes
This indicator is a tool to assist with identifying trend directions and potential entry points. It does not guarantee profits and should be used as part of a comprehensive trading strategy.
False signals can occur, especially in choppy or ranging markets. Consider using additional filters or confirmations to improve reliability.
Backtest the indicator on your chosen market and timeframe to understand its behavior before using it in live trading.
Feedback
If you have suggestions or feedback, feel free to leave a comment. Happy trading!
Log($/SMA) v2.0.1Purpose
Most great TA indicators are simple and easy to understand. E.g. RSI, Bollinger Bands, MACD, etc.
This gives a super-simple yet remarkably useful trailing signal. Use it in conjunction with other signals of course.
Copyright
Copyright © 2021-2025 t00mietum (aka TradingView’s “NeanderTraderBC”).
License
This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
Simple Moving Averages 68 & 274Double Simple Moving Average (default 68 & 274) with customizable timeframe (default 45 min)
Dva_GusyaWhat it does
• Designed only for Bitcoin on the daily chart.
• Plots a simple moving average (SMA) and two parallel “buy-zone” levels beneath it.
• Generates two scale-in entries:
• Entry #1 – when price touches or falls below the first offset.
• Entry #2 – when price touches or falls below the second offset (adds to the existing long).
• Position size is split 50 % / 50 % by default.
• All core parameters (SMA length, offsets, sizing) remain editable in the Settings panel.
Market SurferOverview
If you're ready to surf the charts, Market Surfer is your perfect board 🏄♂️
This is my personal go-to indicator, designed to be a true Swiss Army knife for technical analysis - packed with powerful tools that deliver clear signals straight out of the box.
Market Surfer is heavily inspired by Market Cipher and Traders Reality .
Key Features
Market Waves : Visual representation of cyclical price movements to identify trend strength and potential reversals.
Money Flow : Highlights periods of buying and selling pressure, signaling shifts in market sentiment.
Trend Tracker : Real-time trend detection powered by EMA-based analysis, with color-coded signals for bullish and bearish phases.
Vector Candles : Enhanced candle coloring that indicates when market makers and high-frequency traders join the game, helping to identify significant market moves.
Dynamic Alerts : Configurable alerts for key market events, including trend changes, money flow transitions, and vector candle formations.
How It Works
Wave Theory Analysis : Detects cyclical market movements to highlight potential trend continuations or reversals.
PVSRA Analysis : Identifies vector candles when volume surges significantly relative to historical averages, indicating the presence of large institutional players.
EMA Trend Tracking : Tracks the 50-period EMA to determine overall market momentum and colorizes bars accordingly.
Money Flow Indexing : Uses Heikin-Ashi candle structures to measure buying and selling intensity over time.
Recommendations
Although Market Surfer is versatile and works across all markets and timeframes, I recommend:
Use it on 1H timeframe for mid-term trades and 1D timeframe for long-term ones.
Buy when green and sell when red - keep it simple.
Study vector candles before relying on them - they reveal institutional footprints.
Do not use leverage - trade with clarity and peace of mind.
And most importantly - sleep well.
Best SMA FinderThis script, Best SMA Finder, is a tool designed to identify the most robust simple moving average (SMA) length for a given chart, based on historical backtest performance. It evaluates hundreds of SMA values (from 10 to 1000) and selects the one that provides the best balance between profitability, consistency, and trade frequency.
What it does:
The script performs individual backtests for each SMA length using either "Long Only" or "Buy & Sell" logic, as selected by the user. For each tested SMA, it computes:
- Total number of trades
- Profit Factor (total profits / total losses)
- Win Rate
- A composite Robustness Score, which integrates Profit Factor, number of trades (log-scaled), and win rate.
Only SMA configurations that meet the user-defined minimum trade count are considered valid. Among all valid candidates, the script selects the SMA length with the highest robustness score and plots it on the chart.
How to use it:
- Choose the strategy type: "Long Only" or "Buy & Sell"
- Set the minimum trade count to filter out statistically irrelevant results
- Enable or disable the summary stats table (default: enabled)
The selected optimal SMA is plotted on the chart in blue. The optional table in the top-right corner shows the corresponding SMA length, trade count, Profit Factor, Win Rate, and Robustness Score for transparency.
Key Features:
- Exhaustive SMA optimization across 991 values
- Customizable trade direction and minimum trade filters
- In-chart visualization of results via table and plotted optimal SMA
- Uses a custom robustness formula to rank SMA lengths
Use cases:
Ideal for traders who want to backtest and auto-select a historically effective SMA without manual trial-and-error. Useful for swing and trend-following strategies across different timeframes.
📌 Limitations:
- Not a full trading strategy with position sizing or stop-loss logic
- Only one entry per direction at a time is allowed
- Designed for exploration and optimization, not as a ready-to-trade system
This script is open-source and built entirely from original code and logic. It does not replicate any closed-source script or reuse significant external open-source components.
MBODDS GLOBAL - Enhanceden
MBODDS GLOBAL Indicator – Detailed Interpretation
What does the indicator measure?
Liquidity preferences
Credit risk perception
Market stress levels
Interpreting the ODDS Value
ODDS Value Explanation
Positive ODDS (> 0) SOFR is higher than the T-Bill rate → Interbank liquidity is more expensive → Possible financial stress.
Negative ODDS (< 0) T-Bill rates are higher than SOFR → The government pays more interest in the short term → Liquidity abundance, normal market conditions.
ODDS ≈ 0 Neutral market state → Low stress, market is stable.
Z-Score Interpretation (Extremity Analysis)
The Z-Score measures the standard deviation of ODDS, detecting extreme values:
Z-Score Meaning
> +1.0 Spread is unusually high → Stress/crisis risk increases.
< -1.0 Spread is unusually low → Liquidity could be abundant.
> +2.0 Extremely high spread → Systemic risk (observed during 2008-2020 periods).
≈ 0 Average level → Normal conditions, no notable risk.
The Z-Score functions as an "anomaly detector" for this indicator.
SMA (Simple Moving Average) Interpretation
The 21-day SMA shows the trend of ODDS:
ODDS consistently above SMA: Rising stress and credit costs.
ODDS consistently below SMA: Easier liquidity and lower market concerns.
Threshold Bands (±0.5)
These thresholds are visual guides for alerts:
ODDS > +0.5: Rising stress, potential liquidity tightening → Risky environment.
ODDS < -0.5: Low spread → Abundant liquidity, low stress → Comfortable environment.
Use Cases
Macro analysis (especially after Fed policy changes)
Direction determination in bond, equity, or credit markets
Early signal for stressful periods
Predicting liquidity crises
Conclusion:
This indicator acts as a macro-based "silent alarm." Specifically:
SOFR > T-Bill and Z-Score > 1: Stress and risk are increasing, protection strategies should be considered.
T-Bill > SOFR and Z-Score < -1: Liquidity is abundant, risk appetite may rise.
TrendCraft ICT SwiftEdge// The TrendCraft ICT SwiftEdge is a trend-following indicator that combines Simple Moving Averages (SMAs) with Inner Circle Trader (ICT) concepts, specifically Break of Structure (BOS) and Market Structure Shift (MSS), to generate precise buy and sell signals. This unique mashup leverages the strengths of trend confirmation through SMAs and market structure analysis via ICT to help traders identify high-probability trend entries. The indicator is designed to be intuitive, customizable, and suitable for traders of all levels seeking to align with market trends on various timeframes.
//
// ### What It Does
// The indicator plots two SMAs based on the high and low prices of candles to define the trend direction. It colors the SMAs and fills the area between them to visually indicate whether the price is in a bullish (above both SMAs), bearish (below both SMAs), or neutral (between SMAs) state. Simultaneously, it identifies BOS and MSS levels on a user-defined higher timeframe to confirm trend continuation or reversal points. Buy and sell signals are generated when the price closes above/below the latest BOS or MSS level (based on user preference) while also being correctly positioned relative to the SMAs, ensuring alignment with the trend.
//
// ### Why Combine SMAs and ICT?
// SMAs provide a reliable way to gauge trend direction by smoothing price data, but they can lag or generate false signals in choppy markets. ICT's BOS and MSS concepts address this by focusing on key market structure breaks, offering context for significant price movements. By requiring price to close beyond a BOS or MSS level and align with the SMA-defined trend, the TrendCraft ICT SwiftEdge filters out noise and enhances signal reliability. This combination creates a robust system that balances trend-following simplicity with structural market insights, making it ideal for trend traders.
//
// ### How to Use
// 1. **SMA Length**: Adjust the `SMA Length` (default: 20) to control the sensitivity of the SMAs. Shorter lengths react faster to price changes, while longer lengths provide smoother trends.
// 2. **Structure Timeframe**: Set the `Structure Timeframe` to a higher timeframe (e.g., "1H" on a 15M chart) to calculate BOS and MSS levels. This ensures structural signals are based on significant market moves.
// 3. **Chart Timeframe**: Select the `Chart Timeframe` to optimize pivot point calculations for your current chart (e.g., "30M" for a 30-minute chart).
// 4. **Signal Type**: Choose between "BOS" (default) for signals based on trend continuation breaks or "MSS" for signals based on potential reversal points (breakers).
// 5. **Display Options**: Enable/disable `Show Continuation (BOS)` and `Show Breaker (MSS)` to toggle the visibility of BOS and MSS lines. Customize their colors for better chart clarity.
//
// ### Signals
// - **Buy Signal**: Appears when the close price crosses above the latest BOS or MSS level (based on Signal Type) and is above both SMAs, indicating a bullish trend entry. Marked with a green "Buy" label.
// - **Sell Signal**: Appears when the close price crosses below the latest BOS or MSS level (based on Signal Type) and is below both SMAs, indicating a bearish trend entry. Marked with a red "Sell" label.
//
// ### Originality
// The TrendCraft ICT SwiftEdge stands out by integrating the trend-following reliability of SMAs with the structural precision of ICT's BOS and MSS. Unlike standalone SMA or ICT indicators, this script requires both trend alignment and structural confirmation, reducing false signals. The user-selectable Signal Type (BOS or MSS) adds versatility, allowing traders to adapt the indicator to trend-following or counter-trend strategies. Its dynamic timeframe adjustments and visual clarity make it a unique tool for traders seeking to capture trend entries with confidence.
//
// ### Notes
// - Ensure the `Structure Timeframe` is higher than your chart timeframe to avoid calculation issues.
// - Signals are generated only when the trend state changes to avoid redundant signals in the same trend direction.
// - Past performance is not indicative of future results. Always combine this indicator with other analysis and risk management techniques.
Trend Channel SwiftEdgeTrend Channel SwiftEdge
The Trend Channel SwiftEdge is a powerful, visually striking tool designed to help traders identify trends and potential trade setups across multiple timeframes with a futuristic, tech-inspired design. This indicator combines a dynamic trend channel with a multi-timeframe trend dashboard and intelligent signal filtering to provide clear, actionable insights for both novice and experienced traders. Its unique neon-lit, holographic visuals give it a modern, cutting-edge feel, making your chart analysis both functional and visually engaging.
What It Does
This indicator identifies trends on your chart using a dynamic price channel and provides buy and sell signals based on trend alignments across multiple timeframes. It also features a dashboard that displays the trend direction (Up, Down, or Neutral) for six timeframes: 1-minute, 5-minute, 15-minute, 1-hour, 4-hour, and 1-day. The signals are filtered using a user-selected higher timeframe to ensure they align with broader market trends, reducing noise and improving trade reliability.
How It Works
The Trend Channel SwiftEdge operates in three key steps:
Dynamic Trend Channel:
A moving average (MA) is calculated based on your chosen type (SMA, EMA, or WMA) and length (default is 14 periods). This MA forms the backbone of the trend channel.
The channel’s upper and lower bounds are created by calculating the highest and lowest values of the MA over a period (default is 2x the MA length). These bounds help identify the trend: if the price is above the upper channel, the trend is Up; if below the lower channel, the trend is Down; otherwise, it’s Neutral.
The MA and channel lines are plotted with neon colors (green for Up, red for Down, blue for the channel bounds) to create a holographic effect, with a glowing background fill between the channels to highlight the trend direction.
Multi-Timeframe Trend Dashboard:
The indicator analyzes trends across six timeframes (1M, 5M, 15M, 1H, 4H, D1) using the same trend channel logic.
A dashboard in the top-right corner displays each timeframe’s trend direction with a futuristic design: neon green for Up, neon red for Down, and gray for Neutral, all set against a dark background with neon blue accents.
Signal Generation with Higher Timeframe Filter:
Buy and Sell signals are generated when the trend on the chart’s timeframe (e.g., 1M) aligns with a user-selected higher timeframe (e.g., 15M).
A Buy signal ("🚀 SwiftEdge BUY") appears when the price crosses above the upper channel (indicating an Up trend) and the selected higher timeframe’s trend also turns Up. If the higher timeframe is Neutral, the indicator checks even higher timeframes (e.g., 1H and 4H for a 15M filter) to confirm the trend direction.
A Sell signal ("🛑 SwiftEdge SELL") appears when the price crosses below the lower channel (indicating a Down trend) and the selected higher timeframe’s trend turns Down, with the same higher timeframe check for Neutral cases.
Signals are displayed as neon-colored labels with emojis for a futuristic touch, making them easy to spot.
Why This Combination?
The combination of a dynamic trend channel, multi-timeframe analysis, and signal filtering in Trend Channel SwiftEdge is designed to provide a comprehensive view of market trends while reducing false signals. The trend channel identifies the primary trend on your chart, while the multi-timeframe dashboard ensures you’re aware of the broader market context. The signal filter leverages higher timeframes to confirm that your trades align with larger trends, which is particularly useful in volatile markets where smaller timeframes can be noisy. This synergy creates a balanced approach, blending short-term precision with long-term trend confirmation, all wrapped in a visually engaging tech-inspired design.
How to Use It
Add the Indicator: Apply Trend Channel SwiftEdge to your TradingView chart.
Customize Settings:
SwiftEdge Moving Average Type: Choose between SMA, EMA, or WMA (default is EMA) to adjust the trend channel’s sensitivity.
SwiftEdge MA Length: Set the period for the moving average (default is 14).
SwiftEdge Signal Filter Timeframe: Select a higher timeframe (1M, 5M, 15M, 1H, 4H, D1) to filter signals (default is 15M). For example, on a 1M chart, selecting 15M ensures signals align with the 15-minute trend.
Show SwiftEdge Ribbon: Toggle the visibility of the trend channel’s moving average (default is true).
Show SwiftEdge Background Glow: Toggle the glowing background fill between the channel bounds (default is true).
Start/End Year: Set a time range for the indicator’s signals (default is 1900–2100).
Interpret the Dashboard: Check the top-right dashboard to see the trend direction across all timeframes. Use this to understand the broader market context.
Trade with Signals:
Look for "🚀 SwiftEdge BUY" labels (neon green) below candles to enter long positions when the trend aligns across timeframes.
Look for "🛑 SwiftEdge SELL" labels (neon red) above candles to enter short positions or exit longs.
Ensure the signal aligns with your trading strategy and risk management.
What Makes It Original?
Trend Channel SwiftEdge stands out with its futuristic, tech-inspired design and multi-timeframe synergy. Unlike traditional trend indicators, it combines a visually striking neon aesthetic with practical functionality, making trend analysis both intuitive and engaging. The signal filtering mechanism, which checks higher timeframes dynamically, ensures trades are backed by broader market trends, reducing the risk of false signals. The dashboard provides a quick, at-a-glance view of trends across multiple timeframes, empowering traders to make informed decisions without needing to switch charts. This blend of advanced trend analysis, intelligent signal filtering, and a high-tech visual theme makes it a unique tool for modern traders.
Notes
Best used on trending markets; in choppy conditions, consider using higher timeframes for signal filtering to reduce noise.
Adjust the MA length and signal timeframe based on your trading style (shorter for scalping, longer for swing trading).
Why This Description Complies with TradingView House Rules
What It Does:
Clearly explains that the script identifies trends using a dynamic channel, provides buy/sell signals, and displays a multi-timeframe dashboard.
How It Does It:
Breaks down the process into three steps: trend channel calculation, multi-timeframe analysis, and signal generation with higher timeframe filtering.
Explains the logic (e.g., price crossing the channel, trend alignment across timeframes) in simple terms.
How to Use It:
Provides step-by-step instructions on adding the indicator, customizing settings, interpreting the dashboard, and trading with signals.
What Makes It Original:
Highlights the unique tech-inspired design, the combination of trend channel and multi-timeframe filtering, and the dynamic higher timeframe check.
Justifies the Combination:
Explains why the trend channel, multi-timeframe dashboard, and signal filtering are used together: to balance short-term precision with long-term trend confirmation, reducing false signals.
Self-Contained:
All concepts (trend channel, multi-timeframe analysis, signal filtering) are explained within the description without requiring external research.
Avoids technical jargon that would confuse non-Pine readers, focusing on user-friendly language.
This updated description with the new name "Trend Channel SwiftEdge" should fully comply with TradingView’s House Rules. If you need further adjustments, let me know!
Chandelier Exit with ZLSMA SwiftEdgeChandelier Exit with ZLSMA
Overview
The "Chandelier Exit with ZLSMA" indicator is a powerful trading tool designed to identify trend reversals and high-probability entry points in financial markets. By combining the volatility-based Chandelier Exit with the low-lag Zero Lag Least Squares Moving Average (ZLSMA), this indicator provides clear Buy and Sell signals, enhanced with a unique signal strength score to help traders prioritize high-quality opportunities. Visual enhancements, including dynamic color coding, background highlights, and trend arrows, make it intuitive and visually appealing for both novice and experienced traders.
What It Does
This indicator generates Buy and Sell signals when a trend reversal is detected by the Chandelier Exit, but only if the price crosses the ZLSMA for the first time in the direction of the trend. Each signal is accompanied by a percentage score (0-100%) that measures its strength based on price movement and momentum. The indicator overlays directly on the price chart, displaying:
Buy/Sell labels with signal strength (e.g., "Buy (85%)").
A ZLSMA line that changes color (green for bullish, red for bearish) to indicate trend direction.
Background highlights to mark signal candles.
Trend arrows to visually confirm signal points.
How It Works
The indicator combines two complementary components:
Chandelier Exit:
Uses the Average True Range (ATR) to create dynamic trailing stop levels (long_stop and short_stop) that adapt to market volatility.
Signals a Buy when the price crosses above the short stop (indicating a potential uptrend) and a Sell when it crosses below the long stop (indicating a potential downtrend).
Default settings use an ATR period of 1 and a multiplier of 2.0 for high sensitivity to short-term price movements.
Zero Lag LSMA (ZLSMA):
A low-lag moving average based on linear regression, designed to reduce delay compared to traditional moving averages.
Acts as a trend filter: Buy signals are only generated when the price closes above ZLSMA for the first time, and Sell signals when it closes below for the first time.
Default length of 50 balances smoothness with responsiveness.
Signal Strength Score:
Each signal is assigned a score (0-100%) based on:
Distance to ZLSMA (60% weight): How far the price is from ZLSMA, normalized by ATR. Larger distances indicate stronger breakouts.
Candlestick size (40% weight): The size of the signal candle, normalized by ATR. Larger candles suggest stronger momentum.
A high score (e.g., >80%) indicates a robust signal, while a low score (e.g., <50%) suggests caution.
Visual Features:
The ZLSMA line changes color (green for bullish, red for bearish) to reflect the trend.
Signal candles are highlighted with a subtle green (Buy) or red (Sell) background.
Tiny triangular arrows appear below Buy signals and above Sell signals for clear visual confirmation.
Why Combine Chandelier Exit and ZLSMA?
The Chandelier Exit excels at identifying trend reversals through volatility-based stops, but it can generate false signals in choppy markets due to its sensitivity (especially with a short ATR period of 1). The ZLSMA addresses this by acting as a trend filter, ensuring signals are only triggered when the price confirms a trend by crossing the ZLSMA for the first time. This combination reduces noise and focuses on high-probability setups. The signal strength score further enhances decision-making by quantifying the conviction behind each signal, making the indicator feel intuitive and "smart."
How to Use
Setup:
Add the indicator to your chart in TradingView.
Adjust inputs in the settings panel:
ATR Period (default: 1): Controls the sensitivity of Chandelier Exit. Increase for smoother signals.
ATR Multiplier (default: 2.0): Sets the distance of stop levels from price extremes.
ZLSMA Length (default: 50): Adjusts the smoothness of the ZLSMA line. Shorter lengths (e.g., 20-30) are more responsive; longer lengths (e.g., 50-100) are smoother.
Use Close Price for Extremums (default: true): Determines whether Chandelier Exit uses closing prices or high/low prices for calculations.
Interpreting Signals:
Buy Signal: A green "Buy (X%)" label appears below a candle when the price crosses above the Chandelier Exit short stop and closes above ZLSMA for the first time. The percentage indicates signal strength (higher = stronger).
Sell Signal: A red "Sell (X%)" label appears above a candle when the price crosses below the Chandelier Exit long stop and closes below ZLSMA for the first time.
Use the ZLSMA line’s color (green for bullish, red for bearish) to confirm the overall trend.
Prioritize signals with high strength scores (e.g., >70%) for better reliability.
Trading Considerations:
Combine signals with other analysis (e.g., support/resistance, volume) for confirmation.
Test the indicator on a demo account or use TradingView’s Strategy Tester to evaluate performance.
Be cautious with the default ATR period of 1, as it is highly sensitive and may generate frequent signals in volatile markets.
What Makes It Unique
This indicator stands out due to its thoughtful integration of Chandelier Exit and ZLSMA, creating a synergy that balances sensitivity with reliability. The first-cross filter ensures signals are triggered only at the start of potential trends, reducing false positives. The signal strength score adds a layer of intelligence, helping traders assess the quality of each signal without needing external tools. Visual enhancements, such as dynamic ZLSMA coloring, background highlights, and trend arrows, make the indicator user-friendly and visually engaging, appealing to traders seeking a modern, intuitive tool.
Limitations and Notes
The short ATR period (1) makes the indicator highly sensitive, which suits short-term traders but may produce noise in sideways markets. Increase the ATR period for smoother signals.
The signal strength score is a heuristic based on price movement and momentum, not a predictive model. Use it as a guide, not a definitive predictor.
Always backtest the indicator on your preferred market and timeframe to ensure it aligns with your trading strategy.
MA Crossover [AlchimistOfCrypto]🌌 MA Crossover Quantum – Illuminating Market Harmonic Patterns 🌌
Category: Trend Analysis Indicators 📈
"The moving average crossover, reinterpreted through quantum field principles, visualizes the underlying resonance structures of price movements. This indicator employs principles from molecular orbital theory where energy states transition through gradient fields, similar to how price momentum shifts between bullish and bearish phases. Our implementation features algorithmically optimized parameters derived from extensive Python-based backtesting, creating a visual representation of market energy flows with dynamic opacity gradients that highlight the catalytic moments where trend transformations occur."
📊 Professional Trading Application
The MA Crossover Quantum transcends the traditional moving average crossover with a sophisticated gradient illumination system that highlights the energy transfer between fast and slow moving averages. Scientifically optimized for multiple timeframes and featuring eight distinct visual themes, it enables traders to perceive trend transitions with unprecedented clarity.
⚙️ Indicator Configuration
- Timeframe Presets 📏
Python-optimized parameters for specific timeframes:
- 1H: EMA 23/395 - Ideal for intraday precision trading
- 4H: SMA 41/263 - Balanced for swing trading operations
- 1D: SMA 8/44 - Optimized for daily trend identification
- 1W: SMA 32/38 - Calibrated for medium-term position trading
- 2W: SMA 17/20 - Engineered for long-term investment signals
- Custom Settings 🎯
Full parameter customization available for professional traders:
- Fast/Slow MA Length: Fine-tune to specific market conditions
- MA Type: Select between EMA (exponential) and SMA (simple) calculation methods
- Visual Theming 🎨
Eight scientifically designed visual palettes optimized for neural pattern recognition:
- Neon (default): High-contrast green/red scheme enhancing trend transition visibility
- Cyan-Magenta: Vibrant palette for maximum visual distinction
- Yellow-Purple: Complementary colors for enhanced pattern recognition
- Specialized themes (Green-Red, Forest Green, Blue Ocean, Orange-Red, Grayscale): Each calibrated for different market environments
- Opacity Control 🔍
- Variable transparency system (0-100) allowing seamless integration with price action
- Adaptive glow effect that intensifies around crossover points - the "catalytic moments" of trend change
🚀 How to Use
1. Select Timeframe ⏰: Choose from scientifically optimized presets based on your trading horizon
2. Customize Parameters 🎚️: For advanced users, disable presets to fine-tune MA settings
3. Choose Visual Theme 🌈: Select a color scheme that enhances your personal pattern recognition
4. Adjust Opacity 🔎: Fine-tune visualization intensity to complement your chart analysis
5. Identify Trend Changes ✅: Monitor gradient intensity to spot high-probability transition zones
6. Trade with Precision 🛡️: Use gradient intensity variations to determine position sizing and risk management
Developed through rigorous mathematical modeling and extensive backtesting, MA Crossover Quantum transforms the fundamental moving average crossover into a sophisticated visual analysis tool that reveals the molecular structure of market momentum.
Guntavnook Katta - Price Action PROOverview:
This script is designed to provide traders with a structured, multi-layered view of market behavior. It combines three key components - trend direction analysis, oscillator-based pattern recognition, and projected candle visualization - to help identify meaningful setups and anticipate potential price movements. Additionally, it includes an automated system for plotting multi-level support and resistance zones using swing logic, making it valuable for both discretionary traders and those developing rule-based or semi-systematic frameworks.
Purpose:
The primary purpose of this tool is to empower traders with a structured, multi-dimensional analysis tool that combines both quantitative signals and visual interpretation. Rather than relying on fixed indicators or static strategies, this script allows users to understand the evolving nature of price action through a lens of historical behavior, oscillator dynamics, and market trend context.
It is especially useful for traders who value context-driven decision making - those who prefer to look beyond raw signals and study the sequence of conditions that preceded past price moves, enabling them to better anticipate future possibilities.
Core Logic:
The script brings together three independently developed analytical engines, each built on custom logic and refined through real-market application. Unlike traditional tools that rely on fixed indicator crossovers or rigid rules, this script focuses on pattern dynamics, contextual interpretation, and forward-looking structure - giving it a distinct edge in adapting to different market conditions.
Trend Engine (Volatility-Adjusted Slope Framework):
A moving average alone doesn't reveal much - it’s the slope of the moving average compared against a volatility-normalized threshold that gives meaning. This engine calculates the SMA slope across a user-defined window and dynamically adjusts the threshold using ATR-based volatility. The result: a more adaptive classification of trend into Uptrend, Downtrend, or Sideways, designed to reduce noise and align with real momentum shifts.
Pattern Detection Engine (Zone-Based Signature Matching):
Rather than comparing raw oscillator values, this system maps them into discrete behavioral zones, then tracks their sequential patterns. The most recent pattern is then scanned across historical data to detect exact zone signatures - a method that captures rhythm and structure rather than simple threshold breaks. When a match is found, the script projects what happened next by scaling and rendering those historical candles as projected candle visuals on the current chart - offering a clear and proportionate view of possible price behavior.
Support & Resistance Engine (Tiered Swing-Based Projection):
This module detects significant turning points using user-defined swing lengths, and automatically extends multi-level support and resistance zones (1x, 2x, 3x) into the future. These levels are not based on arbitrary highs/lows, but on tiered confirmation across timeframes, making them highly useful for anticipating potential reaction zones in both trending and consolidating phases.
Together, these components work in sync to offer a layered, context-rich view of price behavior - allowing traders to make better-informed decisions, whether they’re seeking confirmation, confluence, or clarity.
This script is not a signal generator - it is a decision-support tool that allows traders to study market structure in a deeper, more structured way.
It helps answer three essential trading questions:
* What is the current market trend?
* Have similar oscillator-based patterns occurred before, and what followed?
* Where are the likely support and resistance zones based on recent swings?
Key Functional Blocks:
1 - Trend Analysis Using SMA Slope Logic
The script calculates a Simple Moving Average (SMA) over a user-defined period. It compares the slope of this SMA over a second window of candles.
The slope is measured as a percentage and compared against a dynamic threshold derived from price volatility (using ATR).
The market is categorized into:
Uptrend
Downtrend
Sideways
This classification appears in a dedicated trend table at the top-right of the chart, along with the selected oscillator and relevant settings.
2 - Oscillator Pattern Matching Engine
You can select from a variety of studies:
RSI
CCI
Stochastic
Ultimate Oscillator
Money Flow Index
Chande Momentum Oscillator
Relative Volatility Index
The selected oscillator values are converted into different zones. The system continuously monitors the recent pattern of these zones and checks if it matches any past sequence.
Once a historical match is detected:
A message appears in the trend table confirming a match.
The script then activates the projected candle visualization, showing how price behaved after that historical pattern.
3 - Projected Candle Visualization Engine
This feature helps you visualize how price moved historically after a matching oscillator pattern.
How it works:
It retrieves the actual candles that followed the matching pattern in history.
These candles are then scaled relative to the current price to maintain proportional movement.
Candles are drawn using box objects to replicate historical price bars with visual clarity.
Candle color logic is based on oscillator zone at that moment in history -
Green: When the selected oscillator was in an overbought zone (e.g., RSI > 70)
Red: When the selected oscillator was in an oversold zone (e.g., RSI < 30)
Gray: When the selected oscillator was in a neutral zone
This lets traders see:
What happened previously after a similar condition
The general path price followed
Where potential turning points or continuation zones may lie
4 - Multi-Level Dynamic Support & Resistance
Support and resistance levels are drawn based on swing highs and lows across three levels:
You enter an initial swing length (e.g., 10 candles)
The system calculates:
Swing 2 = 2x
Swing 3 = 3x
From there, the indicator detects recent high/low turning points and draws horizontal lines that extend into the future:
R1, R2, R3 (if available) for resistance
S1, S2, S3 (if available) for support
This creates a forward-looking price structure, helping you prepare for reaction zones.
Example Use Cases
Intraday Traders (Best suited for lower timeframes):
This script is particularly effective for intraday traders operating on lower timeframes. It identifies repeating oscillator zone patterns that often precede short-term price movements. When a historical match is found, the projected candles display how price moved in similar situations, offering an immediate visual reference for possible price behavior. Combined with dynamically generated support and resistance zones, the tool adds structure to fast-paced decision-making — helping traders define entries, exits, and stop placements more confidently.
While lower timeframes offer the best responsiveness, the script can be applied across other intraday intervals depending on trading style.
Positional Traders (Best suited for higher timeframes):
For positional traders, this script provides a powerful framework to evaluate whether the current setup mirrors past conditions that led to extended moves. The projected candles show how price evolved after similar oscillator patterns in the past, allowing traders to assess potential directional strength. The trend classification engine and swing-based support/resistance zones further assist in planning position entries, managing holding periods, and identifying key structural levels.
Although higher timeframes offer deeper context for positional trading, the tool remains effective across other multi-day or weekly views as well.
Disclaimer
This script is intended for educational and informational purposes only. It does not provide any form of investment advice, trade recommendations, or performance guarantees. All tools and projections included are meant to support learning and market analysis.
The word “PRO” in the script title refers to a professional-grade analytical tool and should not be interpreted as a claim of profitability or advisory capability.
This script has been developed for use within structured educational environments and is not intended to function as a trading signal or advisory service. Please consult a qualified financial advisor or licensed professional before making any investment decisions.
Pino Trend Pack (SMA/EMA + Bollinger)🔹 Pino Trend Pack is a compact trend-following and volatility indicator that includes:
📈 Moving Averages:
- SMA 10, SMA 30
- EMA 21, EMA 55, EMA 89
(All configured for short-term to mid-term trend analysis by default, but fully adjustable for user preference.)
📊 Bollinger Bands:
- Period: 20
- Standard Deviation: 2.0
- Includes Upper Band, Lower Band, and Basis (SMA 20)
This pack is designed for traders who want a clean visual of price dynamics across multiple short-term trend layers, combined with volatility tracking. It helps you identify compression, expansion, and trend shifts at a glance.
🧠 Ideal for swing trading, short- to mid-term setups, or as a supporting tool in any confluence-based strategy.
Multi-Timeframe MA DashboardThis indicator monitors 5 timeframes: 5min, 15min, 1hr, 4hr, and Daily. It displays fast and slow moving averages for each timeframe, along with the current price. The trend direction is color-coded: green for bullish (fast MA above slow MA) and red for bearish (fast MA below slow MA).
The dashboard also shows the last crossover signal (Buy/Sell) for each timeframe.
Visual arrows are plotted on the chart for the current timeframe. A green up arrow indicates a potential bullish crossover (Buy signal), while a red down arrow indicates a potential bearish crossover (Sell signal).
The dashboard is elegant and professional, with alternating row colors for better readability. It can be placed in any corner of the screen and customized with user-defined colors for bullish and bearish trends.
Alerts are triggered when a crossover occurs on any timeframe. These alerts include the timeframe and signal type (e.g., "5min: ↑ BUY").
How to Read the Indicator
The dashboard displays the following for each timeframe:
Fast MA: The value of the fast moving average.
Slow MA: The value of the slow moving average.
Price: The current price for the timeframe.
Trend: The current trend direction (Bullish or Bearish).
Signal: The last crossover signal (↑ BUY or ↓ SELL).
On the chart, green up arrows indicate a bullish crossover (Fast MA crosses above Slow MA), while red down arrows indicate a bearish crossover (Fast MA crosses below Slow MA).
Green text in the dashboard indicates a bullish trend or signal, while red text indicates a bearish trend or signal.
How to Use the Indicator
Use the dashboard to monitor the trend direction across multiple timeframes. Look for confluence (agreement) between timeframes to identify stronger trends. Observe the "Signal" column in the dashboard for the last crossover on each timeframe. Use the arrows on the chart to identify potential crossover points for the current timeframe.
Enable alerts to be notified of crossover signals on any timeframe. Alerts include the timeframe and signal type for easy reference.
Adjust the fast and slow moving average lengths to suit your trading style. Choose between EMA, SMA, or WMA for the moving average type. Customize the dashboard placement and colors for better visibility.
Important Notes
This indicator is not a buy or sell recommendation. It is a tool to assist traders in their analysis. Always use this indicator in conjunction with other tools, such as support/resistance levels, volume analysis, and price action. Past performance of moving averages does not guarantee future results.
How to Add the Indicator
Add the indicator to your chart from the TradingView library. Configure the inputs:
Fast MA Length: Default is 20.
Slow MA Length: Default is 50.
MA Type: Choose between EMA, SMA, or WMA.
Dashboard Placement: Select the corner of the screen where the dashboard will appear.
Colors: Customize the colors for bullish and bearish trends.
Monitor the dashboard and chart for trends and signals.
Disclaimer
This indicator is for educational and informational purposes only. It does not provide financial, investment, or trading advice. Always perform your own analysis and consult with a financial advisor before making trading decisions.
111D SMA / (350D SMA * 2)Indicator: Pi Cycle Ratio
This custom technical indicator calculates a ratio between two moving averages that are used for the PI Cycle Top indicator. The PI Cycle Top indicator triggers when the 111-day simple moving average (111D SMA) crosses up with the 350-day simple moving average (350D SMA *2).
The line value is ratio is calculated as:
Line Value = 111DSMA / (350D SMA × 2)
When the 111D SMA crosses with the 350D SMA triggering the PI Cycle Top, the value of the ratio between the two lines is 1.
This visualizes the ratio between the two moving averages into a single line. This indicator can be used for technical analysis for historical and future moves.
Multi-MA Strategy Analyzer with BacktestMulti-MA Strategy Analyzer with Backtest
This TradingView Pine Script indicator is designed to analyze multiple moving averages (SMA or EMA) dynamically and identify the most profitable one based on historical performance.
Features
Dynamic MA Range:
Specify a minLength, maxLength, and step size.
Automatically calculates up to 20 MAs.
Custom MA Calculation:
Uses custom SMA and EMA implementations to support dynamic length values.
Buy/Sell Logic:
Buy when price crosses above a MA.
Sell when price crosses below.
Supports both long and short trades.
Performance Tracking:
Tracks PnL, number of trades, win rate, average profit, and drawdown.
Maintains individual stats for each MA.
Best MA Detection:
Automatically highlights the best-performing MA.
Optional showBestOnly toggle to focus only on the best line and its stats.
Visualization:
Up to 20 plot() calls (static) for MAs.
Green highlight for the best MA.
Color-coded result table and chart.
Table View
When showBestOnly = false, the table displays all MAs with stats.
When showBestOnly = true, the table displays only the best MA with a summary row.
Includes:
Best MA length
Total PnL
Number of trades
Win rate
Avg PnL per trade
Max Drawdown
Configuration
minLength (default: 10)
maxLength (default: 200)
step (default: 10)
useEMA: Toggle between EMA and SMA
showBestOnly: Focus on best-performing MA only
Notes
MA plotting is static, limited to 20 total.
Table supports highlighting and is optimized for performance.
Script is structured to run efficiently using arrays and simple int where required.
Potential Extensions
Add visual buy/sell arrows
Export stats to CSV
Strategy tester conversion
Custom date range filtering for backtesting
Author: Muhammad Wasim
Version: 1.0
Regime Filter IndicatorRegime Filter – Crypto Market Trend Indicator
📊 Overview
The Regime Filter is a powerful market analysis indicator designed specifically for crypto trading. It helps traders identify whether the market is in a bullish or bearish phase by analyzing key assets in the cryptocurrency market, including Bitcoin (BTC), Bitcoin Dominance (BTC.D), and the Altcoin Market (TOTAL3). The indicator compares these assets against their respective Simple Moving Averages (SMA) to determine the overall market regime, allowing traders to make more informed decisions.
🔍 How It Works
The Regime Filter evaluates three main components to determine the market's sentiment:
1. BTC Dominance (BTC.D) vs. 40 SMA (Medium Timeframe)
The Bitcoin Dominance (BTC.D) is compared to its 40-period SMA on a mid-timeframe (e.g.,
1-hour). If BTC.D is below the 40 SMA, it indicates that altcoins are performing well relative
to Bitcoin, suggesting a bullish altcoin market. If BTC.D is above the 40 SMA, Bitcoin is
gaining dominance, indicating a potential bearish phase for altcoins.
2. TOTAL3 Market Cap vs. 100 SMA (Medium Timeframe)
The TOTAL3 index, which tracks the total market capitalization of all cryptocurrencies except
Bitcoin and Ethereum, is compared to its 100-period SMA. A bullish signal occurs when TOTAL3
is above the 100 SMA, indicating strength in altcoins, while a bearish signal occurs when
TOTAL3 is below the 100 SMA, signaling a potential weakness in the altcoin market.
3. BTC Price vs. 200 SMA (Higher Timeframe)
The current Bitcoin price is compared to its 200-period Simple Moving Average (SMA) on a
higher timeframe (e.g., 4-hour). A bullish signal is given when the BTC price is above the 200
SMA, and a bearish signal when it's below.
🟢 Bullish Market Conditions
The market is considered bullish when:
- BTC Dominance (BTC.D) is below the 40 SMA, suggesting altcoins are gaining momentum.
- TOTAL3 Market Cap is above the 100 SMA, signaling strength in the altcoin market.
- BTC price is above the 200 SMA, indicating an uptrend in Bitcoin.
In these conditions, the background turns green 🟢, and a "Bullish" label is displayed on the chart.
🔴 Bearish Market Conditions
The market is considered bearish when:
- BTC Dominance (BTC.D) is above the 40 SMA, indicating Bitcoin is outperforming altcoins.
- TOTAL3 Market Cap is below the 100 SMA, signaling weakness in altcoins.
- BTC price is below the 200 SMA, indicating a downtrend in Bitcoin.
In these conditions, the background turns red 🔴, and a "Bearish" label appears on the chart.
⚙ Customization Options
- The Regime Filter offers flexibility for traders:
- Enable or Disable Specific SMAs: Customize the indicator by enabling or disabling the 200 SMA for Bitcoin, the 40 SMA for BTC Dominance, and the 100 SMA for TOTAL3.
- Adjust Timeframes: Choose the timeframes for each of the moving averages to suit your preferred trading strategy.
- Real-Time Data Adjustments: The indicator updates in real-time to reflect current market conditions, ensuring timely analysis.
📈 Best Use Cases
- Trend Confirmation: The Regime Filter is ideal for confirming the market's overall trend,
helping traders to align their positions with the dominant market sentiment.
- Trade Entry/Exit Signals: Use the indicator to identify favorable entry or exit points based on
whether the market is in a bullish or bearish phase.
- Market Overview: Gain a quick understanding of the broader crypto market, with a focus on
Bitcoin and altcoins, to make more strategic decisions.
⚠️ Important Notes
Trend-Following Indicator: The Regime Filter is a trend-following tool, meaning it works best in strong trending markets. It may not perform well in choppy, sideways markets.
Risk Management: This indicator is designed to assist in identifying market trends, but it does not guarantee profits. Always apply sound risk management strategies and use additional indicators when making trading decisions.
Not a Profit Guarantee: While this indicator can help identify potential market trends, no trading tool or strategy guarantees profits. Please trade responsibly and ensure that your decisions are based on comprehensive analysis and risk tolerance.
MA SniperThis indicator automatically finds the most effective moving average to use in a price crossover strategy—so you can focus on trading, not testing. It continuously evaluates a wide range of moving average periods, ranks them based on real-time market performance, and selects the one delivering the highest quality signals. The result? A smarter, adaptive tool that shows you exactly when price crosses its optimal moving average—bullish signals in green, bearish in red.
What makes it unique is the way it thinks.
Under the hood, the script doesn’t just pick a random MA or let you choose one manually. Instead, it backtests a large panel of moving average lengths for the current asset and timeframe. It evaluates each one by calculating its **Profit Factor**—a key performance metric used by pros to measure the quality of a strategy. Then, it assigns each MA a score and ranks them in a clean, built-in table so you can see, at a glance, which ones are currently most effective.
From that list, it picks the top-performing MA and uses it to generate live crossover signals on your chart. That MA is plotted automatically, and the signals adapt in real-time. This isn’t a static setup—it’s a dynamic system that evolves as the market evolves.
Even better: the indicator detects the type of instrument you’re trading (forex, stocks, etc.) and adjusts its internal calculations accordingly, including how many bars per day to consider. That means it remains highly accurate whether you’re trading EURUSD, SPX500, or TSLA.
You also get a real-time dashboard (via the table) that acts as a transparent scorecard. Want to see how other MAs are doing? You can. Want to understand why a certain MA was selected? The data is right there.
This tool is for traders who love crossover strategies but want something smarter, faster, and more precise—without spending hours manually testing. Whether you're scalping or swing trading, it offers a data-driven edge that’s hard to ignore.
Give it a try—you’ll quickly see how powerful it can be when your MA does the thinking for you.
This tool is for informational and educational purposes only. Trading involves risk, and past performance does not guarantee future results. Use responsibly.
SMA7 Tail Reversal📌 Description:
The SMA7 Tail Reversal indicator is designed to identify potential counter-trend trading opportunities by checking if candle wicks (tails) respect a key moving average level (SMA7).
This indicator highlights price action where candles are clearly separated from the moving average, suggesting a possible reversal or temporary correction.
📌 How It Works:
Moving Average Calculation:
Calculates a simple moving average (SMA) of length 7 to act as the primary trend filter.
Candle Classification:
Bullish Candle: A candle where the closing price is higher than the opening price, with a short upper wick.
Bearish Candle: A candle where the closing price is lower than the opening price, with a short lower wick.
Conditions for Coloring Candles:
Long Condition (Green Candle):
High & Low are both below the SMA7 line.
Volume is above the 20-period average.
A bullish candle is detected.
Short Condition (Red Candle):
High & Low are both above the SMA7 line.
Volume is above the 20-period average.
A bearish candle is detected.
📌 Visual Representation:
Green Candles: Potential long signals when price action stays below the SMA7 line.
Red Candles: Potential short signals when price action stays above the SMA7 line.
Yellow Line: SMA7, used as the dynamic threshold for signal generation.
📌 Usage:
Best applied to volatile markets with clear trends.
Effective in detecting counter-trend opportunities where price diverges from the SMA7 line.
Works well with additional confirmation tools for better accuracy.