vitorleite 2 posts msg #74076 - Ignore vitorleite | 
5/4/2009 3:45:27 AM
  Good morning
 I have difficulties to code for finding WIDE RANGE BARS. These bars have the following requirements (In the case bellow I want to find Bullish wide range bars)
 1-The open is in the lower 20% range
 2-The high is in the upper 20 % range
 3-This bar occur after AT LEAST one prior up bar
 4-Now, the most difficult part: the range of the bar itself that bring it's name, wide range. I decide for the following definition: If the spread of the bar is above 1.8 times the average spread then we will term it as a wide spread bar. In this case the average spread, we can consider the average spread of the 30 bars that precede that bar.
 4-If you have the code already by another definition, it's welcome.
 can you help?
 
  | 
chetron 2,817 posts msg #74078 - Ignore chetron modified | 
5/4/2009 6:57:22 AM
  FOR STARTERS....
 
 ADDED PRIOR 1 BAR
 
  	    
 
  | 
vitorleite 2 posts msg #74079 - Ignore vitorleite | 
5/4/2009 7:57:42 AM
  Thank you!
 
 However it seems that the condition "3-This bar occur after AT LEAST one prior up bar " is not coded here. There are some stocks that show a bullish wide range bar but the previous bar is a down bar.
 
  |