EMA 21 Distance Hist - Diamonds V3White Bars- Extreme Distance. Set close stops
Red - Change of Momentum
Green- chop but on the buy side. Stay long
Pink- chop on sell side. stay short
B/S indiates change in monetum backed by EMA cross
Diamond- 8/21 Cross
移動平均線
EMA 21 Distance Hist - Diamonds V2EMA distnce with 8/21 cross . Also shows mometum and 8/21 based Buy or sell
EMA 21 Distance Hist - DiamondsIt shows distance from EMA. purple bars show the continuation of momentum and changes red bars to purple. Diamonds show 8/21 EMA cross.
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
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.
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.
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.
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