MSL.
Smart Trend Manager
OverviewBuy now

Signals and trade management

Smart Trend Manager

Structure-break entries managed by a ratcheting ATR trailing stop.

Included inPro

Smart Trend Manager is a structure overlay that reads swing pivots and manages the trade after entry. It flips LONG when price closes above the most recent pivot high and SHORT when it closes below the most recent pivot low, then rides the position with a ratcheting ATR trailing stop and two ATR-projected targets. Its one job is to turn a structure break into a managed trade with a stop that follows price.

What it does

Most structure tools mark the break and stop there. Smart Trend Manager marks the break, then answers the next questions: where you got in, where the trailing stop is, where the two targets sit, and how the open trade is doing right now.

  • Reads market structure. It tracks the most recent confirmed pivot high and pivot low using a swing detector. A close beyond either one is a structure break.
  • Fires LONG and SHORT. A LONG prints when price closes above the last pivot high while the trend is not already long. A SHORT prints when price closes below the last pivot low. An optional bars filter thins out rapid flips in chop.
  • Ratchets a trailing stop. The stop sits an ATR multiple from price. In a long it only moves up, in a short only down. Touching it closes the trade. This is the real exit.
  • Projects two targets. TP1 and TP2 are placed at ATR multiples from the entry. They are reference levels for scaling out, the trailing stop still decides the close.
  • Tracks the open trade. A right-side panel projects Entry, Trail Stop, TP1, and TP2, and a corner dashboard reads trend, status, last signal, bars since entry, open profit, distance to the trail, and a rolling win rate.

Try it

The control that shapes the whole trade is the ATR Multiplier (default 4.0). It sets how far the trailing stop sits from price, measured in ATR units. The entry fires when price breaks the pivot, and the stop trails behind it from there. Drag the slider. A bigger multiplier pushes the stop further away, so the trade has more room to breathe and survives deeper pullbacks, at the cost of giving back more when it does close. A smaller multiplier pulls the stop in tight, so it exits sooner and locks gains faster, but a normal wobble can knock you out early.

TP1TP2entry
to trail:+4.87%

Synthetic data, for illustration. The dots are swing pivots: the structure that an entry breaks. A LONG fires when price closes above the last pivot high, then the ATR trailing stop manages the trade. The ATR Multiplier sets how far that stop sits from price, so a bigger value rides looser and a smaller one keeps it tight. TP1 and TP2 are projected from ATR. “To trail” reads how far price sits from the trailing stop. The real indicator runs on your TradingView chart.

In plain words

The dots are swing turns: a high where price topped out, a low where it bottomed. When the candle closes above the last high, that is the break, and the tool buys there. The line that follows underneath is the safety line. If price falls to it, you are out.

The slider sets how far below price that safety line sits. Push it up and the line drops away, giving the trade space to wiggle without stopping you. Pull it down and the line hugs price, so you exit at the first real dip. The line only climbs in a long, it never slides back down, so it keeps locking in more of the move as price rises.

In the live tool the ATR Multiplier sits next to Pivot Length for the structure detector, ATR Length for the volatility window, and the TP1 ATR Multiplier and TP2 ATR Multiplier inputs that place the two targets.

Markets, phases, timeframes

Assets and markets

  • Crypto: BTC, ETH, and liquid majors like SOL, BNB, and LINK, where swing structure is clean enough to read.
  • Futures: ES, NQ, CL, GC, and BTC perps.
  • FX majors: EURUSD, GBPUSD, USDJPY and the main crosses.
  • Large-cap stocks and indices: AAPL, MSFT, NVDA, the S&P and Nasdaq indices.
  • It works worse on thin altcoins and gappy small caps, where pivots form on noise and a gap can blow straight through the trailing stop.

Market phases

  • Clean trends: price makes higher highs, breaks each pivot in turn, and the ratcheting stop rides the move for a long stretch. This is where the tool pays.
  • Pullbacks inside a trend: a wide ATR Multiplier lets the stop sit under the noise, so a shallow correction does not close the trade before TP1.
  • Choppy ranges: price pokes above one pivot and below the next, firing LONG and SHORT in quick succession. Most of those go nowhere. Raise Min Bars Between Signals or stand aside.
  • Volatility spikes: ATR jumps, so the stop backs off and the targets stretch. That is by design, so a single fat candle does not knock you out at the worst moment.

Timeframes

TimeframeUse
H1Minimum recommended timeframe. Active swing trading, a handful of breaks a week on liquid pairs.
H4Balanced mode. Pivots are meaningful and the ratio of signal frequency to quality is good.
D1Swing and position trading. The main mode for reading structure and holding larger positions.
W1Long-horizon picture. Rare, strong breaks. Useful as a bias filter for lower timeframes.

Below H1 pivots form on noise: many breaks, lower quality. Raise Pivot Length and Min Bars Between Signals to compensate, or move up a timeframe.

What you see on the chart

The tool plots the trailing stop only while a trade is open, stamps a neon LONG or SHORT marker at each break, and projects a compact trade area to the right with Entry, Trail Stop, TP1, and TP2. A corner dashboard shows the live state.

Bull trailing stop

A green line below price while a long is open. It only ratchets up, one ATR Multiplier below the close. When price drops to it, the long closes.

Bear trailing stop

A red line above price while a short is open. It only ratchets down, one ATR Multiplier above the close. When price rises to it, the short closes.

Neon LONG marker

A bright triangle and LONG text printed at the break, anchored below the start of the green trailing stop. It marks a new long and a fresh trade area.

Neon SHORT marker

A bright SHORT text and triangle printed at the break, anchored above the start of the red trailing stop. The mirror of LONG.

Entry line and label

A thin white line in the right-side area, marking the price where the active trade opened. The label can show the exact entry price.

Trail Stop line and label

A solid red line in the right-side area that moves with the live trailing stop. This is the active exit. The label can show its current price.

TP1 and TP2 lines and labels

Two dashed yellow-brown lines at the ATR-projected targets, with TP1 and TP2 labels. Each line and label fades and gets a checkmark once that target is reached.

TP hit labels

When price reaches a target, a compact 1TP or 2TP label prints the realized percent at that level, green after a long, red after a short.

Dashboard

A seven-row corner table of the live trade and market state, color-coded green for bullish and red for bearish.

RowShowsValues
TRENDDirection of the active tradeUP, DOWN, NEUTRAL
StatusState of the active scenarioACTIVE, CLOSED, WAIT
Last SignalThe most recent break directionLONG, SHORT
Bars SinceBars since the last signalA bar count, or a dash
Profit %Open profit from the entry. Green when positive, red when negativeA two-decimal percent, or a dash
To TrailDistance from price to the trailing stop, in percentA two-decimal percent, or a dash
Win RateShare of recent signals that reached TP1 before the trailing stop, with the sample sizeA percent over N signals, or a dash

How to use it

1
Read the structure

The pivots tell you where the swing highs and lows are. A trade only opens when price closes through one of them, so the signal already comes from a confirmed break.

2
Enter on the break

Take the trade on a LONG or SHORT marker, on the break bar close or the next open. The entry is the close that broke the pivot, shown on the white Entry line.

3
Let the trailing stop run the trade

The red Trail Stop line is your exit. It ratchets in your favor and never moves against you, so you stay in while the trend holds and you are out the moment it gives way. You do not move it by hand.

4
Use TP1 and TP2 to scale out

TP1 and TP2 are projected at ATR multiples from the entry. Bank a partial at TP1, let the rest run toward TP2, and keep the trailing stop on the remainder. The targets are optional, the trail is the real close.

5
Watch the dashboard

Trend, status, open profit, distance to the trail, and the rolling win rate tell you how the open trade is doing without re-reading the chart.

Typical scenarios

  • Structure break swing. Take the LONG on a close above the pivot high, bank a partial at TP1, and trail the rest until the stop takes you out.
  • Trend filter for another system. Only take longs while the dashboard reads UP and shorts while it reads DOWN, and skip your own counter-trend ideas.
  • Multi-timeframe confluence. A D1 uptrend plus an H4 LONG break is a stronger setup than either alone.

When to ignore the signal

  • LONG and SHORT have alternated two or three times in the last ten to fifteen bars. The market is ranging and the breaks are noise.
  • The pivots are tiny and close together, with no clear swing structure. There is nothing to break that means anything.
  • The break landed on a news release before ATR had time to settle. Skip it or wait for the next one.
  • You are on M15 or lower. H1 is the minimum recommended timeframe here.

Settings and signals

Defaults below are the real values from the indicator, grouped the way the settings panel groups them. Start there and change one thing at a time.

ParameterDefaultEffect
Pivot Length10Lookback and lookahead window for pivot detection. Smaller values find more pivots and react faster but add noise. Larger values find only major structural turns.
Min Bars Between Signals0Minimum bars required between consecutive signals. Raise it to thin out rapid flip-flopping in chop. Zero disables the filter.
Show Trailing StoptrueShow or hide the ATR trailing stop line, the protective floor in a long and ceiling in a short.
ATR Length14Period for the ATR. Lower makes the stop and targets more reactive, higher gives a smoother volatility estimate.
ATR Multiplier4.0How far the trailing stop sits from price, in ATR units. Higher is a wider stop with fewer stop-outs, lower is a tighter stop with more.
Show TP LabelstrueShow the compact 1TP and 2TP labels when targets are reached.
Show Trail Exit LabelstrueShow a compact TRAIL EXIT label when the trailing stop closes the trade.
TP1 ATR Multiplier2.0First take-profit distance in ATR units from the entry. Lower makes TP1 closer and more often reached.
TP2 ATR Multiplier3.5Second take-profit distance in ATR units from the entry. The tool keeps TP2 above TP1 internally if you set it too close.
Win Rate Sample50Number of recent completed signals used for the rolling win rate. Higher is a smoother, slower figure.
Show Active Trade AreatrueShow or hide the right-side lines and labels for Entry, Trail Stop, TP1, and TP2.
Right Projection Bars25How many bars to project the active trade area to the right. Purely the visual length.
Right Label Offset1Extra horizontal offset for the right-side labels, so they clear the lines.
Show Prices In LabelstrueShow the exact price value in each right-side trade label, not just the name.
Show DashboardtrueShow or hide the corner status table with trend, status, profit, trail distance, and win rate.
Positiontop_rightWhere on the chart to anchor the dashboard. A change needs a chart refresh to take effect.

The indicator exposes eight alert events through alertcondition. Set TradingView alerts on the ones you want and choose Once Per Bar Close so events fire only on a closed candle.

AlertConditionMeans
LONG SignalPrice closes above the most recent pivot high, trend is not already long, and the bars filter passesThe buy signal. A LONG marker and a fresh trade area.
SHORT SignalPrice closes below the most recent pivot low, trend is not already short, and the bars filter passesThe sell signal. A SHORT marker and a fresh trade area.
1TP Long / 1TP ShortPrice reaches the TP1 level in the open tradeFirst target hit. Bank a partial.
2TP Long / 2TP ShortPrice reaches the TP2 level after TP1 has already been reachedSecond target hit.
Trail Exit Long / Trail Exit ShortPrice touches the trailing stop in the open tradeThe real close. The trade is over.

Glossary

LONG
A bet on a rise. You buy lower and aim to sell higher. The neon green marker on the chart.
SHORT
A bet on a fall. The exchange lets you sell an asset you do not own, then buy it back cheaper for the difference. The neon red marker.
Pivot
A confirmed swing turn: a high with lower bars on both sides, or a low with higher bars on both sides. It takes a few bars to confirm, which is why structure reads after the fact.
Structure break
A close beyond the most recent pivot. A close above the last pivot high is a bullish break, a close below the last pivot low is a bearish one.
ATR
Average range of a bar over the recent window. Roughly how much the asset moves right now. Bigger ATR means bigger candles, a wider stop, and further targets.
Trailing stop
A stop that follows price in your favor and never the other way. Here it sits an ATR Multiplier from price and ratchets along behind the trend until price touches it.
TP1 and TP2
Two take-profit levels projected at ATR multiples from the entry. They are reference points for scaling out, the trailing stop still decides when the trade closes.
Win rate
Here, the share of recent signals that reached TP1 before the trailing stop closed them. A rough read on how the current settings behave, not a promise.

Risk and position size

The trade area puts your risk on the chart in plain numbers. The signal is maybe a fifth of the result, and risk management is the rest. Beginners rarely blow up because a break failed. They blow up by sizing in too big and skipping the stop, and the Trail Stop line is there to prevent exactly that. Let the entry-to-stop distance set your size.

1
Risk a fixed 1 percent

On any one trade, risk no more than one to two percent of the account. A hit stop then costs one to two percent and the account survives a losing run.

2
Read the risk off the area

Your entry is the white line, your initial stop is the red Trail Stop line at entry. The gap between them is 1R, your risk per unit.

3
Let the risk set the size

Position size = (cash you are willing to lose) / (distance from entry to the stop). A bigger ATR Multiplier means a wider stop and a smaller size for the same cash risk.

In plain words

Account $1,000. You risk 1 percent, so $10 on this trade. A LONG breaks and you enter at $100. With a 4.0 ATR Multiplier the trailing stop starts at $96, so 1R is $4.

Size = $10 risk / $4 stop distance = 2.5 units. A hit stop loses about $10. With TP1 at 2 ATR and TP2 at 3.5 ATR, the targets sit roughly $8 and $14 above entry. Lower the ATR Multiplier and the stop tightens, so the same $10 buys more units but the stop sits closer to price.

Common mistakes

  • Sizing in on the whole balance. One candle against you and the account is gone. Let the entry-to-stop distance decide the size, every time.
  • Taking every break on M5 and M15. On low timeframes pivots form on noise and you get dozens of false breaks a day. Wait for H1 and up.
  • Trading the chop. If LONG and SHORT have alternated two or three times in the last ten to fifteen bars, the market is ranging. Raise Min Bars Between Signals or stand aside.
  • Overriding the trailing stop by hand to sit out a drawdown. The whole point of the ratchet is that it never moves against you. Move it and you have thrown away the exit.
  • Treating TP1 and TP2 as the close. The trailing stop is the real exit. The targets only tell you where to scale out.
  • Reading the win rate as a promise. It is a rolling sample of past signals on this chart, not the odds of the next trade.

Limitations

Important: This is an analysis and planning tool. It draws levels and statistics, it places no orders, and it is not a strategy. Pivots confirm a few bars after the fact, so a break is read once the swing is set, and the trailing stop reacts to a turn rather than predicting it.
  • In a flat range price breaks one pivot then the next, firing LONG and SHORT back to back, and the trades go nowhere. Raise Min Bars Between Signals or stand aside.
  • A smaller ATR Multiplier exits faster but gets stopped on normal noise. A larger one rides longer but gives back more at the turn. Pick the trade-off on purpose.
  • A gap or a single fat candle can jump straight past the trailing stop, so the real exit can be worse than the line on the chart.
  • Below H1 pivots form on noise. Many breaks, lower quality. H1 is the minimum recommended timeframe.
  • The win rate counts TP1 before the trailing stop on a rolling sample. It is context, not a forecast, and it says nothing about how far TP2 runs.
  • It manages the trade and makes no promise about the outcome. The trader keeps full responsibility for execution.

Educational tool. Not financial advice. Trading involves risk.

Want the full toolkit?

Every package bundles indicators that work together. Pick the tier that matches your workflow.

See pricing