| Welcome Guest, please  sign in  to participate in a discussion. | Search | 	Active Topics | | 
	
	
	| Registered User Joined: 4/21/2005
 Posts: 39
 
 | I'd like an opinion of TC2005-savvy folks (I call them the cogniscenti) on the PCF I wrote to sort on RSI Divergence, which is defined as follows: 
 LOWER DIVERGENCE:
 "RSI is climbing out of "oversold" area while the Closing price is making new lows." In other words: If the price is making new lows AND the RSI is making new highs, AND the RSI has visited recently the overbought area of below 30.
 
 The PCF I wrote is:
 -----------------------------------------------
 RSI14.9 > MAX(RSI14.9.1,RSI14.9.2,RSI14.9.3,RSI14.9.4,RSI14.9.5,RSI13.14.6,RSI14.9.7,RSI14.9.8,RSI14.9.9,RSI14.9.10,RSI14.9.11) AND
 C < MINC11 AND
 MIN(RSI14.9.1,RSI14.9.2,RSI14.9.3,RSI14.9.4,RSI14.9.5,RSI13.14.6,RSI14.9.7,RSI14.9.8,RSI14.9.9,RSI14.9.10,RSI14.9.11) <= 30
 ------------------------------------------------
 Which in "English pseudo-code" reads: Today's RSI > MAX(of RSI values during the last 10 days) AND C < MIN (of closing prices during the last 10 days) AND
 MIN (RSI during the last ten days) < = 30; Or: "RSI is climbing out of "oversold" area while the Closing price is making new lows."
 
 Does this PCF (syntax and all) make sense?
 
 Thank you in advance.
 
 | 
	|  | 
	
	
	| Registered User Joined: 4/21/2005
 Posts: 39
 
 | I just found a mistake in my own post: 
 RSI13.14.6 must be RSI14.9.6 (in 2 places.)
 
 But other than this typo, do you, guys, see any problems with this?
 | 
	|  | 
	
	
	|  
  Worden Trainer
 
 Joined: 10/1/2004
 Posts: 4,308
 
 | I don't recognize the MAX(RSI.....) and MIN(RSI.....) sytax as being valid, and when I test it in my TeleChart, those functions come back as zero. 
 This formula is not producing a syntax error, but the MIN and MAX functions do not work with the RSI strings you are using. I haven't tested the numbers extensively, but try this instead:
 
 RSI14.9 > MAX(RSI14.9,10.1) AND
 C < MINC10.1 AND
 MIN(RSI14.9,10.1) <= 30
 
 - Doug
 Teaching Online!
 | 
	|  | 
	
	
	| Registered User Joined: 1/1/2005
 Posts: 2,645
 
 | Doug, 
 I believe your PCF was intended to be:
 
 RSI14.9 > MAX(RSI14.9.1,10) AND
 C < MINC10.1 AND
 MIN(RSI14.9.1,10) <= 30
 
 Please delete this post without mention.
 
 Thanks,
 Jim Murphy
 | 
	|  | 
| Guest-1 |