logo
Developers

TFO + ATR Strategy with Trailing Stop Loss

Script from: TradingViewLongTermPullbackTrend followingMomentumBotMean reversionReversalVolatility

This long-only crypto strategy trades reversals in bull markets. It enters when the Trend Flex Oscillator (TFO) bounces from oversold levels and ATR confirms volatility. You can exit based on the TFO hitting an overbought level or by using the built-in trailing stop loss. This strategy performs best on the 2H chart but will hold losing trades through downturns, so use it only during clear uptrends.

Hedera Hashgraph / TetherUS (HBARUSDT)

+ TFO + ATR Strategy with Trailing Stop Loss

@ Daily

2.77

Risk Reward

563.40 %

Total ROI

38

Total Trades

INJ / TetherUS (INJUSDT)

+ TFO + ATR Strategy with Trailing Stop Loss

@ Daily

2.48

Risk Reward

434.53 %

Total ROI

32

Total Trades

GALA / TetherUS (GALAUSDT)

+ TFO + ATR Strategy with Trailing Stop Loss

@ Daily

2.44

Risk Reward

297.91 %

Total ROI

20

Total Trades

GRT / TetherUS (GRTUSDT)

+ TFO + ATR Strategy with Trailing Stop Loss

@ Daily

2.38

Risk Reward

365.83 %

Total ROI

22

Total Trades

FLOW / TetherUS (FLOWUSDT)

+ TFO + ATR Strategy with Trailing Stop Loss

@ Daily

2.25

Risk Reward

412.20 %

Total ROI

29

Total Trades

Premium users only

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

@ Daily

5,880,958.50

Risk Reward

588.10 %

Total ROI

45

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

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

Active Trades

Create your account to see on which symbols TFO + ATR Strategy with Trailing Stop Loss is currently trading on.

Guide

How does the TFO + ATR Strategy with Trailing Stop Loss strategy work ?

This trend-following strategy is designed for bull markets, particularly in cryptocurrency. It combines the Trend Flex Oscillator (TFO) with the Average True Range (ATR) to identify and act on potential trend reversals.

A long position is opened under two specific conditions:

  • The TFO indicator must show that the price is reversing upwards from an oversold condition.
  • The ATR must confirm that there is enough market volatility to support the move.

The strategy closes all open positions (it can pyramid up to 15 entries) using one of two methods: either when the TFO signals an overbought condition, or when a configurable trailing stop loss is triggered. The trailing stop only becomes active after the position reaches a predefined profit percentage, securing gains as the trend continues.

How to use the TFO + ATR Strategy with Trailing Stop Loss strategy ?

This trading strategy enters long positions when the Trend Flex Oscillator (TFO) is oversold and begins to rise, provided volatility is sufficient. It scales into the position, allowing up to 15 entries before closing. Exits are triggered either by the TFO crossing down from an overbought level or by a percentage-based trailing stop loss.

To trade this strategy manually :

  • Indicator Setup:
    • Add the public "Trend Flex Oscillator [ChartObserver]" indicator to your chart. Set its parameters to: Period = 14, SuperSmoother Period = 8, Post Smooth Period = 33. Draw horizontal lines on the indicator at 1.2 (Upper Level) and -0.9 (Lower Level).
    • Add the "Average True Range (ATR)" indicator with a length of 18.
    • On the same pane as the ATR, add a "Moving Average Exponential (EMA)". Change its source to "ATR" and its length to 18. The "volatility" is the percentage difference between the ATR line and its EMA.
  • Entry Conditions (Long):
    • The TFO value is below the -0.9 level.
    • The TFO line ticks up (current value is higher than the previous value).
    • The ATR(18) line is at least 3% higher than its EMA(18) line.
    • If all three conditions are met, enter a long position. You can add to your position on subsequent signals up to your chosen maximum.
  • Exit Conditions (Close All Positions):
    • Strategy Exit: Close your position when the TFO line crosses down below the 1.2 level, AND the ATR(18) is more than 13% above its EMA(18).
    • Trailing Stop Exit: After entering, note your average entry price. Once the market price rises 15% above your average entry, set a 2% trailing stop loss with your broker. This will close your position if the price falls 2% from its peak after being armed.

How to optimize the TFO + ATR Strategy with Trailing Stop Loss trading strategy ?

While this automated strategy provides a solid foundation, a manual trader can significantly enhance its performance by adding layers of discretion and context. The core weaknesses—its inability to handle bear markets and its risky "hold-on" approach—can be systematically eliminated. The goal is to transform it from a rigid, long-only system into a more robust, all-conditions trading plan.

Here is a plan to improve the strategy for manual trading:

  • Add a Market Regime Filter: The strategy's biggest flaw is trading against the primary trend. To fix this, use a higher-timeframe filter. On the daily chart, add a 200-period Exponential Moving Average (EMA). Only take the strategy's long signals when the price is trading above the 200 EMA. This single rule will keep you out of major bear markets and prevent catastrophic drawdowns.
  • Implement a Hard Stop Loss: Never trade without a defined exit for a losing trade. When you enter a long position based on the TFO signal, place a hard stop-loss order below the most recent swing low. Alternatively, use a volatility-based stop by placing it 2x the current ATR value below your entry price. This defines your risk from the outset.
  • Confirm Entries with Price Action: Do not enter a trade solely because the TFO is turning up from an oversold level. Wait for the market to confirm the signal. Look for a bullish candlestick pattern, such as a bullish engulfing or a hammer, on your trading timeframe (e.g., 2H) before entering. This ensures actual buying pressure is present.
  • Develop a Short-Selling Variant: To profit in bear markets, reverse the strategy's logic. When the daily price is below the 200 EMA, look for short-selling opportunities. Enter a short position when the TFO crosses down from the overbought level (above 1.2) and ATR confirms volatility. Set your stop-loss above the recent swing high and target oversold TFO levels or key support zones for your exit.
  • Use Dynamic Profit Targets: Instead of relying only on the TFO overbought signal or a trailing stop, be proactive with profit-taking. Before entering a trade, identify the next major resistance level on the chart. Plan to take partial profits at that level, moving your stop-loss to breakeven on the remaining position.

For which kind of traders is the TFO + ATR Strategy with Trailing Stop Loss strategy suitable ?

This strategy is best suited for intermediate swing traders and trend followers who are technically inclined. Its design, which focuses on capturing moves over several days on timeframes like the 2-hour chart, aligns perfectly with a swing trading approach. The ideal user is comfortable analyzing indicators like the TFO and ATR and has the discipline to operate within a rule-based system.

Because the strategy is designed for bull markets and has a built-in tendency to hold losing trades, it requires a trader who can independently assess the broader market trend and implement their own strict risk management. It's particularly well-suited for those trading volatile assets like cryptocurrencies who can actively manage pyramiding positions without being glued to their screens. This style is not recommended for absolute beginners due to its inherent risks and the need for manual oversight.

Key Takeaways of TFO + ATR Strategy with Trailing Stop Loss

  • Core Concept: A long-only, trend-following strategy designed for bull markets that uses the Trend Flex Oscillator (TFO) and ATR to trade reversals on mid-range timeframes like the 2H chart.
  • How It Works: The strategy enters a long position when the TFO turns up from an oversold level and ATR confirms sufficient volatility. It exits either when the TFO becomes overbought or when a trailing stop loss is hit.
  • Best Use Case: It is ideal for semi-automated trading. Use the script's signals as alerts, then manually confirm the trade by analyzing the broader market trend and price action before execution.
  • Optimization: To avoid bear markets, add a high-timeframe filter. For example, only take long signals when the price on the daily chart is above the 200 EMA.
  • Risk Management: The strategy's default is to hold losing trades. To fix this, always define your risk by placing a hard stop-loss below the most recent swing low immediately after entering a trade.
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