OPEN-SOURCE SCRIPT

Prevailing Trend Indicator

By bjr117
OVERVIEW
The Prevailing Trend indicator is a technical indicator that gauges whether the price is currently trending up or down. The purpose of this indicator is to call and/or filter with-trend signals.


CONCEPTS
This indicator assists traders in identifying high-probability trend entries. The upper line (blue line on the indicator) is calculated by taking the average range (high-low) of all bullish candles. The lower line (red line on the indicator) is calculated by taking the average range of all bearish candles. When these two lines intersect and cross each other, a buy and sell signal is generated. For example, if the blue line crosses over the red line, this indicates that the average size of all bullish bars are larger than the average size of all bearish bars. This is a good sign that an uptrend might occur. Vice versa for downtrends.


HOW DO I READ THIS INDICATOR

As an entry indicator:
  • When the blue line crosses over the red line, go long.
  • When the red line crosses over the blue line, go short.


As a signal filter:
  • If the blue line is above the red line, only take long trades.
  • If the red line is above the blue line, only take short trades.
c1confirmationnnfxreversaltrendTrend Analysistrendtrading

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