Ehlers AutoCorrelation Indicator [CC]The AutoCorrelation Indicator was created by John Ehlers (Cycle Analytics pgs 94-98) and this can be viewed as both a momentum indicator and a trend indicator. This was his basis for several other indicators that he created which I will be publishing soon but essentially as this indicator goes up then the stock is in an uptrend and also has upward momentum. You will notice that this indicator starts to go down even during an uptrend showing that the underlying trend is going to have an upcoming reversal. He also warns that the halfway mark is a possible reversal point so keep an eye out for that.
Generally speaking a good signal is to enter a long position when the indicator is under the midline and is starting to go up (or when the line is green) and to exit the position when the indicator goes over the midline. I have included strong buy and sell signals in addition to normal ones so darker colors mean strong signals and lighter colors mean normal signals.
Let me know if there are any other indicators you would like me to publish!
Cari dalam skrip untuk "momentum"
Electrified Momentum Signal (Prototype)This indicator uses an ensemble of different indicators to help in identifying significant changes in momentum.
It's time-frame is constant and is based up on the length of the configurable period. This allows for a consistent signal across multiple time-frames.
This is not a buy or sell signal but can be used for alerts to indicate a change in momentum that might be worth paying attention to.
If looking for an long entry point, a negative (red) value can signal "don't buy yet" or may simple mean "it's risky". In a similar way if looking for a short, a positive (green) value can signal "not now".
Note: "Electrified" does not mean this has anything to do with electric vehicles or the power grid. :P
Cyber MomentumThis oscillator is the combination of different settings RSI , RSX , STOCHRSI , MSI ,... in a Stochastic function that can help traders to understand the weakness and strength of momentum in candle sticks in different time frames.
This oscillator organized by three Line , control zone and Divergence Line
1:) Fast Line
2:) Slow Line
3:) Heavy Line
4:) Neutral Zone between Fibo 38.2% & 61.8%
5:) Bullish Control Zone
6:) Bearish Control Zone
7:) Divergence Line
And there are two theories of finding tradable signals behind those parts .
The first and the most simplest theory is the situation that the Fast Line has the possibility to be supported by Slow or Heavy Lines and basically reverse its slope !!
But there are some rules and notes for this theory ... First of all the accuracy and rate of that is variable in three main categories of situation
1:) with or without price action reversal structure like reversal pattern (Head&Shoulder , Quasimodo , .... )
2:) with or without regular divergence
3:) in which control zone ?
So basically the most powerful setup occurs when price action is already in the reversal structure and the potential to have at least one drive of regular divergence exist and also the Fast Line is in the opposite control zone of the current time frame trend .... so obviously if one of those rules will not be satisfied so the signal will be the less value
The second theory is the signals that occur after the reversal, obviously a sign of trend continuation. there are two type of that you can use with this oscillator
The first one happens when price reverses its trend and this oscillator is moving to the neutral zone ... so if at least one drive of hidden divergence exist the neutral zone will have good possibility to reverse the slope of the oscillator obviously this would happen usually after hidden divergence confirmed .
and the second one is basically the first type but after the reversal Subsequently in the outside of the bullish/bearish control zone ... those kinds of signals are NOT the reversal potency signal at all !! they designed for trend continuation... be careful of them and try trade with your old friend trend ! .... also The existence of hidden divergences will be better for trade in this kind of signals .
The idea of this oscillator was inspired by @mrhashem Borjas Tarh Momentum.
Ultimate Momentum IndicatorThis is an indicator I've been playing with for a while, based on my previous MACD w/ RSI Warning indicator. This one takes it a step further, including information from MACD, RSI, ADX, and Parabolic SAR. These four indicators are represented in this indicator as follows:
MACD: The histogram itself is a normal MACD histogram. Nothing strange about it, and you can adjust the settings for it just as you would a normal MACD.
RSI: Any time the RSI is outside of normal ranges (which can be adjusted in the settings), the bar on the histogram will turn amber to warn you. The actual RSI value is also shown in a label to the left side of the indicator.
ADX: Crosses are drawn along the 0 line to indicate ADX. Blue means the ADX is below the trending level (adjustable in the settings), and orange means it is above that level. Darker colors indicate the ADX has gone up since the previous bar, while lighter colors indicate it has gone down. The actual ADX value is also shown in the label to the left side of the indicator.
Parabolic SAR: At the outside point of each bar in the histogram, a colored dot is drawn. If the dot is green, the Parabolic SAR (settings adjustable) is currently below the closing price. If the dot is red, the SAR is above the closing price.
I must stress that this indicator is not a replacement for any one of the indicators it includes, as it's really only pulling small bits of information from each. The point of this indicator is to give a cohesive picture of momentum at a quick glance. I encourage you to continue to use the normal versions of whichever of the basic indicators you already use, especially if those indicators are a key part of your strategy. This indicator is designed purely as a way to get a bird's eye view of the momentum.
Pretty much every normally adjustable value can be adjusted in the settings for each of the base indicators. You can also set:
The RSI warning levels (30 and 70 by default)
The ADX Crossover, i.e. the point at which you consider the ADX value to indicate a strong trend (25 by default)
The offset for the label which shows the actual RSI & ADX values (109 by default, which happens to line up with my chart layout--yours will almost certainly need to be different to look clean)
All of the colors, naturally
As always, I am open to suggestions on how I might make the indicator look cleaner, or even other indicators I might try to include in the data this indicator produces. My choice of indicators to base this one from is entirely based on the ones I use and know, but I'm sure there are other great indicators that may improve this combination indicator even more!
Indicator Panel MTF (MACD, RSI, Momentum, Stoch, CCI)This script shows the values of MACD, RSI, Momentum, Stoch, CCI for current and higher time frames in a panel. if higher time frame is equal or smaller than current time frame and it doesn't show the values for HTF.
And also it shows if their values are increasing, decreasing or equal to last value with "▲", "▼", "="
The signal length for all indicators is 9 and used EMA.
histogram value is indicator value - it's signal value. with this value you can see that indicator and its signal getting closer or not. you may think it's as momentum.
Some functions and idea is used from following scripts:
Thanks to Lucf for the following script:
Thanks to Ricardo Santos for the following script:
MTF CMO (Chande Momentum Oscillator)Simple Multi-Timeframe version of the Chande Momentum Oscillator . Many thanks to HPotter whos script I used as a starting point. This displays 1, 2, 3, 4, and 24 period CMOs on the graph. 1, 2, 3, and 4 periods are smoothed by using their simple moving averages. 24 period is unsmoothed. I prefer to set my chart to a 1 hour timeframe and look for bottoming or topping patterns in the momentum. Strongest topping or bottoming patterns are when all timeframes roll over including the 24 period.
FXR Momentum Market TypeThe FX Renew Momentum Market Type indicator plots a line that represents the market type based on the rules developed to suit strategies that exploit momentum.
-2 = Bear Fast
-1 = Bear Normal
0 = Sideways
1 = Bull Normal
2 = Bull Fast
All4 - Multi-Period Momentum [LucF]All4 is a multi-period momentum indicator that includes a volume component. It doesn't use higher timeframes, but rather varying lengths. It is a simple way to get a more global picture of momentum.
It is calculated using a very simple weighted average of a few different indicators. The indicator is comprised of the main line called All4, its MA and a faster line.
The All4 components are the Stoch RSI’s K line, Rsi and MFI (to include a bit of volume information) in the following mix: (St14 + St21 + 2*St42 + 2*St90 + rsi + 2*mfi)/9. The respective K line periods and smoothing lengths are 14-4, 21-10, 42-10 and 90-15. Both the Rsi and MFI periods are 14. All those values are fixed.
The fast line is comprised of a 14 period Rsi and MFI in the following mix: (rsi + 2*mfi)/3. The length of the fast line can be changed.
The indicator also includes 4 status lines. The top 2 show when All4 is volatile and when it is trending. The bottom 2 show when All4 is in bearish/bullish territory, and the state of the 200 period MA.
There are lots of bells and whistles but pretty much everything is configurable, so you can make it as busy or as clean as you wish. I have included both extremes on the chart above.
As can be expected, the mishmash of indicators comprising All4 entails a loss of detail in the signal; it is the trade-off necessary to paint a broader picture.
MaxWarren's Pine Acceleration - 2nd DerivativeThis is the acceleration of a chart written in pine. It's the second derivative otherwise the derivative of the momentum.
It shows how fast a stock's momentum is changing and in what direction.
As standard I left the controls in the settings for source and length of the estimate.
I will be incorporating this in other more complicated scripts here shortly
First Hour TrendThis indicator analyzes the first hour of trading to determine if the market is showing bullish, bearish, or neutral momentum. By default, it's configured for regular US market hours (9:30-10:30 AM ET), but can be customized for any market session. It's based on the "Opening Candle Continuation" strategy, which has shown strong predictive power for daily market direction based on first hour performance.
R Squared - MomentumThis little oscillator just returns the R Squared Value of current price action.
It is designed to show trend direction momentum. Great for confluence!
SFP MomentumCustom swing fail detector with levels and breakouts both major and minor plus colored candles based on SFP momentum.
PpSignal Momentum TraderThis is a combination of the PERCENTAGE of PRICE OSCILLATOR (PPO) and Momentum.
When both oscillators are up in the same direction it is buying (green bottom and green oscillators), when both oscillators are down it is sell (red bottom and red oscillators. When they do not agree (silver bottom) it is to keep doing nothing .
You can also see the change in trend with the candles as well. same colors as the background and the oscillators.
CSRS v2Candlesticked RSI v2 for price action traders!
See the True Momentum.
6 chart type, smooth RSI , add signal lines, find divergences, special alerts
This is 2nd version with major upgrade
Improved and more powerful
fully customizable.
features:
See RSI in 6 type of chart(Candles, Hollow Candles, Siwi Candles, Heikin Ashi, HL Bar, Line)
Monitor Up to 3 RSI , each one at desired resolution, source and length
Smooth each one of chart separately to remove noises
Add up to 3 signal line to primary chart in your desired source and type( SMA , EMA , WMA , HMA )
Find divergences which has special parameters
Gradient color adjustment of line chart
Add alert for reaching to important levels and detected divergences
RAT Momentum Squeeze BETAV1.0
MAs are a great tool to measure the market's momentum. I created this indicator to graphically depict bullish and banishment movements with the moving averages.
Using the 50, 100, & 200 day MA in conjunction with the RSI we are able to find great swing setups. This is used best on the 30min & up to the daily chart.
SMI Stochastic Momentum Index 2x set per Baiynd -Tom1traderStochastic Momemtum Index - a true strength indix tsi with a moving average signal.
This uses the built in with modifications per Anne-Marie Baiynds recommendations - she uses a SIMPLE MOVING AVERAGE
for the signal (signal length at 4x the short length seems to work best to reflect actual price action support or resistance)
Note: Default settings in this code have been updated to her most recent recommendations that I have seen.
video is entitled "The Most Reliable Technical Indicator I Have Ever Used"
Note: I have not discussed this with Ms . Baiynd this is my interpretation of the vids I have seen.
Anne-Marie Baiynd also in talks / videos refers to the use of short / long of 4/20 and 6/40 and have combined both of them here
This overlays both of them with their respective SMAs- a 4/20 lengths and a 6/40 lengths in darker colors and smallest linewidth.
this gives a perspective on slightly higher time frame action.
USAGE: Generally above and below the black dashed zero line is long or short
KEYS: -Plot position relative to zero black, red overbought, green oversold and the gray lines at .25 -.25
Indicator action often more significant out side of the more "neutral" +.25/-.25 area
and near or above/below the red/green dashed lines.
-Steepness of slopes
Slopes of smi plots relate directly to price action where steeper is more momentum.
- -SMI blue relation to its simple moving average orange and the SMI longer dark blue with moving average purple.
MAJOR FEATURE - The average acts as support or resistance to the SMI and the price unless breaking out.
Price is often pausing or reversing iin finding primary/secondary support or resistance as well at those times.
You Can See and anticipate Where Support or Resistance may be Encountered. (much unlike most indicators)
My standard caveat -use at your own risk. Like anyone else I do not know what the next bar/candle is going to do
and I place all of my trades with a management plan in place for the worst case scenario.
That said enjoy your charting and trading.
This was coded starting with the built-in indicator "SMI Ergontic Oscilator / Indicator". You do this by within the Pine Editor select "New" tab and
choose the indicator that you want the code for. This populates the editor with the code for the built in indicator and you can modify it to suit your
purposes and save it / publish it and etc. Thanks for following this and Keep Smiling!
Rumpy's Relative Momentum and TrendIncorporates volume and true range to adjust the RSI calc as well as an alternative ALMA based index in a trend following system.
Upper band highlights direction of momentum. Lower the general trend. Overlap in the central band for confirmation.
The ALMA setup is more adaptive and will get you in sooner with the trade off of more common fakeouts and false exits. It is more suitable for scalping lower time frames :
-------------------------------------------------------------------------------------------------------------------------------------------
If you find it useful please consider a tip/donation : BTC - 3BMEXEDyWJ58eXUEALYPadbn1wwWKmf6sA
FIBAUS Momentum IndicatorHybrid in nature as it acts as an oscillator but considers squeeze and momentum.
SMA slopeSlope function for SMA in degrees. This slope function you can use or modify for your own strategies. Feel free to change source to calculate the slope of another indicator. In this case you can see that the indicator is above the zero line indicating a positive momentum.
Gain Over LossSelf adjusting gain over loss indicator. Shows price movement and momentum. If you want to reach to the parameters you can use the old version.
RSI + MFI Momentum Mapper - CoffeeKillerRSI + MFI Momentum Mapper - CoffeeKiller Indicator Guide
Welcome traders! This guide will walk you through the RSI + MFI Momentum Mapper indicator, an innovative market analysis tool developed by CoffeeKiller that combines two powerful oscillators to create a comprehensive momentum visualization system.
🔔 **Warning: This Is Not a Standard RSI or MFI Indicator** 🔔 This indicator combines and normalizes RSI and MFI data to create a unified momentum representation with boundary detection and peak signaling features.
Core Concept: Combined Momentum Analysis
The foundation of this indicator lies in merging the strengths of two complementary oscillators - Relative Strength Index (RSI) and Money Flow Index (MFI) - to provide a more robust momentum signal that accounts for both price action and volume.
Directional Columns: Momentum Strength
- Positive Green Columns: Bullish momentum
- Negative Red Columns: Bearish momentum
- Color intensity varies based on momentum strength
- Special coloring for new high/low boundaries
Marker Lines: Dynamic Support/Resistance
- High Marker Line (Magenta): Tracks the highest point reached during a bullish phase
- Low Marker Line (Cyan): Tracks the lowest point reached during a bearish phase
- Creates visual boundaries showing momentum extremes
Peak Detection System:
- Triangular markers identify significant local maxima and minima
- Background highlighting shows important momentum peaks
- Helps identify potential reversal points and momentum exhaustion
Reference Lines:
- Zero Line (Gray): Divides bullish from bearish momentum
- High Line (+1): Upper threshold for extremely bullish conditions
- Low Line (-1): Lower threshold for extremely bearish conditions
Core Components
1. Oscillator Normalization
- RSI and MFI values centered around zero
- Values scaled to create consistent visualization
- Normalized range typically between -1 and +1
- Combination of indicators for signal reliability
2. Boundary Tracking System
- Automatic detection of highest values in bullish phases
- Automatic detection of lowest values in bearish phases
- Step-line visualization of boundaries
- Color-coded for easy identification
3. Peak Detection System
- Identification of local maxima and minima
- Background highlighting of significant peaks
- Triangle markers for peak visualization
- Zero-line cross detection for trend changes
4. Signal Smoothing
- Signal line calculation via SMA
- Helps filter noise and identify trends
- Provides confirmation of momentum direction
Main Features
Oscillator Settings
- Customizable RSI length for sensitivity control
- Customizable MFI length for sensitivity control
- Normalized display for consistent visualization
- Signal smoothing for clearer readings
Visual Elements
- Color-coded columns showing momentum direction and strength
- Dynamic marker lines for momentum boundaries
- Peak triangles for significant turning points
- Background highlighting for peak identification
- Reference lines for momentum threshold levels
Signal Generation
- Zero-line crosses for trend change signals
- Boundary breaks for momentum strength
- Peak formation for potential reversals
- Color changes for momentum direction and acceleration
Customization Options
- RSI and MFI length parameters
- Marker line visibility and colors
- Peak marker color selection
- Peak background display options
Trading Applications
1. Trend Identification
- Directional line crossing above zero: bullish trend beginning
- Directional line crossing below zero: bearish trend beginning
- Column color: indicates momentum direction
- Column height: indicates momentum strength
2. Reversal Detection
- Peak triangles after extended trend: potential exhaustion
- Background highlighting: significant reversal points
- Directional line approaching marker lines: potential trend change
- Color shifts from bright to muted: decreasing momentum
3. Momentum Analysis
- Breaking above previous high boundary: accelerating bullish momentum
- Breaking below previous low boundary: accelerating bearish momentum
- Special coloring (magenta/cyan): boundary breaks indicating strength
- Approaching +1/-1 lines: extreme momentum conditions
4. Market Structure Assessment
- Consecutive higher peaks: strengthening bullish structure
- Consecutive lower troughs: strengthening bearish structure
- Peak comparisons: relative strength of momentum phases
- Boundary line steps: market structure levels
Optimization Guide
1. Oscillator Settings
- RSI Length: Default 14 provides balanced signals
- Lower values (7-10): More responsive, potentially noisier
- Higher values (20-30): Smoother, fewer false signals
- MFI Length: Default 14 provides balanced signals
- Lower values: More responsive to volume changes
- Higher values: Less sensitive to short-term volume spikes
2. Visual Customization
- Marker Line Colors: Adjust for visibility on your chart
- Peak Marker Color: Default yellow provides good contrast
- Enable/disable background highlights based on preference
- Consider chart background when selecting colors
3. Signal Interpretation
- Stronger signals: When directional line approaches +1/-1
- Confirmation: When peaks form after extended momentum
- Early warnings: When color intensity changes before direction
- Trend strength: Distance between zero line and current reading
4. Reference Line Usage
- Zero line: Primary trend divider
- +1/-1 lines: Extreme momentum thresholds
- Marker lines: Dynamic support/resistance levels
- Distance from reference: Momentum strength measure
Best Practices
1. Signal Confirmation
- Wait for zero-line crosses to confirm trend changes
- Look for peak formations to identify potential reversals
- Check for boundary breaks to confirm strong momentum
- Use with price action for entry/exit precision
2. Timeframe Selection
- Lower timeframes: more signals, potential noise
- Higher timeframes: cleaner signals, less frequent
- Multiple timeframes: confirm signals across time horizons
- Match to your trading style and holding period
3. Market Context
- Strong bullish phase: positive columns breaking above marker line
- Strong bearish phase: negative columns breaking below marker line
- Columns approaching zero: potential trend change
- Columns approaching +1/-1: extreme conditions, potential reversal
4. Combining with Other Indicators
- Use with trend indicators for confirmation
- Pair with other oscillators for divergence detection
- Combine with volume analysis for validation
- Consider support/resistance levels with boundary lines
Advanced Trading Strategies
1. Boundary Break Strategy
- Enter long when directional line breaks above previous high marker line
- Enter short when directional line breaks below previous low marker line
- Use zero-line as initial stop-loss reference
- Take profits at formation of opposing peaks
2. Peak Trading Strategy
- Identify significant peaks with triangular markers
- Look for consecutive lower peaks in bullish phases for shorting opportunities
- Look for consecutive higher troughs in bearish phases for buying opportunities
- Use zero-line crosses as confirmation
3. Extreme Reading Strategy
- Look for directional line approaching +1/-1 lines
- Watch for color changes and peak formations
- Enter counter-trend positions after confirmed peaks
- Use tight stops due to extreme momentum conditions
4. Column Color Strategy
- Enter long when columns turn bright green (increasing momentum)
- Enter short when columns turn bright red (increasing momentum)
- Exit when color intensity fades (decreasing momentum)
- Use marker lines as dynamic support/resistance
Practical Analysis Examples
Bullish Market Scenario
- Directional line crosses above zero line
- Green columns grow in height and intensity
- High marker line forms steps upward
- Peak triangles appear at local maxima
- Background highlights appear at significant momentum peaks
Bearish Market Scenario
- Directional line crosses below zero line
- Red columns grow in depth and intensity
- Low marker line forms steps downward
- Peak triangles appear at local minima
- Background highlights appear at significant momentum troughs
Consolidation Scenario
- Directional line oscillates around zero line
- Column colors alternate frequently
- Marker lines remain relatively flat
- Few or no new peak highlights appear
- Directional values remain small
Understanding Market Dynamics Through RSI + MFI Momentum Mapper
At its core, this indicator provides a unique lens to visualize market momentum by combining two complementary oscillators:
1. Combined Strength: By averaging RSI (price-based) and MFI (volume-based), the indicator provides a more comprehensive view of market momentum that considers both price action and buying/selling pressure.
2. Normalized Scale: The indicator normalizes values around zero, making it easier to identify bullish vs bearish conditions and the relative strength of momentum in either direction.
3. Dynamic Boundaries: The marker lines create a visual representation of the "high water marks" of momentum in both directions, helping to identify when markets are making new momentum extremes.
4. Exhaustion Signals: The peak detection system highlights moments where momentum has reached a local maximum or minimum, often precursors to reversals or consolidations.
Remember:
- Combine signals from directional line, marker lines, and peak formations
- Use appropriate timeframe settings for your trading style
- Customize the indicator to match your visual preferences
- Consider market conditions and correlate with price action
This indicator works best when:
- Used as part of a comprehensive trading system
- Combined with proper risk management
- Applied with an understanding of current market conditions
- Signals are confirmed by price action and other indicators
DISCLAIMER: This indicator and its signals are intended solely for educational and informational purposes. They do not constitute financial advice. Trading involves significant risk of loss. Always conduct your own analysis and consult with financial professionals before making trading decisions.
VWAP Momentum and Volatility IndicatorVWAP Momentum and Volatility Indicator
Merges VWAP trend, momentum oscillators (RSI & Stochastic), volatility measures (ATR & Bollinger Bands) and an optional volume filter into one overlay to generate more reliable buy/sell signals.
1) Components & Rationale
VWAP (Session/Day/Week/Month): Shows the volume-weighted average price trend with selectable reset periods.
VWAP ±1/±2/±3 StdDev Bands: Highlight volatility expansions or contractions—price moves outside these bands can signal breakouts or reversals.
RSI (14): Confirms overbought (>70) and oversold (<30) momentum, reducing false entries.
Stochastic (14, SlowK=3, SlowD=3): Captures momentum shifts; used alongside RSI for stronger confirmation.
ATR (14): Measures absolute price movement to aid in risk sizing and contextualizing band widths.
Bollinger Bands (20, 2σ): Identifies “squeeze” (low volatility) and “expansion” phases.
Volume Filter (optional): Ensures signals are backed by above-average volume.
2) Default Settings
VWAP Reset: Session
StdDev Multiplier: 2.0
VWAP Lookback: 20 bars
RSI: 14 period, Overbought = 70, Oversold = 30
Stochastic: 14 period, SlowK = 3, SlowD = 3
ATR: 14 period
Bollinger Bands: 20 period, Multiplier = 2
Volume Filter: 10-bar SMA threshold at 1.5× average
Visuals: VWAP bands, signal markers, and info table enabled; table positioned top-right at small size.
3) How to Use
Add to chart: Select “VWAP Momentum and Volatility Indicator.”
Adjust inputs: Set reset period, band multiplier, momentum thresholds and volume filter to match your asset and timeframe.
Buy signal: Price crosses above VWAP + (RSI < 50 or Stochastic in oversold) + volume filter pass.
Sell signal: Price crosses below VWAP + (RSI > 50 or Stochastic in overbought) + volume filter pass.
Info table: Review VWAP status, distance (%), band region, RSI, Stochastic, ATR%, Bollinger width, squeeze/expansion, relative volume, and the most recent signal.
4) Warnings & Disclaimer
This indicator is provided for educational purposes only. Always backtest with real funding and volume data, apply your own risk management, and recognize that past performance does not guarantee future results. Use the settings and signals as part of a broader trading plan.
ATR Momentum Pro### 🧠 **Purpose of the Script**
This indicator visualizes the **momentum of volatility** by calculating the difference between the current ATR (Average True Range) and its moving average. It helps detect periods when market volatility is accelerating or decelerating.
---
### ⚙️ **1. User Inputs**
```pinescript
atr_length = input.int(14, "ATR Period", minval=1, maxval=100)
ma_length = input.int(20, "MA Period", minval=1, maxval=50)
ma_type = input.string("SMA", "MA Type", options= )
```
* `atr_length`: Number of periods used to calculate ATR (default is 14).
* `ma_length`: Number of periods for smoothing the ATR.
* `ma_type`: Type of Moving Average to use for smoothing (SMA, EMA, RMA, or WMA).
---
### 📈 **2. Calculations**
```pinescript
atr = ta.atr(atr_length)
```
* Calculates the standard **ATR**, which measures market volatility using high, low, and close prices.
```pinescript
ma_value = switch ma_type
"SMA" => ta.sma(atr, ma_length)
"EMA" => ta.ema(atr, ma_length)
"RMA" => ta.rma(atr, ma_length)
"WMA" => ta.wma(atr, ma_length)
```
* Applies the selected Moving Average to the ATR to smooth it.
```pinescript
oscillator = atr - ma_value
```
* Calculates the **ATR Momentum Oscillator**:
* Positive values: volatility is increasing.
* Negative values: volatility is decreasing.
---
### 📊 **3. Oscillator Plot**
```pinescript
plot(oscillator, "ATR Momentum", color=color.new(color.blue, 0), style=plot.style_histogram)
```
* Plots the oscillator as a **blue histogram** in a separate pane below the chart.
---
### 🏷️ **4. Informational Label**
```pinescript
var label lbl = label.new(bar_index, na, "", style=label.style_label_center)
if barstate.islast
label.set_xy(lbl, bar_index, ta.highest(high, 10) )
label.set_text(lbl,
"ATR: " + str.tostring(atr, "#.##") +
"\nMA(" + str.tostring(ma_length) + "): " + str.tostring(ma_value, "#.##") +
"\nMomentum: " + str.tostring(oscillator, "#.##"))
label.set_color(lbl, oscillator > 0 ? color.green : color.red)
```
* Creates a **single label** that updates only on the **latest bar**.
* The label shows:
* Current ATR
* ATR moving average
* Momentum (difference between the two)
* Label color:
* **Green** if momentum > 0
* **Red** if momentum < 0
* The label is positioned just above the price (highest high of the last 10 bars, offset by 1 bar).
---
### ✅ **Use Case**
This indicator is useful for:
* Spotting increases or decreases in market volatility
* Confirming breakout strength
* Filtering trades based on volatility momentum
---
Would you like me to add **buy/sell signals** when the oscillator crosses above or below zero?