glenndub

Trend ID with early entry signals

glenndub Updated   
This script is a combination of two. Firstly a trend is identified as up down or sideways. Higher highs and higher lows makes for an uptrend, lower highs and lower lows similarly allows for a downtrend to be registered. Users can adjust the number of bars to include for detection of the pivot points to increase the accuracy of trend changes but this significantly reduces signals. Sideways movement is determined if the average candle price is within a variance of a short SMA. The SMA follows the close of each candle going back 6 candles by default. The variance is 1% by default so if the price is within 1% of the SMA it's considered sideways and no entries can be issued in this condition.

The indicator is designed to identify the trend for longing or shorting, and then provides the entries based on stochastics converging or diverging (not crosses). The convergence and divergence of stochastics is amalgamated into a short EMA which also has length 6 and can be tuned by the user.

The default values of this script best work on 1h and 2h timeframes for specific pairs like BTCUSD. For other time frames and pairs the settings will need to be tweaked but is possible to identify specific parameters for many different pairs and time frames.

I've written several scripts for personal use however this is my first published script so please use at your own risk! It's not perfect!
Release Notes:
Fixed some names of items to be more clear
Added higher timeframes for COINBASE:BTCUSD (4h and Daily) plotted as lines.
Added option to show/hide higher timeframe lines
Added green/orange dots to indicate if candle closes above/below the last Daily close
Added entry based on sup/res breaking and candle close is above/below daily in favor of trend
Added ability to disable Long2/Short2 entries if desired
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact glenndub for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?

Warning: please read before requesting access.