counts the number of times in a row the high is greater than the previous high, or the low is lower than the previous low. reset every time this rule was breached.
+ the average of the past x periods.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | AVPeriod = 20 IF High >= High[1] THEN      CHigh=CHigh+1 ELSE      CHigh=0 ENDIF IF low <= low[1] THEN      Clow=Clow+1 ELSE      Clow=0 ENDIF CAvHigh = Average[AVPeriod](CHigh) CAvLow = Average[AVPeriod](CLow) RETURN CHigh COLOURED (220,100,100) AS"CHigh", Clow COLOURED (80,210,80) AS"CLow", CAvHigh AS"Average High", CAvLow AS"Average Low" | 
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
 
								
							
 
									
 
								 
								 
								
 
								 
									
 
								
 
								 
								 
								 
								 
								
 
								 
								 
								
 
								 
								 
									 
								 
									 
									 
								 
								 
								 
								 
		 
		 
		