| voidcomp 23 posts
 msg #108324
 - Ignore voidcomp
 | 10/9/2012 4:34:49 PM 
 Check out the bearish divergence between price and RSI 14 - http://imageshack.us/a/img405/6782/aapldivg.jpg
 
 What would be a decent scan formula to capture this, not only for bearish but bullish also?  Thanks.
 
 
 | 
| mahkoh 1,065 posts
 msg #108325
 - Ignore mahkoh
 modified
 | 10/9/2012 5:20:50 PM 
 How about this?
 
 
 
 
 
 | 
| voidcomp 23 posts
 msg #108326
 - Ignore voidcomp
 | 10/9/2012 7:22:55 PM 
 Thanks for  the quick response.  If the formula basically says there's a big divergence in linear slope between price and RSI(14) over the past month then yes.  I've found that divergences over shorter time frames lead to more whipsaw trades.
 
 
 | 
| Rock Sexton 111 posts
 msg #108327
 - Ignore Rock Sexton
 | 10/9/2012 11:15:44 PM 
 Mahkoh, do you by chance have the inverse of this filter coded for divergent bottoms?
 
 
 | 
| mahkoh 1,065 posts
 msg #108330
 - Ignore mahkoh
 | 10/10/2012 7:28:07 AM 
 You could use larger values for MA and "day period" to cover longer timeframes. For rsi you may want to create a custom moving average of rsi(14) and require the slope to be above or below 0, something like
 
 set{x,cma(rsi(14),20)}
 20 day slope of x above 0 do not draw 20 day slope of x
 
 For an inverse version simply change "dropped" to "gained" and "below" to "above"
 
 
 | 
| voidcomp 23 posts
 msg #108331
 - Ignore voidcomp
 | 10/10/2012 9:09:23 AM 
 What's a more simple expression that says:
 
 - the 20 day slope of price is > 0 and the 20 day slope of rsi(14) is < 0 (no moving average smoothing)
 - express the difference between price slope and rsi slope
 
 Thanks.
 
 
 | 
| jackmack 334 posts
 msg #112487
 - Ignore jackmack
 modified
 | 3/28/2013 8:47:13 AM 
 mahkoh
 
 Quick question for you - I changed this around by adding below and it looks great BUT how do I get it to kick out only those that triggered in just the last day and not those that have been triggered over the last several days or longer?
 
 set{x,cma(rsi(14),20)}
 20 day slope of x above 0 do not draw 20 day slope of x
 
 Thanks
 Cheers
 
 Never mind - got it - nice filter
 Cheers
 
 
 |