TradingView
LazyBear
25 Feb 2015 pukul 21.09

LBR Paintbars [LazyBear] 

Apple Inc.NASDAQ

Huraian

[Updated: Feb 25, 2015]

Added coloring of LB bars above/below Keltner Channel (as suggested by user @20813 below in the comments).

Updated code: pastebin.com/AhVQ1FBn.

See comments section below for a sample chart. Copy the code from the pastebin above and update your local copy (TV doesn't allow me to update an already published code -- yet!).

Added features:
- Switch ON/OFF KC
- Mark LB bars above/below KC

----------------------------------------------------------------------

The LBR PaintBars indicator changes the colour of the price bars based on the trend direction (derived from price & volatility bands). This is mostly used as a confirmation indicator.

For the Pine coders: I suggest trying stdev() in lieu of atr()...some wild combinations can be derived from this simple idea :)

Indicator supports the following options:
- Switching on/off volatility bands
- Switching on/off LBR colors (lime/maroon).
- Color non-LBR bars (blue).

Thanks @mseaworthy for pinging me with this idea.

Complete list of my indicators:
-----------------------------
docs.google.com/document/d/15AGCufJZ8CIUvwFJ9W-IKns88gkWOKBCvByMEvm5MLo/edit?usp=sharing
Komen
KRYPTOKRATES
Hey @LazyBear, not sure if you're supporting your gazillions of indicators, just wanted to let you know that the link with the updated code for the colored bars if beyond channel boundaries doesn't work anymore unfortunately. Would love to use that code :)
cwthames
@KRYPTOKRATES, Did you ever figure out a workaround or fix? @LazyBear
windwalker7
@KRYPTOKRATES, copy the code but remove the last dot (period dot)
Jamal041
@windwalker7, where can I get the code from?
Jamal041
@KRYPTOKRATES, did you later get the code?
SPYderCrusher
The man, the myth, the legend. Great stuff LB!!
LazyBear
Thanks Spyder.

BTW, when I was googling to learn more about this, I came across one of your comments on the very same indicator :)
ibankcoin.com/spoiledsquid/2011/11/02/showing-off-your-ass-cause-youre-thinking-its-a-trend/ (check out the comments section).
SPYderCrusher
Heyyo! Old school! good find!
20813
nice one!

lbr also has them colored pink if they hit the keltner channel.
LazyBear
Nice Idea.

I updated the script to do that. Here's the updated source code: pastebin.com/AhVQ1FBn

Added features:
- Switch ON/OFF KC
- Mark LB bars above/below KC

Sample chart:
Lebih