logo
Developers

Trailing Buy

Script from: TradingViewLongTermPullbackTrend followingPrice actionBot

Instead of buying immediately on a signal, this strategy waits for a better entry. It trails the price as it dips, placing a buy order only after the price reverses and moves up by a small, predefined percentage. This method aims to catch the bottom of a local dip, potentially improving your entry point and increasing the trade's profit margin compared to a standard market buy on the initial signal.

OM / TetherUS (OMUSDT)

+ Trailing Buy

@ Daily

2.76

Risk Reward

2,030.60 %

Total ROI

18

Total Trades

Fetch.AI / TetherUS (FETUSDT)

+ Trailing Buy

@ Daily

2.46

Risk Reward

28,888.01 %

Total ROI

17

Total Trades

Zcash / TetherUS (ZECUSDT)

+ Trailing Buy

@ Daily

2.17

Risk Reward

573.81 %

Total ROI

53

Total Trades

Cronos/Tether (CROUSDT)

+ Trailing Buy

@ Daily

2.13

Risk Reward

4,087.83 %

Total ROI

46

Total Trades

Fantom / TetherUS (FTMUSDT)

+ Trailing Buy

@ Daily

2.03

Risk Reward

26,496.95 %

Total ROI

19

Total Trades

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ 4 h

13.29

Risk Reward

1,648.84 %

Total ROI

17

Total Trades

Premium users only

Premium users can access all backtests with a Risk/Reward Ratio > 3

@ Daily

6.00

Risk Reward

751.35 %

Total ROI

28

Total Trades

IREN LIMITED (IREN)

+ Trailing Buy

@ 4 h

2.96

Risk Reward

493.10 %

Total ROI

18

Total Trades

Micron Technology, Inc. (MU)

+ Trailing Buy

@ Daily

2.89

Risk Reward

1,843.80 %

Total ROI

85

Total Trades

NVIDIA Corporation (NVDA)

+ Trailing Buy

@ Daily

2.74

Risk Reward

8,083.08 %

Total ROI

56

Total Trades

Netflix, Inc. (NFLX)

+ Trailing Buy

@ Daily

2.65

Risk Reward

2,774.94 %

Total ROI

51

Total Trades

NVIDIA Corporation (NVDA)

+ Trailing Buy

@ 2 h

2.48

Risk Reward

8,601.61 %

Total ROI

169

Total Trades
Create your account for free to see all 63+ backtests

Access filters, details, best timeframes, explore 100K+ backtests and more

Active Trades

Create your account to see on which symbols Trailing Buy is currently trading on.

Guide

How does the Trailing Buy strategy work ?

This strategy refines your entry by waiting for a better price after an initial buy signal. While the default signal is a moving average crossover, the core of this strategy is its trailing entry mechanism.

Here’s how it works for a long position:

  • When a buy signal occurs, the strategy doesn't enter the market immediately.
  • Instead, it begins to 'trail' the low price of the asset downwards.
  • It places a dynamic buy-stop order a specific percentage above the lowest price reached since the signal.
  • If the price continues to drop, the buy-stop order moves down with it, always maintaining that percentage gap.
  • The position is only opened when the price reverses and rallies upwards to hit the buy-stop level.

This method is designed to catch a dip right after a bullish signal, entering the position on the rebound for a potentially better price than an instant market buy.

How to use the Trailing Buy strategy ?

This trading strategy enters a long position after a bullish trend is confirmed by a 21-period Simple Moving Average (SMA) crossing over a 49-period SMA. Instead of buying immediately, it uses a trailing stop-buy order that follows the price downwards, entering only when the price reverses and breaks out upwards. The trade is exited when the 21 SMA crosses back below the 49 SMA.

To trade this strategy manually :

  • Indicators: Add two Simple Moving Averages (SMA) to your chart. Set the first to a length of 21 and the second to a length of 49.
  • Entry Signal: Wait for the 21 SMA to cross above the 49 SMA on a closed candle. This is your signal candle.
  • Entry Execution (Trailing Stop-Buy):
    1. Immediately after the signal candle closes, calculate your initial entry price: Closing Price of signal candle + 3%. Place a stop-buy order at this price.
    2. If the order is not filled on the next candle, you will adjust it. At the close of each new candle, calculate a new potential price: Low of that candle + 3%.
    3. Compare this new potential price with your existing stop-buy order price. Move your stop-buy order to whichever price is lower.
    4. Continue adjusting your stop-buy order downwards after each candle until the price moves up and triggers your entry.
  • Exit Condition: Close your position at the market price as soon as the 21 SMA crosses below the 49 SMA.

How to optimize the Trailing Buy trading strategy ?

The core idea of trailing for a better entry is smart, but a mechanical signal like a moving average crossover is often late and unreliable. To truly make this strategy work, you need to add layers of confirmation and adapt to the live market context. A manual trader's edge is discretion, which can significantly enhance this base model.

Here is a plan to improve it:

  • Upgrade the Entry Signal

    Instead of relying solely on a lagging MA crossover, use it as a baseline filter for trend direction. The actual signal to start trailing for an entry should come from price action. Wait for the price to pull back to a key support level, a demand zone, or the faster moving average itself. When you see the price bounce off this area, that's your cue to begin the trailing process, not just the initial crossover.

  • Make Your Trailing Mechanic Dynamic

    A fixed percentage for the trail is arbitrary. Use the Average True Range (ATR) to adapt to market volatility. Instead of trailing by a static 3%, set your trailing buy-stop at a multiple of the current ATR (e.g., 0.75x ATR) above the low of each new candle. This tightens your entry in low-volatility conditions and gives you more room in volatile markets, preventing you from being stopped into a trade by noise.

  • Add Final Confirmation with Volume and Candlesticks

    Before entering, you need confirmation that the pullback is over. As the price dips and you are trailing it, look for decreasing sell volume. Then, as the price starts to turn, wait for a bullish confirmation candlestick, like a hammer or a bullish engulfing pattern, accompanied by an increase in buy volume. Place your final buy order just above the high of this confirmation candle. This confirms that buyers are stepping back in with force.

For which kind of traders is the Trailing Buy strategy suitable ?

This strategy is best suited for patient and methodical traders who practice swing trading or short-term position trading. Its reliance on moving average crossovers makes it a classic trend-following system, but with a conservative twist that requires discipline.

The ideal user is a trader who:

  • Prefers not to chase momentum and dislikes buying at the peak of a rally.
  • Has the discipline to wait for a pullback to secure a more favorable entry price.
  • Operates with a rules-based mindset, systematically trailing the price to catch the turn.

In essence, this is a strategy for the calculated 'dip-buyer' who wants to enter on weakness within a confirmed uptrend, valuing a better entry over the fear of missing the initial move. It is not designed for scalpers or high-frequency traders.

Key Takeaways of Trailing Buy

Here are the key takeaways for the Trailing Buy strategy:

  • Core Concept: A trend-following system that uses a moving average crossover for a signal but waits for a pullback before entering a long position.
  • How It Works: After a bullish signal, it trails the low of the price downwards, placing a buy-stop order a set percentage above it. The trade is only triggered when the price reverses and hits this dynamic entry point.
  • Best Use Case: Suited for patient swing traders. While automatable, it's most effective when used with alerts, allowing for manual confirmation of price action and volume before committing to the trailing entry.
  • How to Enhance It: Improve signals by confirming bounces off key support levels. Make the trailing distance dynamic by using the Average True Range (ATR) instead of a fixed percentage to adapt to market volatility.
  • Risk Management: The strategy's core mechanic aims for a better entry price, which is a form of risk management. For exits, use the MA crossunder signal or set a more defined stop-loss, such as 1.5x the ATR below your entry.
Explore the best Trading & TradingView strategies

Stop trading blindly. Explore the best strategies among 100K+ backtests and improve your trading skills with data.

Start for free