Follow the trend with a trail that tightens in clean moves and widens in chop
Adaptive Volatility Trend draws one ATR trail on your TradingView chart, cyan under price in an up-trend and magenta above it in a down-trend, and prints Buy or Sell when a closed bar closes through it.
- One trail that switches sides on a closed-bar flip, with candles and a price gradient painted in the trend colour.
- Band width runs from 1.4 x ATR(10) in a clean trend to 3.0 x ATR in a choppy or expanding market.
- Buy and Sell are decided on closed bars only; the label and the trend colour never change while a bar is still forming.
- Take profit marks at 1.0, 2.5 and 3.0 x ATR from the entry, plus an optional RSI exhaustion exit, each with its own alert.
- The full Pine Script source code. Paste it into the Pine Editor, save, and add “Adaptive Volatility Trend [AlgoFXStore]” to your chart.
- A 13-page PDF manual with installation, every setting and how to read the chart. One-time €47.

See Adaptive Volatility Trend on a real chart
Press play; use the full-screen button to see every detail.
A fixed band width is wrong for half of every chart
A classic ATR trail sits a fixed multiple of ATR away from price. That one number has to suit a smooth trend and a sideways session at the same time, and it cannot. Set it tight and the trail flips back and forth in a range, each flip a new entry that goes nowhere. Set it wide and it lags so far behind a clean trend that the exit hands back most of the move.
Traders usually patch this by hand: a wider setting on choppy days, a tighter one when a trend looks clean, a second indicator to judge which kind of market they are in. The decision comes after the damage, and it changes from day to day, so no two trades are measured the same way.
Adaptive Volatility Trend makes that decision on every bar, with arithmetic you can read. When price moves efficiently and volatility is calm, the band tightens toward 1.4 ATR and its baseline speeds up. When price zig-zags or ATR expands above its own average, the band widens toward 3.0 ATR and the baseline slows down. The trail hugs a clean move and backs off in noise.
Everything Adaptive Volatility Trend draws on your chart
Read from the shipped Pine Script code.
- Adaptive Volatility Trail on price: one line, the lower band in an up-trend (cyan) and the upper band in a down-trend (magenta), 35 % transparent, width 1
- Vertical price gradient between the trail and the close in the trend colour: 70 % transparent at the trail fading to invisible at price
- Trend candles: every candle painted cyan in an up-trend, magenta in a down-trend
- Buy label (styled letters 'Buy', cyan box, black text) 1 ATR below the trail on the bar the trend flips up; Sell label ('Sell', magenta box, white text) 1 ATR above the upper band on a flip down.
- Static take profit marks (TP Mode Static, default): a green 'X' on the closed bar that first reaches TP1, TP2 or TP3, placed 0.75 ATR above that bar's high for a long or below its low for a short
- Optional Dynamic RSI take profit mark (TP Mode Dynamic or Both): one green 'X' per trade
- Optional Adaptive Basis line
- Four values in the Data Window only: Adaptive ATR Multiplier, Trend Efficiency, Volatility Ratio, Adaptive Regime Score
- AlgoFXStore watermark bottom right
How the trail, the flips and the targets are decided
The steps follow the shipped Pine Script code with its default settings. It reads only the chart's own candles; no other symbol or timeframe is requested.
- 1
Measure how clean the trend is
Trend efficiency is the net move over the last 12 bars divided by the total path travelled bar to bar. A straight run scores close to 1, a zig-zag close to 0. The less efficient the move, the more it pushes the regime score up, with a weight of 0.85.
- 2
Measure whether volatility is expanding
The current ATR(10) is compared with its 18-bar average. Only expansion counts: when ATR is above its average, the excess is turned into a volatility score between 0 and 1 and smoothed. It adds to the regime score with a weight of 0.50. The combined score is clamped between 0 and 1 and smoothed with a 3-bar EMA.
- 3
Turn the regime into a band
The band width is ATR(10) times a multiplier that runs from 1.4 at a regime of 0 to 3.0 at a regime of 1. The baseline is an EMA of the bar midpoint whose length moves from 3 bars in a clean trend to 11 bars in a choppy one. Upper and lower bands sit the band width above and below it.
- 4
Bands that only move toward price
Like a classic trend trail, each band only moves toward price while the trend holds: the lower band can rise but not fall during an up-trend, unless the previous close broke it. The trail you see is the lower band in an up-trend and the upper band in a down-trend, so it ratchets behind price.
- 5
A flip needs a closed bar
In a down-trend, a closed bar whose close is above the upper band flips the trend up and prints a cyan Buy label 1 ATR below the trail. In an up-trend, a close below the lower band flips it down and prints a magenta Sell label above the band. The trend state only changes on a confirmed bar.
- 6
Targets marked when reached
Each flip sets three targets from the signal bar's close using that bar's ATR: 1.0, 2.5 and 3.0 ATR. They are not drawn in advance. When a later closed bar's high (long) or low (short) reaches one, a green X appears 0.75 ATR beyond that bar. The optional dynamic exit marks the bar where RSI(14) falls back below 75 after a Buy, or rises back above 25 after a Sell.
Adaptive Volatility Trend on 12 different markets
Every chart below is a screenshot of TradingView itself with the shipped Adaptive Volatility Trend [AlgoFXStore] attached at its default settings. Forex, metals, indices, energy and crypto, so you can see how it reads each kind of market. They show what the indicator draws; they are not trading results. Tap or click any chart to open it full size.












Adaptive Volatility Trend on a real TradingView chart, frame by frame
Frames of a screen recording of the shipped indicator at its default settings, as the chart updates. Nothing is edited into the chart.




A step-by-step way to use it on your charts
The indicator decides the trend and marks the flips and targets. Where your stop goes and how much you risk stays your decision. A routine you can start from and test on a demo account:
- 1
Pick a timeframe where trends last
Trend following reads most clearly from 1 hour to daily. Suggested starting charts are 1 hour and 4 hours for gold and indices, 4 hours and daily for forex and crypto. On 5 to 15 minute charts the trail flips far more often; if you trade there, raise Minimum ATR Multiplier and Efficiency Length and confirm the direction on a 1 hour chart.
- 2
Act on the closed-bar flip
Wait for the bar to close and the Buy or Sell label to print, or for a Once Per Bar Close alert. Before acting, open the Data Window and read the Adaptive Regime Score of the flip bar. A score above about 0.7 means the flip came in chop or a volatility burst with the band near its widest; many traders then wait for a higher timeframe to agree.
- 3
Check the higher timeframe
Open the indicator on a chart about four times longer, for example 4 hours for a 1 hour entry, and take only the flips that agree with its trend colour. Skip a flip made by one huge news candle: the distance to the trail is then extreme, so wait for a pullback or let it go.
- 4
Choose your exit level before entry
No stop line is drawn. The trail is the level where the trend would flip, the indicator's own point of being wrong, and it often sits several ATR from the entry. Either size small enough to use the trail as your exit, or set your own tighter stop, for example 1.5 x ATR from the entry, and treat the take profit marks as exits.
- 5
Manage with the X marks
Size the position from your stop distance and a fixed risk per trade. As the trade runs, green X marks show the bars that reached TP1, TP2 and TP3. A common plan is to take part at the first marks and let the rest ride until the trail flips, or to close on the dynamic RSI mark if you use it.
- 6
Expect chop between trends
Flat markets produce flips in both directions, and a trend tool loses small amounts there. Keep the risk per trade fixed, avoid new entries in the minutes around high-impact news, and remember that forex, gold and index markets can open on Monday beyond the trail.
Everything Adaptive Volatility Trend does for you
Band width that adapts every bar
The ATR multiplier moves between 1.4 and 3.0 with the regime score, so the trail stays close to a clean trend and backs off when price zig-zags or volatility expands. Both ends are inputs.
A baseline that changes speed
The EMA of the bar midpoint behind the bands runs at 3 bars in a clean trend and 11 bars in a choppy one, from a Basis Length of 8 and two regime factors you can change.
Flips decided on closed bars
Buy and Sell, the trend colour, the take profit marks and every alert condition are evaluated on confirmed bars only. A label that has printed stays where it printed.
The trend at a glance
Cyan or magenta trail, candles painted in the trend colour and a vertical gradient between the trail and price that shows how far price has run from the flip level. Each layer can be switched off.
Take profits without clutter
Static targets at 1.0, 2.5 and 3.0 x the signal bar's ATR, marked only when a closed bar reaches them with a green X, 0.75 ATR beyond that bar. TP Mode can be Off, Static, Dynamic or Both.
An RSI exhaustion exit
The dynamic take profit arms when RSI(14) reaches 75 during a long or 25 during a short, then marks the bar where RSI crosses back. One dynamic mark per trade; the RSI length and both levels are inputs.
The engine in the Data Window
Hover any bar to read the Adaptive ATR Multiplier, Trend Efficiency, Volatility Ratio and Adaptive Regime Score that produced the trail on that bar. No panel covers your chart.
Six alert conditions
Adaptive Volatility Buy, Adaptive Volatility Sell, Static TP1, Static TP2, Static TP3 and Dynamic RSI TP. Each message names the symbol, and you create the ones you want from TradingView's Create alert dialog.
Adaptive Volatility Trend, feature by feature
Each picture is built from real platform screenshots of the shipped indicator at its default settings, labelled so you can see what every part does. Tap any picture to open it full size.









How traders put it to work
Gold on 1 hour and 4 hours
Gold trends hard with sharp pullbacks, and the defaults are a good place to start. The London session and the London and New York overlap are the most active hours. One news bar can flip the trail and reverse on the next, so many traders avoid new entries for 15 to 30 minutes around high-impact releases.
Forex on 4 hours and daily
Major pairs such as EURUSD trend more slowly, so 4 hours and daily suit the trail most. If you want to use it on 1 hour, try a Minimum ATR Multiplier of 1.8 so the band does not flip on every small pullback. Weekend gaps can open Monday's first bar beyond the trail.
Crypto on 4 hours and daily
Bitcoin and other coins swing around the clock. Use the defaults, or raise Maximum ATR Multiplier to 3.5 if the trail flips too often in large swings. Weekend volume is thinner, and flips can come on thin moves.
Indices on 1 hour and 4 hours
On index charts such as the NASDAQ 100, fast moves at the New York cash open can flip the trail within minutes. Let the opening bars pass before trusting a flip, and use the regime score to see when the band was at its widest.
Shorter charts with stricter settings
On 5 to 15 minute charts the trail flips far more often. Raise Minimum ATR Multiplier to 1.8 to 2.0 and Efficiency Length to 20, and confirm the direction on a 1 hour chart. If flips arrive too late instead, lower Maximum ATR Multiplier or Adaptation Smoothing.
Every setting, with its default
The names are the ones in the script's Settings dialog in TradingView (Inputs tab); the defaults are what every chart on this page uses. Open a group to see its settings.
01 · Color Scheme (5)
| Setting | Default | What it does |
|---|---|---|
| Bullish Color | #00FFE5 | Up-trend trail, gradient, candles, Buy label. |
| Bearish Color | #FF00B5 | Down-trend trail, gradient, candles, Sell label. |
| Buy Text | #000000 | Text of the Buy label. |
| Sell Text | #FFFFFF | Text of the Sell label. |
| TP X Color | #00E676 | Colour of every take profit 'X' (long and short). |
02 · Adaptive Engine (3)
| Setting | Default | What it does |
|---|---|---|
| Efficiency Length | 12 | Bars for trend efficiency: net move / total path. |
| Volatility Regime Length | 18 | Bars of the ATR average the current ATR is compared with. |
| Adaptation Smoothing | 3 | EMA length smoothing the volatility score and the regime score. |
03 · Adaptive Trend (5)
| Setting | Default | What it does |
|---|---|---|
| ATR Length | 10 | ATR of the band width, the label offset and the TPs. |
| Minimum ATR Multiplier | 1.4 | Band width in the cleanest trend (regime 0). |
| Maximum ATR Multiplier | 3 | Band width in the choppiest / most expanding market (regime 1). |
| Volatility Influence | 0.5 | Weight of volatility expansion in the regime score. |
| Efficiency Influence | 0.85 | Weight of inefficiency (choppiness) in the regime score. |
04 · Adaptive Basis (3)
| Setting | Default | What it does |
|---|---|---|
| Basis Length | 8 | Base length of the baseline EMA of hl2. |
| Fast Regime Factor | 0.4 | Length factor in a clean trend (8 x 0.40 = 3 bars). |
| Slow Regime Factor | 1.35 | Length factor in a choppy market (8 x 1.35 = 11 bars). |
05 · Signals (2)
| Setting | Default | What it does |
|---|---|---|
| Show Buy / Sell | on | Buy and Sell labels on trend flips. |
| Signal Trail Distance | 1 | Distance of the labels from the trail in ATR. |
06 · Take Profits (10)
| Setting | Default | What it does |
|---|---|---|
| TP Mode | Static | Off, Static, Dynamic, Both. |
| TP1 ATR | 1 | Static TP1 = entry + / - 1.0 x ATR at entry. |
| TP2 ATR | 2.5 | Static TP2 = entry + / - 2.5 x ATR. |
| TP3 ATR | 3 | Static TP3 = entry + / - 3.0 x ATR. |
| TP X Distance | 0.75 | Long X = high + 0.75 ATR, short X = low - 0.75 ATR. |
| Dynamic RSI Length | 14 | RSI of the dynamic take profit. |
| Long Exhaustion | 75 | RSI level that arms the long dynamic TP; it fires on the cross back below. |
| Short Exhaustion | 25 | RSI level that arms the short dynamic TP; it fires on the cross back above. |
| Static TP Xs | on | Show the static TP marks. |
| Dynamic TP Xs | on | Show the dynamic TP mark. |
07 · Display (8)
| Setting | Default | What it does |
|---|---|---|
| Show Adaptive Trail | on | The trail line (the gradient needs it). |
| Trail Width | 1 | Line width. |
| Trail Transparency | 35 | 0 = solid, 100 = invisible. |
| Show Adaptive Basis | off | The adaptive baseline line. |
| Basis Transparency | 80 | Transparency of the baseline line. |
| Vertical Price Gradient | on | Gradient fill between trail and price. |
| Gradient At Trail | 70 | Transparency of the gradient at the trail (it fades to invisible at price). |
| Trend Candles | on | Paint candles in the trend colour. |

The alert events, one by one
In TradingView: Create alert, choose “Adaptive Volatility Trend [AlgoFXStore]” as the condition and pick the event. TradingView then notifies you the way you set in that dialog: a pop-up in TradingView, a sound, the TradingView app on your phone or an e-mail.
- Adaptive Volatility Buy
- Adaptive Volatility Sell
- Static TP1
- Static TP2
- Static TP3
- Dynamic RSI TP
Adaptive Volatility Trend next to the usual options
Where it wins, and where it does not.
| Adaptive Volatility Trend | Typical free ATR trailing stop indicator | Reading it by hand | |
|---|---|---|---|
| Band width | 1.4 to 3.0 x ATR, set every bar by trend efficiency and volatility expansion | One fixed ATR multiplier in every market | Your judgement of whether the market is trending |
| When a flip counts | Only on a closed bar; labels never change while the bar forms | Varies; some flip on the forming bar | When you decide to look |
| Targets | Three ATR targets and an optional RSI exit, marked with an X when reached | Usually none | You measure them yourself |
| Why the trail moved | Multiplier, efficiency, volatility ratio and regime score in the Data Window | Rarely shown | Not visible at all |
| Stop loss | None drawn: the trail is the flip level, the stop is yours | The line itself is often used as a stop | Wherever you decide |
| Simplicity | 36 inputs across seven groups, though the defaults work as shipped | Two or three inputs | No software to learn at all |
| Cost | A one-time payment | Free | Free, paid for in screen time |
Honest about who this fits
A good fit if you
- You trade with the trend and want one clear line that tells you which side you should be on.
- You are tired of tuning a fixed ATR trail for every market and every week.
- You want flips that are final once the bar closes, so a printed label stays where it printed.
- You trade gold, forex, crypto or indices on TradingView, mostly from 1 hour to daily.
- You set your own stop and size and like ATR-based targets marked on the chart when they are reached.
Not for you if you
- Traders who want the indicator to place or close orders: it draws and alerts, it never sends an order.
- Range and mean-reversion traders: a trend trail flips in both directions in a flat market and loses small amounts there.
- Anyone who wants a stop loss line drawn for them: there is none, the trail is the flip level and the stop is yours.
- Scalpers who want frequent signals on 1 to 5 minute charts: the trail is designed around trends that last.
The full code, one manual, installed in two minutes
- 1Pine Script source codeAdaptive_Volatility_Trend_TradingView_Code.txt (32 KB): the full code. Paste it into the Pine Editor and it appears as “Adaptive Volatility Trend [AlgoFXStore]”.
- 13Page PDF manualInstallation, every setting with its default and how to read the chart.
- 36SettingsEvery one explained above, with the defaults the charts use.
- ✓Alert eventsYou choose which ones are on in the settings.
- 60Day money-back guaranteeIf it is not for you, request a full refund within 60 days through your Digistore24 order e-mail.
Install in five steps
- Download the zip from the page Digistore24 sends you to after checkout and unzip it.
- Open Adaptive_Volatility_Trend_TradingView_Code.txt in a text editor, select all and copy the whole code.
- In TradingView, open the Pine Editor, paste the code over everything that is there and click Save.
- Click Add to chart: “Adaptive Volatility Trend [AlgoFXStore]” appears on your chart.
- Read the PDF manual; the defaults are the settings shown on this page.

Kestutis Balciunas
AlgoFXStore · chart indicators
Kestutis Balciunas builds and publishes chart indicators under the AlgoFXStore name. Every product page shows what the indicator draws on real charts, and every number on it comes from the shipped build.
The charts on this page were captured in TradingView from the shipped Adaptive Volatility Trend [AlgoFXStore] at its default settings and are shown unedited.
No get-rich claims and no quoted win rates. Every trade is uncertain, and no indicator changes that. If you want to know whether it suits the way you trade before you buy, e-mail [email protected] and you will get a straight answer.
One price, one payment
- The full Pine Script source code of Adaptive Volatility Trend and the 13-page PDF manual
- Delivered as a digital download: one zip with the code file and the PDF manual on your download page
- Return period: 60 days, with a full refund if it is not for you
- Free updates to the current version on the same download page
60-day money-back guarantee. Install it, run it on your own charts and read the manual. If Adaptive Volatility Trend is not for you within 60 days of purchase, request a full refund from Digistore24, no questions asked: use the refund link in your Digistore24 order e-mail or Digistore24's order page digistore24.com/en/cancel-revoke-contract. Digistore24 refunds to your original payment method. It is a digital download: right after checkout you land on your download page, and the link to it is also in your Digistore24 order e-mail.
About the signals
Does it repaint?
Buy and Sell flips, the trend colour and the take profit marks are decided on closed bars only, so a label that has printed is not moved or removed later. Two things do move: the trail line itself follows price on the live bar until it closes, and the trend starts on the first loaded bar, so the very first flips of the history can differ when more history is loaded. Later flips are the same.
Why is the trail so far from my entry?
A flip needs a close beyond the opposite band, so at the moment of the signal the new trail often sits several ATR from the close, sometimes more than TP3's 3 ATR. Either size small enough to use the trail as your exit, or use your own tighter stop and treat the take profit marks as exits.
Why are the take profit levels not drawn as lines?
The indicator marks a target only when a closed bar reaches it. The three levels are computed at the flip from the entry and the ATR of the signal bar, and a green X appears on the bar that first reaches each one. If one bar reaches two targets, two X marks sit at the same spot.
What do the colours and marks mean?
Cyan trail, candles and gradient: up-trend. Magenta: down-trend. The cyan Buy label under the trail and the magenta Sell label above the band mark the closed bar that flipped the trend; both are written in styled script letters. A green X marks a bar that reached a static target or triggered the RSI exit.
What should I do when a Sell comes soon after a Buy?
That is the trail flipping in a range, the weak spot of any trend tool. Read the regime score of both flips in the Data Window; high scores mean choppy or expanding conditions. Use a higher timeframe's trend colour as a filter, or move up a timeframe if flips come too often for your style.
Settings and markets
Which symbols and timeframes does it work on?
Any TradingView symbol and timeframe, because it uses only price from the chart. It suits 1 hour to daily charts most. It needs about 40 bars of history before the trail appears. On 1 to 15 minute charts the band flips far more often; see the suggested settings above.
Should I keep the defaults or tune them?
Start with the defaults: ATR 10, multiplier 1.4 to 3.0, efficiency 12 bars, volatility average 18 bars. Too many flips: raise Minimum ATR Multiplier and Efficiency Length, or use a higher timeframe. Flips too late: lower Maximum ATR Multiplier or Adaptation Smoothing. Change one setting at a time and compare.
What is the regime score in the Data Window?
A number from 0 to 1 built from inefficiency and volatility expansion. Near 0 the market is moving cleanly in one direction and the band is tight; near 1 it is choppy or expanding and the band is wide. It is a reading of conditions on that bar, not a forecast.
My own candle colours disappeared. How do I get them back?
Trend Candles is on by default and paints every candle in the trend colour. Switch it off in the Display group of the Settings to see your normal candles again. The trail, labels and marks stay.
Alerts and running it
Which alerts are there and how do I set them?
Six alertcondition alerts: Adaptive Volatility Buy, Adaptive Volatility Sell, Static TP1, Static TP2, Static TP3 and Dynamic RSI TP. Choose Create alert, pick the indicator, then the condition, and set the frequency to Once Per Bar Close. Create one alert per condition you want. Each message includes the symbol.
Why do I get a TP alert but see no X?
The TP alerts follow TP Mode, not the display switches. Static TP Xs and Dynamic TP Xs only hide the marks, so the alerts still fire. To stop static target alerts, set TP Mode to Dynamic or Off; for the RSI alert, set it to Static or Off.
Does it work on the free TradingView plan?
Yes. It requests no other symbol and no lower-timeframe data, and draws one label per flip. Its alerts are standard alertcondition alerts; the free plan has a limited number of active alerts, and webhooks need a paid plan.
Can I backtest it?
It is an indicator, not a strategy, so it does not produce a results report. You can step through the flips and take profit marks bar by bar with TradingView's Bar Replay to see how it behaved on your market and timeframe.
How it works
Will it place trades for me?
No. Adaptive Volatility Trend is an indicator: it draws on the chart and can alert you. It never sends an order.
Do I need a paid TradingView plan?
No. It reads only the chart's own bars, so the free TradingView plan runs it. Alerts count against your plan's alert limit.
After you buy
How do I get it after paying?
Digistore24 runs the checkout. Right after payment it takes you to your download page with one zip holding the Pine Script source code file and the PDF guide; the link to that page is also in your Digistore24 order e-mail, so you can download again at any time.
How do I install it?
Open the code file, open the Pine Editor in TradingView, paste the whole code, click Save and then Add to chart: “Adaptive Volatility Trend [AlgoFXStore]” appears on your chart. The guide walks through it step by step.
Who is Digistore24?
Digistore24 is the reseller that sells Adaptive Volatility Trend for Kestutis Balciunas (AlgoFXStore): it runs the checkout, charges your card or PayPal, collects the VAT for your country and delivers the download. Its name is the one on your statement, and its order e-mail holds your download link and the refund link.
What is the refund policy?
A 60-day money-back guarantee, handled by Digistore24. If Adaptive Volatility Trend is not for you within 60 days of purchase, use the refund link in your Digistore24 order e-mail or Digistore24's order page (digistore24.com/en/cancel-revoke-contract) for a full refund, no questions asked. Digistore24 makes the refund to your original payment method.
Do I get the source code?
Yes. You get the full Pine Script source code as a text file for your own use; the licence line at the top of the code does not allow resale, sharing or republishing.
Adaptive Volatility Trend for TradingView.
Put a volatility-adaptive trend trail with closed-bar flips on your TradingView chart today. The full code, the manual and every setting explained. Instant download for €47, one payment.
Get instant access