For long time I have been getting many requests about Gann Fan indicator. now we have linefill() function in Pine Language and I think it's right time to make Gann Fan Indicator. Many Thanks to Pine Team for adding many new features to the Pine Language!
How this indicator works:
- It calculates midline (1/1)
- By using midline it calculates...
An enhancement and iteration of lmatl's "angle bar colors " to enable multiple angle bars (up to 3) each with customisable price sources, angle periods, thresholds of degrees, line thicknesses and colours. Full history is displayed of when the selected angle bars have all been within higher degrees (green background) and lower degrees (red background).
this indicator gives you the angles of different moving averages
this can give an indication of the momentum of a move increasing or decreasing
you can also set a threshold for a minimum angle to filter out "no trade" zones
I build these indicators for myself and provide them open source, to use for free to use and improve upon,
This is a histogram that can display a moving average's angle and also show how volatile the change in angle is.
Add any moving average indicator to the chart
Click that indicator's More > Add Indicator on (MA)
Select the Cosmic Angle indicator
Adjust the Cosmic Angle 's Price To Bar Ratio value to reflect that of your chart's
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
This function should give you a correct output in a circle of 360°. It is meant to be used by developers/pine-script-coders to figure out reference angles.
1. If the angle given to this function is in between 0-360 then it would give you the same angle without any modifications
2. If the angle given is greater than 360° - for example...