Function Volatility Stop V0
Feb 3, 2016

The Function Volatility Stop V0 indicator provides a versatile implementation of a volatility-based trailing stop that can be applied to any data series, such as the RSI. This tool helps traders identify trend reversals and define dynamic support and resistance levels based on market volatility.
Usage
The Usage section describes how the script can be used to identify trend shifts and manage trade exits. By default, this version is applied to an RSI series to demonstrate its flexibility beyond standard price action.
- Trend Identification: When the RSI crosses above the volatility stop line, the trend is considered bullish (green). When it crosses below, the trend is considered bearish (red).
- Dynamic Levels: The indicator plots a trailing line that adjusts based on the average range of the input series. This line can be used to set stop-loss levels or to confirm momentum shifts.
- Volatility Width: An additional width plot is included to visualize the magnitude of the volatility shift at the start of a new trend.
Details
The script utilizes a custom function fVstop that calculates the volatility stop based on four primary inputs: high source, low source, exit source, and a range value.
The core logic tracks the maximum and minimum values of the source during a trend. When a new trend begins, the volatility stop is offset from the current source value by a user-defined multiplier of the average range. During an uptrend, the stop only moves upward (locking in gains), and during a downtrend, it only moves downward. This version specifically calculates an EMA of the absolute changes in the RSI to derive the volatility component used for the stop calculation.
Settings
Main Settings
- Source for RSI: The price data (e.g., Close, Open, High) used to calculate the underlying RSI.
- RSI Length: The lookback period for the RSI calculation.
- Fast True Range Multiplier: The multiplier applied to the average range to determine the distance of the volatility stop from the source.
- Average Range Length: The period used to calculate the EMA of the RSI's absolute changes, representing the volatility baseline.
FAQ
How do I access Function Volatility Stop V0?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Can this indicator be used on price instead of RSI?
Yes, while the default example uses RSI, the underlying fVstop function is designed to handle any series. You can modify the script inputs to point to price sources or other oscillators.
What do the different colors represent?
The circles represent the Volatility Stop; green indicates a bullish trend where the source is above the stop, and red indicates a bearish trend where the source is below the stop.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

