TradeReign
Back to HomeEducation HubCompatibilityAboutDisclosures
TradingView Indicators

TradingView ATR Trailing Stop Compare Scripts, Stop Lines and Alerts

Two scripts can both use 14-period ATR and a 2× multiplier while drawing different lines on the same chart. Use the example below to isolate the price source, then compare the actual scripts in TradingView’s Data Window.

Quick Answer

In Supercharts, open Indicators and search for Volatility Stop, Chandelier Exit or the exact script and author. Match the ATR length and multiplier, then check which price the script trails, when its level can change, and which event its alert reports.

Compare both stop linesCheck alert timing

Choose the TradingView script by name and author

TradingView’s open-source Volatility Stop uses its vStop library function. The documented close-source example uses length 20 and factor 2. The line can reset when its trend flips. TradingView’s Chandelier Exit uses highs and lows from a rolling lookback to calculate exit levels. A community script called ATR Trailing Stop may use different inputs or alert conditions.

Add the scripts from Indicators. Record the author and script name, then match the chart symbol, dated contract, session and timeframe. In each script’s settings, check the ATR length, multiplier, price source, and any separate lookback or timeframe. If a script does not expose the source or the rule for moving the stop, check its author’s description or source code before treating the lines as equivalent.

See two stop levels from the same 14-bar ATR

On these synthetic five-minute MES candles, calculate both candidate levels at A, the 10:50 a.m. ET close. The preceding 14 true ranges including A are all 1.50 points, and the sample has no opening gaps. The 14-period ATR is 1.50 and a 2× multiplier gives a 3.00-point distance.

In the same 14-bar window, the highest high is 6,005.00 and the highest close is 6,004.25. Subtract 3.00 from each. The high-source candidate is 6,002.00 and the close-source candidate is 6,001.25, three MES ticks apart. This comparison changes only the anchor. Individual scripts can apply further logic, such as preventing the line from loosening or resetting it after a reversal.

At B, the 10:55 close is 6,001.75. It is below the level derived from highs and above the level derived from closes. Score the example against the two values known before B opened. In your own test, also note the scripts’ updated values at B’s close and whether their alerts use the previous level or the updated one.

36 MES candles with two ATR-based reference levels

Synthetic MES 5-minute candles. Times are bar closes in ET.

Marked bars · 10:50 A / 10:55 B

Price levels · 6,002 High source / 6,001.25 Close source

A is the completed calculation bar. B closes at 6,001.75, between the two levels that were already known. The reference lines show only the prices being compared at B.

Check what the alert is actually reporting

Open TradingView’s Data Window and put the crosshair on a completed candle. Write down each script’s stop level. In Create alert, choose the named script and then the event it exposes, such as a trend change or a crossing between Price and a stop plot. Some scripts do not offer both. Confirm which direction counts as the event.

If your test uses a completed close, select Once per bar close when that choice is available. For scripts that use an alert() function, check how the author set the alert frequency. Compare the Alerts Log timestamp and event message with the last completed candle and the indicator’s recorded level.

Compare alert delivery with broker order status separately. An alert can fire while there is no broker order working at its price. If you connect an alert to an execution workflow, confirm the account, contract, order ID, side, price, quantity and status in simulation before relying on it.

Sources

Official References

Platform details on this page were checked against these official resources.

TradingView’s Volatility Stop scriptCheck the volatility stop’s source, defaults and reversal behavior.TradingView Chandelier ExitConfirm the rolling extreme and ATR settings.TradingView Pine alerts and Volatility StopSee the documented close-source example and alert timing choices.
Related Guides

Keep Building the Rule System

Calculate ATR stop distance in ticks and dollars

Convert TradingView ATR points using the contract’s tick size and value.

Compare Chandelier Exit with a working stop

See what happens when the raw Chandelier value falls while the previous stop is already in effect.

Set a TradingView alert on the intended plot

Choose the source and check the alert history.

FAQ

Common Questions

Why are two TradingView ATR trailing stops different with the same inputs?

Check which price they trail, how far back they look, whether the stop can loosen, and what happens when the trend changes. Matching length and multiplier sets the ATR distance, while the anchor and update rules determine the line.

Does adding an ATR trailing stop indicator place an order?

Adding an indicator displays its calculations. Check your broker’s Orders panel for a working stop with the intended price and quantity.

Risk Disclosure

Futures trading contains substantial risk and is not suitable for every investor. TradeReign is a trading-discipline and rule-enforcement application. It does not provide trading advice, trade signals, investment recommendations, or performance guarantees.

TradeReign is not a broker-dealer, futures commission merchant, or investment advisor.

Futures trading contains substantial risk and is not for every investor. An investor could potentially lose all or more than the initial investment. Only risk capital - money that can be lost without jeopardizing financial security or lifestyle - should be used for trading. Past performance is not necessarily indicative of future results.