| 
				
					
				 
					
					| nandaulgolog |  
					
					| Gold User, Member, TeleChart |  
					
					| Registered User |  
					
					|  |  
					
					|  |  
					
					|  |  
					
					|  |  
					
					| Gender: |  | 
				
					
				 
					
					| Sunday, May 16, 2010 |  
					
					| Friday, November 4, 2011 10:58:50 PM |  
					
					| 33 [0.01% of all post / 0.01 posts per day]
 |  | 
| 
		
			
		 
			| can do a substitute of sorts with 4 binary oscillators in the same pane-probably the middle pane so that the different colored ^ spikes point to the price bars... HyVolChurn and HV Climax Up would be something like the ones below and you would do 2 others for HV climax down and low volume. In the end you would have 4 indicators each with the various better volume colors... You could also put them on the volume pane 
 
 CHURN
 0- (C>=O and
 (H-L)/V >= (H1-L1)/V1 and
 (H-L)/V >= (H2-L2)/V2 and
 (H-L)/V >= (H3-L3)/V3 and
 (H-L)/V >= (H4-L4)/V4 and
 (H-L)/V >= (H5-L5)/V5 and
 (H-L)/V >= (H6-L6)/V6 and
 (H-L)/V >= (H7-L7)/V7 and
 (H-L)/V >= (H8-L8)/V8 and
 (H-L)/V >= (H9-L9)/V9 and
 (H-L)/V >= (H10-L10)/V10 and
 (H-L)/V >= (H11-L11)/V11 and
 (H-L)/V >= (H12-L12)/V12 and
 (H-L)/V >= (H13-L13)/V13 and
 (H-L)/V >= (H14-L14)/V14 and
 (H-L)/V >= (H15-L15)/V15 and
 (H-L)/V >= (H16-L16)/V16 and
 (H-L)/V >= (H17-L17)/V17 and
 (H-L)/V >= (H18-L18)/V18 and
 (H-L)/V >= (H19-L19)/V19 and
 (H-L)/V >= (H20-L20)/V20 and
 (H-L)/V >= (H21-L21)/V21
 )
 
 
 
 
 CLIMAX UP
 0- (C>=O and
 (H-L)*V >= (H1-L1)*V1 and
 (H-L)*V >= (H2-L2)*V2 and
 (H-L)*V >= (H3-L3)*V3 and
 (H-L)*V >= (H4-L4)*V4 and
 (H-L)*V >= (H5-L5)*V5 and
 (H-L)*V >= (H6-L6)*V6 and
 (H-L)*V >= (H7-L7)*V7 and
 (H-L)*V >= (H8-L8)*V8 and
 (H-L)*V >= (H9-L9)*V9 and
 (H-L)*V >= (H10-L10)*V10 and
 (H-L)*V >= (H11-L11)*V11 and
 (H-L)*V >= (H12-L12)*V12 and
 (H-L)*V >= (H13-L13)*V13 and
 (H-L)*V >= (H14-L14)*V14 and
 (H-L)*V >= (H15-L15)*V15 and
 (H-L)*V >= (H16-L16)*V16 and
 (H-L)*V >= (H17-L17)*V17 and
 (H-L)*V >= (H18-L18)*V18 and
 (H-L)*V >= (H19-L19)*V19 and
 (H-L)*V >= (H20-L20)*V20 and
 (H-L)*V >= (H21-L21)*V21
 )
 
 
 |  
			| Bruce, 
 It seems like a condition serving as a crossdown /crossup signal would still be nice because it would be a discrete event and rarer than the range thing I am using... Thanks
 |  
			| I apologize for duplicating this topic on a wrong assumption.... 
 the following code works as an indicator and graphs the percent difference from open in all intraday timeframes.
 
 But when I use it as a data/sort column, it lists values that does not seem to have anything to do with the values it is graphing.
 
 There is one exception: If the column is unlinked and bar interval is set to "daily", the sort values are very close to the graphed values.
 
 I'd like to use it intraday while on a 5 or 15 minute time frame. (I do not know if it will nevertheless put out accurate values intraday while it is set to daily... Not tested... I assume it will not...)
 
 I just cannot figure out how it can put out different values in a condition column while at the same time it is graphing proper values....
 
 '|******************************************************************
 '|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com
 '|*** Copy and paste this header and code into StockFinder *********
 '|*** Indicator:% above or below opening today
 '|*** Example: plot = price.close - price.close(1)
 '|******************************************************************
 Dim Start As Integer = Price.Bar.Count - 1Dim Open As Single = Price.Bar.OpenValue(Start)
 While Price.Bar.DateValue(Start).DayOfYear = Price.Bar.DateValue(Start - 1).DayOfYearStart -= 1
 Open = Price.Bar.OpenValue(Start)
 End While
 plot = ((price.high() / open) - 1) * 100
 
 
 (P.S.: Also, the original was too slow in real time and often failed to catch up with the charts, I don't yet know how this one acts in terms of speed)
 
 P.S. 2: I am trying to do these codes by cutting and pasting stuff I see in the forum (often without  understanding what I am doing) so usually  there are some dumb or unneeded lines in the codes I post...
 |  
			| thank you. 
 please note that in my SF5, it worked the other way around i.e. it crashed when I dragged indicator from chart and it is doing OK with the PDO imported.... So maybe the bug is something else...  Here is the code that is working O.K. ( pdo.avg(1) just gets current bar's value... since it is working, I am not touching it :)  )
 
 '# PDO = indicator.Library.Pivot Detector Oscillator
 If price.High() > price.XAVG(10) And price.low() < price.XAVG(10) ThenIf price.close(1) < price.XAVG(10.1) And pdo.avg(1) > 50 Then
 pass
 End If
 End If
 |  
			| hello, It is not my intention to be repetitive or spam. I am posting this again because I thinkt that maybe you only look at 0-response posts. (Since when I post an additional message it looks like it has been responded to, I am posting this again.)
 
 I am trying to do these codes by cutting and pasting stuff I see in the forum (without always understanding what I am doing) so I am sure there are always some dumb things in them... in any case, pruned the for...next loop in the earlier post... appearantly not needed...
 
 But the main problem remains and I have no idea why:  it works as an indicator, graphing the correct values but gives totally different values when used in a sort or data column....
 
 '|******************************************************************
 '|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com
 '|*** Copy and paste this header and code into StockFinder *********
 '|*** Indicator:% above or below opening today
 '|*** Example: plot = price.close - price.close(1)
 '|******************************************************************
 Dim Start As Integer = Price.Bar.Count - 1Dim Open As Single = Price.Bar.OpenValue(Start)
 While Price.Bar.DateValue(Start).DayOfYear = Price.Bar.DateValue(Start - 1).DayOfYearStart -= 1
 Open = Price.Bar.OpenValue(Start)
 End While
 plot = ((price.high() / open) - 1) * 100
 
 
 (P.S.: Also, the original was too slow in real time and often failed to catch up with the charts, I don't yet know how this one acts speedwise...)
 |  
			| p.s. something else wrong with it is that it is too slow. help ... thanks |  
			| hello,
 I think the following code does show "current bar high % above or below day's opening price". As an indicator, it seems to plot correctly but when I use it as a sort column or data column, it does not show the last value I see on the indicator graph. can you help fix it? thanks...
 
 
 
 '|******************************************************************
 '|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com
 '|*** Copy and paste this header and code into StockFinder *********
 '|*** Indicator:% above or below opening today
 '|*** Example: plot = price.close - price.close(1)
 '|******************************************************************
 Dim Start As Integer = Price.Bar.Count - 1Dim Open As Single = Price.Bar.OpenValue(Start)
 While Price.Bar.DateValue(Start).DayOfYear = Price.Bar.DateValue(Start - 1).DayOfYearStart -= 1
 Open = Price.Bar.OpenValue(Start)
 End While
 For i As Integer = Start To Price.Bar.Count - 1
 plot = ((price.high() / open) - 1) * 100
 Next
 |  
			| cleaning up the other lines left over from indicator attempt, they become really simplified:
 '# PDO = indicator.Library.Pivot Detector Oscillator
 If price.High() > price.XAVG(10) And price.low() < price.XAVG(10) ThenIf price.close(1) < price.XAVG(10.1) And pdo.AVG(1) > 50 Then
 pass
 End If
 End If
 --------------------------
 
 '# PDO = indicator.Library.Pivot Detector Oscillator
 If price.High() > price.XAVG(10) And price.low() < price.XAVG(10) Then
 If price.Close(1) > price.XAVG(10.1) And pdo.value() < 50 Then
 pass
 End If
 End If
 ------------------------------
 
 I guess I'd still like to see how you would make it into a yes/no indicator; and how and why datevalue variables are used... I could not find adequate info in the references I looked at, and inappropriate indicators always crash the program...
 |  
			| Bruce, 
 If you get to see these follow up messages: re gap up gap down crossing indicator I was asking about, forget it... I am just using one of the other indicators / conditions on these pages- something like "trading above or below the opening range", and  it serves the same purpose... also forget about the request above... I've learned how to use conditions  as data columns so I solved my issue... thanks
 |  
			| with correction on ma:
 '# PDO = indicator.Library.Pivot Detector Oscillator
 Static Days As Integer
 If isFirstBar Then
  Days = 0Else If Price.DateValue.DayOfYear <> Price.DateValue(1).DayOfYear Then
 Days += 1
 End If
 If days >= 2 Then
 If price.High() > price.XAVG(10) And price.low() < price.XAVG(10) Then
 If price.close(1) < price.XAVG(10.1) And pdo.AVG(1) > 50 Then
 pass
 End If
 End If
 End If
 
 and crossing down with low pdo:
 
 '# PDO = indicator.Library.Pivot Detector Oscillator
 Static Days As Integer If isFirstBar Then
 Days = 0
 Else If Price.DateValue.DayOfYear <> Price.DateValue(1).DayOfYear Then
 Days += 1
 End If
 If days >= 2 Then
 If price.High() > price.XAVG(10) And price.low() < price.XAVG(10) Then
 If price.Close(1) > price.XAVG(10.1) And pdo.value() < 50 Then
 pass
 End If
 End If
 End If
 |  |