Signals and trade management
Buy Sell Profit Signals
Buy and sell markers with a mapped entry, stop, and two take-profit targets.
Buy Sell Profit Signals is a trend overlay built around one moving average and the volatility envelope that ratchets behind it. A selectable average forms the trend line, a Dynamic Trail trails it at a set ATR distance, and when the line crosses the trail the tool prints a BUY or SELL with a full trade map: entry, a trailing stop, and two take-profit targets. Its one job is to turn a clean trend flip into a plan with the risk already drawn.
What it does
A bare moving average tells you the direction and stops there. Buy Sell Profit Signals answers the next four questions on the chart: which way the trend runs, where you get in, where you are wrong, and where you take profit.
- Draws the trend line. One of eight moving averages (EMA by default) runs on the source price and sets the trend. Faster types like EMA, ZLEMA, and VAR turn quickly, SMA and TMA are smoother and slower.
- Wraps it in a Dynamic Trail. An ATR envelope sits a set multiple of volatility from the trend line and ratchets one way only, tightening with the trend and never loosening against it until the trend flips.
- Prints BUY and SELL. A BUY fires when the trend line crosses above the Dynamic Trail, a SELL when it crosses below, after optional close confirmation, a price-beyond-trail check, and a minimum spacing between signals.
- Maps the trade. Each signal projects an entry at the signal close, a stop just beyond the trail, and TP1 and TP2 at R-multiples of a capped risk distance, drawn as labeled lines to the right.
- Tracks the open setup. A corner dashboard reads trend, last signal, bars since entry, floating profit, distance to the stop, and a rolling win rate over recent outcomes.
Try it
The control that shapes the whole trade is the ATR Multiplier (default 3.0). It sets how far the Dynamic Trail sits from the trend line, in ATR units. Drag it. A bigger multiplier pushes the trail and the stop further from price, so one unit of risk (1R) grows and the green TP1 and TP2 targets, set at 1.2R and 2.2R, spread out. A smaller multiplier pulls the trail in tight, so flips come more often and the targets bunch up. The readout measures the open trade in R.
Synthetic data, for illustration. A BUY prints when the trend line crosses up through the Dynamic Trail. The stop starts just beyond the trail, set by the ATR Multiplier, and one unit of risk (1R) is the entry-to-stop distance. TP1 and TP2 sit at 1.2R and 2.2R of a capped risk, so a wider multiplier spreads the targets out. “Open trade” reads how far price has run from entry in R. The real indicator runs on your TradingView chart.
In plain words
You buy at the white line. The red line below is your safety line: if price falls to it, you are out. The gap between the two is one step of risk, called 1R. The two green lines are reward steps, set here at a little over one step (1.2R) and a bit over two steps (2.2R) of profit.
The slider sets how wide the trail and the safety gap are. Wider means a bigger step, so the green lines spread out and signals are rarer. Tighter bunches them up and fires more often. "Open trade" says how many steps price has gained since you bought, so +1R means it has run one full step in your favor.
In the live tool the ATR Multiplier sits next to ATR Length, Moving Average Type, and Moving Average Length for the engine, the three Signal Engine filters, and the Trade Model inputs that place the stop and the targets.
Markets, phases, timeframes
Assets and markets
- Crypto: BTC, ETH, and liquid majors like SOL, BNB, and LINK.
- 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 the trend line whips and the trail crosses on noise.
Market phases
- Clean trends: the trend line runs at an angle, the trail ratchets behind it, and a single BUY or SELL rides for a long stretch. This is where the trade map pays.
- Pullbacks inside a trend: the ratchet holds the trail at its tightest reached level, so a shallow dip does not cross it and the open setup survives the correction.
- Low-volatility chop: the trend line and the trail sit close together and cross back and forth. The minimum-bars filter mutes some of it, but most flips here go nowhere. Stand aside.
- Post-news expansion: ATR jumps, the trail backs off, and the stop sits wider. That is by design, so a volatility spike does not knock you out at the worst moment.
Timeframes
| Timeframe | Use |
|---|---|
| H1 | Minimum suggested timeframe. Active swing trading, a few signals a week on liquid pairs. |
| H4 | Balanced mode. Clean trend waves and a good ratio of signal frequency to quality. |
| D1 | Swing and position trading. The main mode for reading bias and holding larger positions. |
| W1 | Long-horizon picture. Rare, strong flips. Useful as a bias filter for lower timeframes. |
Below H1 the trend line crosses the trail on noise: many signals, lower quality. Raise ATR Length and the ATR Multiplier to compensate, or move up a timeframe. The author suggests H1 and higher.
What you see on the chart
The tool draws the trend line and the Dynamic Trail with a colored fill between them that turns green or red with the active direction. On each signal it stamps a BUY or SELL label, projects the Entry / SL / TP lines to the right, and a corner dashboard shows the live state.
The trend line and the Dynamic Trail below it, with a green fill while the active direction is up. The trail ratchets up under price and only the trend can pull it down again at a flip.
The same line and trail turn red while the direction is down, with the trail ratcheting down above price. The color flips at the signal.
A BUY label prints below price when the trend line crosses above the trail and the filters pass. It marks the start of a new trade map.
A SELL label prints above price at the down-cross, the mirror of BUY.
A grey line at the signal-bar close. This is the reference entry the stop and targets are measured from.
The red stop line, placed just beyond the Dynamic Trail plus an ATR buffer and at least a fifth of an ATR from entry. It trails in the trade direction and updates its label as it moves.
Two green target lines at 1.2R and 2.2R of the capped risk distance. They stay fixed for the life of the setup while the entry and stop lines extend to the right.
When price reaches a target, a 1TP or 2TP marker prints the percent gain that was reached at that level. SL history markers are off by default.
A six-row corner table of the live trade and market state, color-coded green for bullish and red for bearish.
| Row | Shows | Values |
|---|---|---|
| TREND | Active direction of the channel | UP, DOWN |
| Last Signal | The most recent signal direction | BUY, SELL, - |
| Bars Since | Bars since entry on the open trade | A bar count, or - |
| Profit % | Floating profit from the entry. Green when positive, red when negative | A two-decimal percent, or - |
| To Stop | Distance from price to the current stop, in percent | A two-decimal percent, or - |
| Win Rate | Share of recent outcomes that reached TP1 before the stop, with the sample count | A percent and a count, like "60% / 25 signals", or - |
How to use it
A green fill means the active direction is up, red means down. The trend line and the trail are your at-a-glance read before any trade.
Enter on a BUY or SELL label, on the signal-bar close or the next open. The signal already cleared close confirmation, the price-beyond-trail check, and the minimum-bars spacing, so clustered and weak crosses are dropped before they print.
The red line is your stop, set just beyond the Dynamic Trail with an ATR buffer. TP1 and TP2 are projected at 1.2R and 2.2R. Scale out at the targets or let the trailing stop carry the rest, your call.
Trend, last signal, bars since entry, floating profit, distance to stop, and the rolling win rate tell you how the open setup is doing without re-reading the chart.
Raise the ATR Multiplier and ATR Length for a wider, slower trail with fewer, cleaner signals. Lower them for a tighter, more reactive one. Pick a moving average type once and leave it.
Typical scenarios
- Swing entry on a signal. Take the BUY or SELL, stop on the red line, and let TP1 lock in a quick partial while TP2 runs on the trailing stop.
- Trend filter for another system. Only take longs while TREND reads UP and shorts while it reads DOWN, and ignore your own counter-trend setups.
- Multi-timeframe confluence. A D1 uptrend plus an H4 BUY is a stronger setup than either alone.
When to ignore the signal
- The trend line crossed the trail two or three times in the last ten to fifteen bars. The market is ranging and the crosses are noise.
- The trend line is almost flat and price is sitting on the trail. There is no trend to ride. Wait for a clear direction.
- The signal landed on a news release before ATR had time to widen. Skip it or wait for a second signal.
- You are on M15 or lower. H1 is the minimum suggested timeframe here.
Settings and signals
Defaults below are the real values from the indicator, grouped as Core Calculations, Signal Engine, and Trade Model. Start there and change one thing at a time.
| Parameter | Default | Effect |
|---|---|---|
Source | hl2 | Price series the engine runs on. hl2 smooths the wicks, close gives stricter signals, hlc3 leans on the typical price. |
ATR Length | 10 | Lookback for the volatility measure that sizes the trail. Higher is a smoother, slower trail. Lower is tighter and more reactive. |
ATR Multiplier | 3.0 | How far the Dynamic Trail sits from the trend line, in ATR units. Higher is a wider trail with fewer but safer flips. Lower is a tighter trail with more signals. |
Moving Average Type | EMA | Formula for the trend line: SMA, EMA, WMA, TMA, VAR, WWMA, ZLEMA, or TSF. EMA, ZLEMA, and VAR react fast, SMA and TMA are smoother. |
Moving Average Length | 10 | Lookback for the moving average. Higher is a smoother, slower trend line. Lower is faster and noisier. |
Use Built-in ATR? | true | On uses the built-in ATR for volatility. Off uses a simple moving average of True Range over the same length. |
Confirm signals on bar close | true | On counts a signal only once the bar closes, with no intrabar repaint. Off lets signals fire live during the bar. |
Require price confirmation | true | On also needs a close above the trail for a BUY and below it for a SELL. Off triggers on the trend-line cross alone. |
Min bars between signals | 8 | Minimum bars between two signals. Higher filters clusters and over-trading. Lower allows rapid back-to-back signals. |
TP1 R | 1.2 | First take-profit distance as a multiple of risk. 1.2 places TP1 at 1.2x the entry-to-stop distance. |
TP2 R | 2.2 | Second take-profit distance as a multiple of risk. Keep it larger than TP1 for a runner target. |
Stop ATR buffer | 0.15 | Extra padding beyond the Dynamic Trail when placing the stop, in ATR. Higher is a roomier stop with fewer stop-outs. Lower is tighter. |
Target risk ATR cap | 1.5 | Caps the risk distance used for the TP math at this many ATR, so a far stop does not blow the targets out. Higher lets targets stretch. |
Entry / SL / TP line length | 25 | How many bars to the right the projection lines extend. Purely the visual length. |
Win Rate sample size | 50 | Number of recent closed outcomes feeding the win rate. Higher is a smoother, slower figure. Lower is more reactive. |
Show dynamic trail channel | true | Show or hide the trend line and the Dynamic Trail with its fill. |
Show Entry / SL / TP lines | true | Show or hide the live Entry, SL, TP1, and TP2 lines and labels for the current setup. |
Show dashboard | true | Show or hide the stats table in the top-right corner. |
Show historical SL labels | false | Drop a small SL marker each time a stop is hit. Off by default to reduce clutter. |
Show historical TP labels | true | Drop a TP marker with the percent gain each time a target is reached. |
The indicator exposes three alert events through alertcondition. Set TradingView alerts on them and choose Once Per Bar Close so events fire only on a closed candle.
| Signal | Condition | Means |
|---|---|---|
| BUY Signal | The trend line crosses above the Dynamic Trail and the active filters pass | The buy signal. A BUY label and a fresh trade map. |
| SELL Signal | The trend line crosses below the Dynamic Trail and the active filters pass | The sell signal. A SELL label and a fresh trade map. |
| Price / Dynamic Trail Cross | The source price crosses the Dynamic Trail in either direction | An early heads-up that a flip may be forming, before the confirmed signal. |
Glossary
- BUY
- A bet on a rise. You buy lower and aim to sell higher. The green label below price.
- SELL
- A bet on a fall, or an exit. The exchange lets you sell an asset you do not own, then buy it back cheaper for the difference. The red label above price.
- Trend line
- The moving average that sets the direction. You choose one of eight formulas, from a fast EMA to a smooth SMA.
- Dynamic Trail
- A line that follows the trend at a set ATR distance and ratchets one way only. It tightens with the trend and never loosens against it until the trend flips. The cross between the trend line and this trail is the signal.
- ATR
- Average range of a bar over the recent window. Roughly how much the asset is moving right now. Bigger ATR means bigger candles and a wider trail and stop.
- 1R
- One unit of risk: the distance from entry to stop. Profit reads cleanly in R, so a target at 2.2R aims for two and a fifth times what you risked.
- Capped risk
- The risk distance used for the TP math, limited to the ATR cap so a far stop does not push the targets unreasonably wide. TP1 and TP2 are measured off this capped value.
- Floating profit
- Profit on a trade that is still open. The number moves every tick and is not money in your pocket until you close.
- Win rate
- Here, the share of recent outcomes that reached TP1 before the stop. A rough read on how the current settings behave, not a promise.
Risk and position size
The trade map 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 flip was wrong. They blow up by sizing in too big and skipping the stop, and the red line is there to prevent exactly that. Let it set your size.
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.
Your entry is the signal close, your stop is the red line. The gap between them is 1R, your risk per unit.
Position size = (cash you are willing to lose) / (distance from entry to stop). A wider trail 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 BUY fires and you enter at $100. The stop sits at $95, so 1R is $5.
Size = $10 risk / $5 stop distance = 2 units. A hit stop loses exactly $10. Price reaching TP1 at 1.2R makes $12, and TP2 at 2.2R makes $22. Raise the ATR Multiplier and the trail drops further, so the same $10 buys fewer units.
Common mistakes
- Sizing in on the whole balance. One candle against you and the account is gone. Let the risk decide the size, every time.
- Taking every signal on M5 and M15. On low timeframes the trend line crosses the trail constantly and most of it is noise. Wait for H1 and up.
- Trading the chop. If the trend line crossed the trail two or three times in the last ten to fifteen bars, the market is ranging. Stand aside.
- Moving the stop away to sit out a drawdown. The thought "it will turn back any second" has emptied more accounts than any crash. The trailing stop already gives room in the right direction.
- Reading the win rate as a promise. It is a rolling sample of past outcomes on this chart, not the odds of the next trade.
- Re-tuning the engine after every loss. Leave the defaults and judge it over twenty to thirty trades before you change anything.
Limitations
- In a flat, choppy range the trend line crosses the trail back and forth and the trade maps go nowhere. Stand aside until the market picks a direction.
- A lower ATR Multiplier or shorter ATR Length reacts faster but flips more often. A higher one is smoother but later. Pick the trade-off on purpose.
- Below H1 the trend line is too sensitive to noise. Many signals, lower quality. H1 is the minimum suggested timeframe.
- The win rate counts TP1 before the stop on a rolling sample. It is context, not a forecast, and it says nothing about how far TP2 runs.
- It maps risk and makes no promise about the outcome. The trader keeps full responsibility for execution.
Educational tool. Not financial advice. Trading involves risk.
More in Signals and trade management
Want the full toolkit?
Every package bundles indicators that work together. Pick the tier that matches your workflow.
See pricing