This oscillator is made of the slope of a linear regression over “Length” period. It can be use to measure strength and exhaustion of a trend (actual histogram bar plus or minus the last one).
Slope of LR is also a good short momentum identifier when the slope is at a turning point.
| 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 | // parameters  // Length = 14 SumBars = Length * (Length-1) * 0.5 SumSqrBars = (Length-1) * Length * (2 * Length-1) / 6 if(barindex>Length) then    Sum1 = 0    SumY=0    MA = average[1](close)    for i=0 to Length-1 do     Sum1 = Sum1+(i*MA[i])     SumY = SumY+(MA[i])    next    Sum2 = SumBars * SumY    Num1 = Length * Sum1 - Sum2    Num2 = SumBars * SumBars - Length * SumSqrBars endif RegSlope = 100*Num1/Num2 RETURN RegSlope | 
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 : Filename : download the ITF files
									Filename : download the ITF filesPRC is also on YouTube, subscribe to our channel for exclusive content and tutorials
 
								
							
 
									 
										 
										 
										 
										 
										 
								 
								
 
								 
									
 
								
 
								 
								 
								 
								 
								
 
								 
								 
								
 
								 
								 
									 
								 
									 
									
 
								 
								 
								 
								 
								 
									 
		 
		 
		