OPEN-SOURCE SCRIPT

Trend Follower | jh

Updated
This is a trend following system that combines 3 indicators which provide different functionalities, also a concept conceived by VP's No Nonsense FX / NNFX method.


1. Baseline
  • The main baseline filter is an indicator called Modular Filter created by Alex Grover
  • - https://www.tradingview.com/u/alexgrover/
  • - Alex Grover - Modular Filter
  • -------
  • That's the moving average like baseline following price, filtering long and short trends and providing entry signals when the price crosses the baseline.
  • Entry signal indicated with arrows.


2. Volume/Volatility, I will called it Trend Strength
  • The next indicator is commonly known as ASH, Absolute Strength Histogram.
  • This indicator was shared by VP as a two line cross trend confirmation indicator, however I discovered an interesting property when I modified the calculation of the histogram.
  • - Alex Grover Absolute Strength
  • -------
  • My modification and other info here
  • - Absolute Strength Histogram v2
  • -------
  • I simplified the display of the trend strength by plotting squares at the bottom of the chart.
  • - Lighted Squares shows strength
  • - Dimmed Squares shows weakness


3. Second Confirmation / Exits / Trailing Stop
  • Finally the last indicator is my usage of QQE (Qualitative Quantitative Estimation), demonstrated in my QQE Trailing Line Indicator
  • - QQE Trailing Line for Trailing Stop
  • -------
  • Three usages of this amazing indicator, serving as :
  • - Second trend confirmation
  • - Exit signal when price crosses the trailing line
  • - Trailing stop when you scaled out the second trade
  • This indicator is plotted with crosses.



Additional plots and information
  • Bar Color
  • - Green for longs, Red for shorts, White when the baseline direction conflicts with the QQE trailing line direction
  • - When it's white, it's usually ranging and not trending, ASH will also keep you off ranging periods.
  • -------
  • ATR Filter
  • - White circles along the baseline, they will show up if the price has moved more than one ATR from the baseline
  • - The default allowance is 1 ATR.
  • -------
  • The previous and current ATR value
  • - Label on the right side of the chart showing the previous and current value of ATR


snapshot
Adding my Didi and ASH indicators up on this screenshot
Didi Index Improved with QQE
Release Notes
Created another version for Light mode as a few key plots are in white.

One change for this Dark mode version is to add a text label spacing input that allows you to adjust the spacing for text label from price.
ASHbaselineexitjhMoving AveragesnnfxnononsensefxqqetrailingstopTrend AnalysisVolatility

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?


Also on:

Disclaimer