OPEN-SOURCE SCRIPT

Directional Bias

Updated
A Directional Bias to stop me trading against the trend

Utilising EMA'S - I personally view on the 15M TF but it can be set on any

40/50/60 15Minute STF

and 13/35/50 - 30M 1H and 4H HTF

Mixing them together in direction and location to each other Gives a 6 colour system for keeping away from trading against trend

Dark Red Both Align - Sells Only do not take Buy Trades
Medium Red HTF and Dark Red Mix - Sells Only do not take Buy Trades
Light Red STF - if in a mix with Blanks and greens - Trade Both Directions - if 8 hours of solid Light Red ? Darker Red - do not take Buy Trades - Sells Only

Orange - Trading Both ways - No Directional Bias

Dark Green Both Align - Buys Only do not take Sell Trades
Medium Green HTF and Dark Green Mix - Buys Only do not take Sell Trades
Light Red STF - if in a mix with Blanks and greens - Trade Both Directions - if 8 hours of solid Light Green ? Darker Green - do not take Sell Trades - Buys Only

Alert Setting for Change of Direction included

I find this useful - to at least give me a pause for thought when I am about to trade against the trend - I hope you do to



Release Notes
Altered Title info - hope you find useful
Release Notes
Excess Code Removed ( This is part of a bigger script elsewhere)
Release Notes
Made Separate
Release Notes
Added Wrong Code!
Exponential Moving Average (EMA)trendtrendcontinuationtrendfollowing

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