9 EMA vs 21 EMA Cloud (Anchored)ema cloud 9 ema and 21 ema. whenever 9 ema is above 21 ema the trend is bulish and vice versa. when ema is below 21 ema trend bearish
Moving Averages
EMA 21 Distance Histogram - TOS Style V2This script displays the distance from EMA. if momentum is on the same side, the following red bar paints as purple to show the continuation of the momentum.
Hull For LoopHull For Loop is a sophisticated trend-following indicator that combines the smoothness of Hull Moving Averages with advanced trend detection algorithms and robust confirmation mechanisms.
## How It Works
At its foundation, Hull For Loop employs a custom-calculated Hull Moving Average using weighted moving average for-loops to achieve optimal smoothness and responsiveness. The system operates through three distinct layers: Hull MA calculation with adjustable smoothing multipliers, advanced trend detection using ATR-based slope thresholds, and multi-bar trend confirmation to filter false breakouts.
The logic flow is elegantly simple yet powerful:
- Hull Calculation combines half-period and full-period weighted moving averages, then applies square-root smoothing for enhanced responsiveness
- Trend Detection analyzes Hull slope against dynamic ATR-based thresholds, classifying market direction as bullish, bearish, or neutral
- Confirmation System requires sustained directional movement across multiple bars before triggering signals, dramatically reducing whipsaws
When Hull slope exceeds the positive threshold, bullish conditions emerge. When it falls below the negative threshold, bearish momentum takes control. The multi-bar confirmation ensures only sustained moves generate actionable signals, making this system ideal for trend-following strategies across volatile markets.
The advanced slope analysis mechanism adapts to market volatility through ATR integration, ensuring sensitivity remains optimal during both high-volatility breakouts and low-volatility consolidations, delivering consistent performance across varying market conditions.
## Features
- Custom Hull Implementation : For-loop calculations for precise weighted moving average control and enhanced smoothness
- Dynamic Trend Detection : ATR-based slope analysis automatically adjusts sensitivity to market volatility conditions
- Multi-Bar Confirmation : Configurable confirmation periods (1-5 bars) eliminate false signals and reduce trading noise
- Advanced Visual System : Dynamic color coding, optional arrows, and statistics table for comprehensive market visualization
- Optimized for Bitcoin : Extensively backtested parameters delivering 128.58% returns with 55% drawdown reduction versus buy-and-hold
- Flexible Configuration : Hull length (1-200), smoothing multiplier (0.1-3.0), sensitivity (1-10), and confirmation settings
- Professional Alerts : Comprehensive alert system for trend changes and entry signals with strength percentages
- Real-time Analytics : Optional statistics table displaying trend direction, strength, Hull value, and current price
## Signal Generation
Hull For Loop generates multiple signal types for comprehensive trend analysis and precise entry/exit timing:
Primary Signals : Confirmed trend changes from bullish to bearish or vice versa - highest probability directional moves
Entry Signals : Initial trend confirmation after multi-bar validation - optimal position entry points
Strength Indicators : Real-time trend strength percentages based on directional momentum over lookback periods
Visual Confirmations : Color-coded Hull line providing instant visual trend status
The confirmation system adds crucial reliability - signals must persist through the specified confirmation period before activation, ensuring only sustained moves trigger trading decisions rather than temporary price fluctuations.
## Visual Implementation
The indicator employs sophisticated visual elements for immediate trend comprehension and professional chart presentation:
- Dynamic Hull Line : Color-changing line (green/red/gray) with configurable width reflecting current trend status
- Optional Directional Arrows : Triangle markers below/above bars marking confirmed trend changes and entry points (disabled by default)
- Statistics Panel : Optional real-time table showing trend direction, strength percentage, Hull value, and current price
- Professional Color Scheme : Customizable bullish (green), bearish (red), and neutral (gray) color system
## Alerts
Hull For Loop includes comprehensive alert conditions for automated trading integration:
- Hull Trend Change - Confirmed trend direction shift with strength percentage
- Hull BUY Signal - Bullish trend confirmation with price and strength data
- Hull SELL Signal - Bearish trend confirmation with price and strength data
- Alert Frequency - Once per bar to prevent spam while maintaining accuracy
All alerts include contextual information: trend direction, current price, and trend strength percentage for informed decision-making.
## Use Cases
Trend Following : Optimized for sustained directional moves with superior drawdown protection compared to buy-and-hold strategies
Swing Trading : Multi-bar confirmation eliminates false breakouts while capturing significant trend changes
Position Trading : Smooth Hull calculation provides stable signals for longer-term directional positioning
Risk Management : Advanced confirmation system dramatically reduces whipsaw trades and false signals
Crypto Trading : Specifically optimized for Bitcoin with parameters delivering exceptional historical performance
The system demonstrates exceptional performance across volatile assets.
SMA 5/10/20/50/100/150/200/250//@version=6
indicator (title="SMA8", shorttitle="SMA8", overlay=true)
len1 = input.int(5, minval=1, title="SMA 1")
src1 = input(close, title="Source One")
out1 = ta.sma(src1, len1)
plot(out1, title="SMA 1", color=color.rgb(233, 11, 11), linewidth=1)
len2 = input.int(10, minval=1, title="SMA 2")
src2 = input(close, title="Source Two")
out2 = ta.sma(src2, len2)
plot(out2, title="SMA 2", color=color.orange, linewidth=1)
len3 = input.int(20, minval=1, title="SMA 3")
src3 = input(close, title="Source Three")
out3 = ta.sma(src3, len3)
plot(out3, title="SMA 3", color=color.rgb(250, 226, 12), linewidth=1)
len4 = input.int(50, minval=1, title="SMA 4")
src4 = input(close, title="Source Four")
out4 = ta.sma(src4, len4)
plot(out4, title="SMA 4", color=color.rgb(51, 255, 0), linewidth=1)
len5 = input.int(100, minval=1, title="SMA 5")
src5 = input(close, title="Source Five")
out5 = ta.sma(src5, len5)
plot(out5, title="SMA 5", color=color.rgb(0, 249, 249), linewidth=1)
len6 = input.int(150, minval=1, title="SMA 6")
src6 = input(close, title="Source Six")
out6 = ta.sma(src6, len6)
plot(out6, title="SMA 6", color=#014ff9, linewidth=1)
len7 = input.int(200, minval=1, title="SMA 7")
src7 = input(close, title="Source Seven")
out7 = ta.sma(src7, len7)
plot(out7, title="SMA 7",color=#6c01f9, linewidth=1)
len8 = input.int(250, minval=1, title="SMA 8")
src8 = input(close, title="Source Eight")
out8 = ta.sma(src8, len8)
plot(out8, title="SMA 8",color=color.white, linewidth=1)
EMA 21 Distance IndicatorSImple Indicator which displays the price difference from 21 EMA as Red and green to easily identify if the price is reaching any extreme.
LON超级天宫指标指标名称
LON Oscillator with MA Crossover Signal
简短描述 (Short Description)
A comprehensive LON (Long-term Oscillator) indicator with multiple timeframe analysis and MA crossover signals for identifying optimal entry points.
详细描述 (Detailed Description)
Overview
The LON Oscillator is a powerful multi-timeframe technical analysis tool that combines short-term, medium-term, and long-term price momentum to identify potential trading opportunities. This indicator is particularly effective for swing trading and trend following strategies.
Key Features
Multi-timeframe Analysis: Combines 21-day, 37-day, and 55-day price momentum
MA Crossover Signals: 13-day and 55-day moving average crossovers for entry confirmation
Multiple Signal Types: Bottom detection, golden opportunities, top signals, and bounce signals
Visual Alerts: Color-coded signals and background highlights for easy identification
Signal Types
Bottom Signal: When medium-term line < 15, indicating oversold conditions
Golden Opportunity: When all three lines (short, medium, long) < 20, suggesting strong buying opportunity
Top Signal: When medium-term line > 80, indicating overbought conditions
Bounce Signal: When long-term line crosses above 15, signaling potential reversal
Perfect Opportunity: Short-term line crosses above long-term line with specific conditions
Strong Bottom: Multiple confirmation signals for major bottom formation
Usage Guidelines
Buy Signals: Look for golden opportunities and bounce signals when LON is above zero
Sell Signals: Consider taking profits when top signals appear
Risk Management: Use bottom signals for stop-loss placement
Trend Confirmation: Combine with volume and other technical indicators
Best Timeframes
Daily: Primary timeframe for swing trading
4-Hour: For shorter-term entries
Weekly: For long-term trend analysis
Settings
All parameters are optimized for daily charts
Can be adjusted for different timeframes and market conditions
Color scheme can be customized in settings
Disclaimer
This indicator is for educational and informational purposes only. Past performance does not guarantee future results. Always use proper risk management and combine with other analysis tools.
Multi-Indicator Switch PanelThe Multi-Indicator Switch Panel is a powerful all-in-one TradingView toolkit that allows traders to toggle multiple popular indicators on and off from a single, intuitive control panel — without cluttering the chart or reloading scripts.
This panel gives you real-time control over the following indicators (configurable per version):
8 EMA vs 21 EMA Crossover AlertsThis indicator creates a Buy signal when 8 EMA crosses above 21 EMA and vice versa on any time frame selected on the chart
Historical Volatility with HV Average & High/Low Trendlines
### 📊 **Indicator Title**: Historical Volatility with HV Average & High/Low Trendlines
**Version**: Pine Script v5
**Purpose**:
This script visualizes market volatility using **Historical Volatility (HV)** and enhances analysis by:
* Showing a **moving average** of HV to identify volatility trends.
* Marking **high and low trendlines** to highlight extremes in volatility over a selected period.
---
### 🔧 **Inputs**:
1. **HV Length (`length`)**:
Controls how many bars are used to calculate Historical Volatility.
*(Default: 10)*
2. **Average Length (`avgLength`)**:
Number of bars used for calculating the moving average of HV.
*(Default: 20)*
3. **Trendline Lookback Period (`trendLookback`)**:
Number of bars to look back for calculating the highest and lowest values of HV.
*(Default: 100)*
---
### 📈 **Core Calculations**:
1. **Historical Volatility (`hv`)**:
$$
HV = 100 \times \text{stdev}\left(\ln\left(\frac{\text{close}}{\text{close} }\right), \text{length}\right) \times \sqrt{\frac{365}{\text{period}}}
$$
* Measures how much the stock price fluctuates.
* Adjusts annualization factor depending on whether it's intraday or daily.
2. **HV Moving Average (`hvAvg`)**:
A simple moving average (SMA) of HV over the selected `avgLength`.
3. **HV High & Low Trendlines**:
* `hvHigh`: Highest HV value over the last `trendLookback` bars.
* `hvLow`: Lowest HV value over the last `trendLookback` bars.
---
### 🖍️ **Visual Plots**:
* 🔵 **HV**: Blue line showing raw Historical Volatility.
* 🔴 **HV Average**: Red line (thicker) indicating smoothed HV trend.
* 🟢 **HV High**: Green horizontal line marking volatility peaks.
* 🟠 **HV Low**: Orange horizontal line marking volatility lows.
---
### ✅ **Usage**:
* **High HV**: Indicates increased risk or potential breakout conditions.
* **Low HV**: Suggests consolidation or calm markets.
* **Cross of HV above Average**: May signal rising volatility (e.g., before breakout).
* **Touching High/Low Levels**: Helps identify volatility extremes and possible reversal zones.
ATR Trailing Stops Strategy with Cross Arrowsadds signals when the ATR line is crossed.
Can be used for entries as well as a stop loss area.
FlexMAFlexMA – Time-based moving average
FlexMA plots a moving average based on real-world time (like “5 days”) instead of fixed bar lengths.
Choose the MA type (SMA, EMA, etc.), enter a timespan and unit, and the script automatically adjusts across any chart timeframe.
This was created out of a demand for moving average indicator that was easy to configure across any time frame but the results end up consistent. For example, a 5 Day SMA where it looks the same at every interval.
Powered by:
Electrified/Time – Converts spans to lengths
Electrified/MovingAverages – Provides modular MA logic
Example: Want a 3-day EMA? Just set:
Plot: EMA
Timespan: 3
Unit: Days
Clean, adaptive, and great for multi-timeframe setups.
Algorithmic ScalperAlgorithmic Scalper — Adaptive Trend-Cycle Trading System
Overview
Algorithmic Scalper is an advanced trend detection and signal generation tool designed for scalpers and intraday traders. Its primary goal is to help traders spot and confirm high-probability trend entries with precision. By combining a multi-layer trend detection engine, an ATR-driven trend structure, and EMA trend clustering, it delivers clear LONG, SHORT, OOT LONG (early countertrend long), and OOT SHORT (early countertrend short) signals that can be acted upon within a structured trading framework.
What It Does
Algorithmic Scalper analyzes price action across four core dimensions:
1. Trend Detection — Identifies the dominant trend using a 4-EMA trend cluster (customizable values: 20, 50, 100, 200), which provides the foundation for trend classification and signal labeling.
2. Cycle Timing — Uses a proprietary trend-cycle engine inspired by the Schaff trend approach. This engine applies smoothing and filtering across four internal phases to adapt to market shifts, making trend-confirmation significantly more robust compared to traditional RSI or Stoch-style indicators.
3. ATR Barrier Framework — Constructs a dynamic ATR-based trend zone, similar to advanced ATR trailing methods. This zone adjusts itself in real-time based on market volatility, allowing precise breakout detection and trend adherence.
4. Momentum Validation — Incorporates a MACD-style momentum measure (differential EMA + signal line) that confirms trend strength and trend changes.
5. Signal Alert - Supports built‑in alerts, allowing traders to be notified instantly when a new signal is triggered, so they can stay engaged with the market even when away from the screen.
How It Works
The indicator uses the interplay between these elements to classify price action into one of four actionable states:
1. LONG: Strong trend-confirmation signal aligning trend, momentum, and ATR structure.
2. SHORT: Strong trend-confirmation signal for downside movement.
3. OOT LONG: Early warning for a countertrend long entry when price is stretched away from the trend zone, ideal for reversal or scalp strategies.
4. OOT SHORT: Early warning for a countertrend short entry when price is extended to the upside.
Result: Each signal is calculated only when trend, trend-cycle, momentum, and ATR align, making the entries highly selective and aligned with market structure.
How To Use It
1. Confirm the Context: Always assess the signal within the current market structure. Use higher timeframes to confirm trend direction and strength.
2. Act According to the Signal Type:
-- LONG / SHORT: Enter trend-following positions when trend and momentum align. These signals are ideal for breakout or trend-confirmation trades.
-- OOT LONG / OOT SHORT: Enter countertrend positions when price is extended from its trend zone and confirmed by trend-cycle shifts. These are higher risk and require tighter risk controls.
Why It Is Unique
1. Integrates trend detection, trend-cycling, ATR trend structure, and MACD-style momentum into a single streamlined tool.
2. Goes beyond simple EMA ribbons by adding adaptive trend-cycle filtering for higher precision trend detection.
3. Provides four clearly classified signal types for both trend and countertrend setups.
4. Enables traders to clearly understand the market state, making it ideal for both breakout/trend and reversal strategies.
Apply Risk Management
Never use signals in isolation. Maintain a pre-defined risk/reward ratio, utilize stop losses, and adapt position sizes according to market volatility and personal risk tolerance.
Timeframe Selection
The indicator is optimized for 5-minute and 15-minute charts, making it ideal for scalping and active intraday strategies.
Best Suited For
Scalpers, intraday traders, and active market participants.
Important Notes
The signals generated by Algorithmic Scalper are meant to support decision-making. They should always be used in conjunction with sound trading knowledge, risk management practices, and personal market analysis.
The indicator does not guarantee outcomes and should not be treated as a standalone buy/sell tool. Its value lies in providing actionable trend context, allowing traders to make confident decisions.
This tool is built to evolve as market dynamics evolve, making it a robust long-term addition to any trading toolkit.
License
This indicator was developed by the ProphetAlgoAI team. Its use is restricted to TradingView under a private, invite-only agreement. Redistribution or use outside TradingView is strictly prohibited unless explicitly authorized by the ProphetAlgoAI team.
Velocity + Momentum (SMA-Based)Velocity + Momentum (SMA-Based) is a clean, powerful oscillator that measures price acceleration using SMA-derived velocity and dual momentum signals. This tool is ideal for identifying directional shifts, exhaustion points, and early entries across any market or timeframe.
How It Works:
This indicator calculates velocity as the distance between the current close and a simple moving average of the open price. Then, it applies two smoothed moving averages to this velocity line:
• Internal Momentum (shorter-term smoothing)
• External Momentum (longer-term context, hidden by default)
The result is a layered view of how fast price is moving and whether that move is gaining or losing strength.
How to Use:
• The green/red histogram shows current velocity (positive = bullish, negative = bearish)
• The teal/maroon line tracks internal momentum and provides short-term signal turns
• The black/gray (hidden) line reflects external momentum and supports broader trend alignment
• Watch for crosses above/below the zero line for confirmation of directional strength
• Use the built-in alerts to catch real-time shifts in all three layers of movement: velocity, internal, and external
Why It's Useful:
• Detects subtle transitions before price structure changes
• Helps filter out noise by comparing short-term vs long-term motion
• Ideal for scalpers, swing traders, and trend-followers alike
• Pairs well with structure-based tools or price action zones
• Works on any asset and timeframe
This indicator simplifies momentum analysis by giving you actionable, multi-layered feedback on how price is accelerating — and when that’s likely to reverse.
VWAP + EMA StrategyUses Vwap and Ema for buy and sell signal. Just looking through and exploring what code can do. Not a financial advice
Bid/Ask Volume Tension with Rolling Avg📊 Bid/Ask Volume Tension with Rolling Average
This indicator is designed to help traders identify pivotal moments of buildup, exhaustion, or imbalance in the market by calculating the tension between buy and sell volume.
🔍 How It Works:
Buy volume is approximated when the candle closes higher than or equal to its open.
Sell volume is approximated when the candle closes below its open.
Both are smoothed using an EMA (Exponential Moving Average) for noise reduction.
Tension is calculated as the absolute difference between smoothed buy and sell volume.
A rolling average of tension shows the baseline for normal behavior.
When instant tension rises significantly above the rolling average, it often signals:
A build-up before a large move
Aggressive order flow imbalances
Potential reversals or breakouts
🧠 How to Use:
Watch the orange line (instant tension) for spikes above the aqua line (rolling average).
Purple background highlights show when tension exceeds a customizable multiple of the average — a potential setup zone.
Use this indicator alongside:
Price action (candlestick structure)
Support/resistance
Liquidity zones or order blocks
⚙️ Settings:
Smoothing Length: Controls the responsiveness of buy/sell volume smoothing.
Rolling Avg Window: Defines the lookback period for the baseline tension.
Buildup Threshold: Triggers highlight zones when tension exceeds this multiple of the average.
🧪 Best For:
Spotting pre-breakout tension
Detecting volume-based divergences
Confirming order flow imbalances
STMDUpdated Setup Rules
Buy condition:
SMA 8 > SMA 13 > SMA 20 (aligned and pointing up).
All 3 averages are rising (positive slope).
Entry candle is a power candle (bullish elephant bar).
SELL condition:
SMA 8 < SMA 13 < SMA 20 (aligned and pointing down).
All 3 averages are falling (negative slope).
Entry candle is a power candle (bearish elephant bar).
Rainbow Price Chart This indicator is a technical and on-chain analysis tool for Bitcoin, designed to help investors better understand the different phases of the market cycle and underlying sentiment. It directly overlays on the price chart (overlay=true).
Indicator Name: "Rainbow Price Chart & V/T Ratio Signals"
General Purpose:
It combines two popular methodologies for visualizing Bitcoin's value and sentiment: the classic "Rainbow Price Chart" and signals derived from the "Value per Transaction Ratio" (V/T Ratio) based on blockchain data. It is ideal for long-term investors looking for strategic entry/exit points.
Main Components:
Rainbow Price Chart:
Concept: Divides Bitcoin's price range into different market "sentiment zones" (e.g., "Bubble Zone," "FOMO Zone," "HODL Zone," "Accumulation Zone," "Buy Zone," "Fire Sale Zone") using colored bands. These bands are calculated as ascending and descending multiples of a base Exponential Moving Average (EMA), configurable by default to 200 periods.
Visualization: The zones are represented with transparent color fills on the price chart. A detailed legend in the top right corner of the chart explains the meaning of each color and sentiment zone.
Important Note: This type of chart is designed to be viewed and analyzed correctly on a logarithmic price scale. The indicator includes a visual reminder to activate this scale.
Value per Transaction (V/T) Ratio Signals:
Concept: Measures the average value per transaction on the Bitcoin blockchain by dividing the total transacted volume in USD by the number of transactions. This ratio is smoothed with an Exponential Moving Average (by default, 7 periods) and is framed within a dynamic Linear Regression Channel (LRC) based on standard deviation.
Signal Generation: Based on the position of the smoothed V/T Ratio within this LRC channel, the indicator generates signals directly on the price chart, such as:
"BOTTOM": Low price, V/T Ratio in the lower band of the LRC.
"SEMI-LOW" / "SEMI-HIGH": Intermediate phases within the channel.
"ATH" (All-Time High): Potentially overvalued price, V/T Ratio in the upper band of the LRC.
On-Chain Data: The indicator requests external daily on-chain data for total transacted volume (TVTVR) and number of transactions (NTRAN) from the Bitcoin blockchain.
Diagnostic Panes: Includes plots of the raw on-chain data (volume and number of transactions) in a separate pane, which are useful for debugging or verifying the data source. The lines for the V/T Ratio itself and its LRC channel are not plotted by default but can be activated in the code for deeper analysis.
Ideal for:
Bitcoin investors and "hodlers" who desire a visual tool that combines price-based market cycle context with fundamental signals derived from on-chain activity, to help identify key moments for accumulation or potential distribution.
Considerations:
Relies on the availability of external on-chain data (QUANDL:BCHAIN) within TradingView.
Functions best on a daily timeframe.
21 & 200 EMA with Star at Crossovers21-day EMA: Plotted in green
200-day EMA: Plotted in red
Crossover Markers:
A yellow star (★) appears on the chart at the 21 EMA price level when:
21 EMA crosses above the 200 EMA (bullish crossover)
21 EMA crosses below the 200 EMA (bearish crossover)
Stars have a black background to ensure high visibility
Medias Móviles - Swing Trading - by addryy58....sdasdsjdhsaidhsauoixhashxuoashxuosahuoxhasohxsaxsaxsa