OPEN-SOURCE SCRIPT

Trend Flow Line (TFL)

Updated
The Trend Flow Line (TFL) is a versatile moving average indicator that dynamically adjusts to trends using a combination of Hull and Weighted Moving Averages, with optional color coding for bullish and bearish trends.

Introduction
The Trend Flow Line (TFL) is a powerful indicator designed to help traders identify and follow market trends with precision. It combines multiple moving average techniques to create a responsive yet smooth trendline. Whether you're a beginner or an experienced trader, the TFL can enhance your chart analysis by highlighting key price movements and trends.

Detailed Description
The Trend Flow Line (TFL) goes beyond traditional moving averages by leveraging a hybrid approach to calculate trends.
Here's how it works:

.........
  1. Combination of Hull and Weighted Moving Averages
    The TFL integrates the Hull Moving Average (HMA), known for its fast responsiveness, and the Double Weighted Moving Average (DWMA), which offers smooth transitions.
    The HMA is adjusted dynamically based on the user-defined length, ensuring adaptability to various trading styles and timeframes.


    .....
  2. Dynamic Smoothing
    The TFL calculates its value by averaging the HMA and DWMA, creating a balanced line that responds to market fluctuations without excessive noise.
    This balance makes it ideal for identifying both short-term reversals and long-term trends.


    .....
  3. Customizable Features
    Timeframe: Analyze the indicator on custom timeframes, independent of the chart's current timeframe.
    Color Coding: Optional color settings visually differentiate bullish (uptrend) and bearish (downtrend) phases.
    Line Width: Adjust the line thickness to suit your chart preferences.
    Color Smoothness: Fine-tune how quickly the color changes to reflect trend shifts, providing a visual cue for potential reversals.
    The TFL's algorithm ensures a blend of precision and adaptability, making it suitable for any market or trading strategy.


.........

The Trend Flow Line (TFL) is an essential tool for traders looking to stay ahead of market trends while maintaining a clear and visually intuitive charting experience. It combines HMA and DWMA for trend sensitivity and smoothness.
Release Notes
update (added better color visualization)
Release Notes
added picture
Release Notes
Added Picture
Hull Moving Average (HMA)Moving AveragessupertrendtrendWeighted Moving Average (WMA)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer