TradingView
johan.gradin
18 juin 2014 16:39

TREND barcolors 

Euro Fx/U.S. DollarFXCM

Description

The Donchian values are basically from Ed Sekoytas original statistical run, that gave the values 30 & 120 (aren't as relevant today, but still packs a punch).
The idea of this code is just to take that 30, add a very simple inset of it, with ATR, and color code the bar Green or Red to indicate the direction of the trend. When a new break of the 120 line, (thick line) higher or lower, it typically indicates a bigger bias towards the trend.
It's my first publish, and so a very simple easy to understand system.

Use at your own risk. I cannot be held liable for any damages financial or otherwise, directly or indirectly related to using this script.
Commentaires
MohitMarwaha
hi Johan. Great indicator. Can you please code an indicator that simply colours the bars based on average open and close values.
If average open for N bars is > average close for N bars, the bars are green and vice versa.
Thanks
johan.gradin
Absolutely boss! I'll get right on it :p
unelma
does it repaint?
SB751
This is great - just what I needed to filter out some noisy signals. Thanks!
Plus