This is a stochastic type representation of the moving average angle. This means that an ascending value will represent a stronger trend while descending value will represent a weakening trend leading to consolidation.
The indicator is color coded meaning the color will represent the direction of the trend (green = bullish; red = bearish and blue = consolidation). There is also an customizable Angle Threshold that can be set to help identify the consolidation zone, meaning if the value crosses below this value it could indicate possible consolidation.
Furthermore there is a signal line (black) that draws a slightly faster version of the angle line providing early signals and leading trend direction.
The customizable input parameters is as follow:
Moving Average Period
Angle Threshold
Sample Period (period used to calculate the signal line)
*Download and import the ITF file for all input parameters
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
//Calculate angle of MA //MAPeriod = 40 //SamplePeriod = 5 //AngleThreshold = 45 MA = average[MAPeriod](close) MAAngle = (sin(atan((MA-MA[1])/MA[1]*100)))*1000//R2[MAPeriod](close)*100 AverageAngle = Average[SamplePeriod](MAAngle) AverageAngle2 = Average[round(SamplePeriod/2)](MAAngle) If AverageAngle > AngleThreshold Then R = 0 G = 255 B = 0 ElsIf AverageAngle < (AngleThreshold*-1) Then R = 255 G = 0 B = 0 Else R = 0 G = 0 B = 255 EndIf AverageAngleD = abs(AverageAngle) AverageAngle2D = abs(AverageAngle2) Return AverageAngleD coloured(R,G,B) style(Line,2) as "AverageAngle", AverageAngle2D as "AverageAngle2", AngleThreshold |
Share this
No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.
ProRealTime ITF files and other attachments :PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
I have a question about the bands on the candles. Is it bollinger bands or something else?
I think that’s 2 Bollinger Bands