TradingView
lmatl
17 oct. 2020 20:40

angle bar colors [LM] 

Bitcoin / TetherUSBinance

Description

Hello guys,

I would like to introduce you angle bar colors indicator. It colors bars depending the angle of the bar x length back and current one

lime angle > 70 degrees
green 20 < angle < 70 degrees
orange 0 > angle <= 20 degrees

purple 0 > angle >= -20 degrees
red -20 > angle > -70 degrees
maroon angle < -70 degrees


Any suggestions are welcome

Notes de version

added line and label to indicator, refactor

Notes de version

added setting for alerts where it detects cross over and cross under certain threshold.
Commentaires
Jamison739
you are smart man. This is excellent tool. I was always looking for something to catch ranging market, falling market and uptrend. Here you go...problem sovled. Thanks a lot mate.
mammamia2
How come the angles don't change when your alter the x and y axis?
Papadaulat
Hello Sir, Can you make indicator for plotting angular degree of 20 period EMA.
drgentleman1
thanks a lot
RajeevNaik
Thanks. However i am getting a 30 deg difference in angle between your result and the TV Trend line angle drawing (without zoom).
Arun_K_Bhaskar
How to convert this to get the angle between swing high and low of Zig Zag indicator?
lmatl
@Arun_K_Bhaskar, you would need to create new indicator
sn0wslide
Hi @lmatl is it possible at all to use this code/method to calculate the angle of another indicator? I'm trying to get the angle of the "VWAP Oscillator" (Market Cipher B, or VuManChu Cipher B) from one bar to the next?
lmatl
@desimpkins, It is possible if you will select different source from settings
giovanninani
brother this indicator is great!!!!

My doubt is how can I add an alert to it.... for example... let me know when the angle is greater than 70 .... is it possible to do ???
Plus