| Kevin_in_GA 4,599 posts
 msg #115076
 - Ignore Kevin_in_GA
 modified
 | 8/26/2013 10:00:13 AM 
 I bumped into this little piece of code while looking at some thinkscript this weekend, and thought this would be easily done in SF.  The basic idea is that one goes long when the stock crosses above the upper band of the "Neutral Zone" (and no, not the one between us and the Romulans).  One exits the long position when it crosses back below.  Same could be done on the flip side, but I would want to see if the stock were above the 200 day or not before doing this.  Anyway, I chose AAPL as the demonstration stock just for fun.
 
 Wilson Relative Price Channel (first featured in the July 2006 issue of TASC).
 
 
 
 
 
 
 | 
| SAFeTRADE 656 posts
 msg #115086
 - Ignore SAFeTRADE
 | 8/26/2013 2:32:25 PM 
 Nice Kevin!  Run this with TSLA  WOW!
 
 
 | 
| sbuckman 7 posts
 msg #115204
 - Ignore sbuckman
 | 9/4/2013 11:01:54 AM 
 How would you modify this to screen for stocks that are close to breaking into the buy zone?
 
 
 | 
| Kevin_in_GA 4,599 posts
 msg #115206
 - Ignore Kevin_in_GA
 | 9/4/2013 9:53:28 PM 
 Possibly add the following lines
 
 high above NZU
 close below NZU
 
 That should show you stocks that briefly crosses above but closed a little below the Upper Neutral Zone line.
 
 
 | 
| sohailmithani 192 posts
 msg #115213
 - Ignore sohailmithani
 | 9/5/2013 9:46:38 AM 
 Something new to play with. Wowo!!!
 
 Has anyone tested this one to see how it might have performed in 2008 or 2002 or even 2011.
 
 Thanks
 
 
 | 
| sbuckman 7 posts
 msg #115218
 - Ignore sbuckman
 | 9/5/2013 11:57:09 AM 
 That was going to be my next question.  What is the exit trigger code?
 
 
 
 | 
| Dylan 43 posts
 msg #115244
 - Ignore Dylan
 | 9/7/2013 8:31:07 PM 
 In my observation I've notice his method works well because it tends to cut looses rapidly while capturing maximum price action. I've tried using NZU as an exit criteria but it does not seem to work. Has anyone figured out the exit? if so,  please post.
 
 
 | 
| bert123 56 posts
 msg #115245
 - Ignore bert123
 | 9/7/2013 9:25:22 PM 
 Wilson Relative Price Channel Stop Info:
 
 http://www.traders.com/Documentation/FEEDbk_docs/2008/01/TradersTips/TradersTips.html
 
 Could this be incorporated into Kevin's filter?
 
 
 | 
| Kevin_in_GA 4,599 posts
 msg #115248
 - Ignore Kevin_in_GA
 | 9/8/2013 11:39:07 AM 
 To use a cross below the Upper NZ as an exit, you need to put the full code into the exit trigger, like so:
 
 
 set{overbought,70}
 set{upperNZ, 55}
 set{lowerNZ, 45}
 set{oversold, 30}
 
 set{OB1, RSI(34) - overbought}
 set{OS1, RSI(34) - oversold}
 set{NZU1, RSI(34) - upperNZ}
 set{NZL1, RSI(34) - lowerNZ}
 
 set{OB2, OB1 /100}
 set{OS2, OS1 / 100}
 set{NZU2, NZU1 / 100}
 set{NZL2, NZL1 / 100}
 
 set{OB3, close * OB2}
 set{OS3, close * OS2}
 set{NZU3, close * NZU2}
 set{NZL3, close * NZL2}
 
 set{OB, close - OB3}
 set{OS, close - OS3}
 set{NZU, close - NZU3}
 set{NZL, close - NZL3}
 
 close below NZU
 
 Unless you define NZU in the exit trigger, it doesn't know what you are talking about.
 
 
 | 
| davesaint86 726 posts
 msg #115374
 - Ignore davesaint86
 modified
 | 9/14/2013 10:31:48 PM 
 How come I cannot see the NZL on the chart?  How do I resolve this issue?
 
 Fetcher[
 Close is above $20
 Average Volume is above 2000000
 
 close crossed above nzl 4 day ago
 
 
 set{overbought,70}
 set{upperNZ, 55}
 set{lowerNZ, 45}
 set{oversold, 30}
 
 set{OB1, RSI(34) - overbought}
 set{OS1, RSI(34) - oversold}
 set{NZU1, RSI(34) - upperNZ}
 set{NZL1, RSI(34) - lowerNZ}
 
 set{OB2, OB1 /100}
 set{OS2, OS1 / 100}
 set{NZU2, NZU1 / 100}
 set{NZL2, NZL1 / 100}
 
 set{OB3, close * OB2}
 set{OS3, close * OS2}
 set{NZU3, close * NZU2}
 set{NZL3, close * NZL2}
 
 set{OB, close - OB3}
 set{OS, close - OS3}
 set{NZU, close - NZU3}
 set{NZL, close - NZL3}
 
 draw OB on plot price
 draw OS on plot price
 draw NZU on plot price
 draw NZL on plot price
 and do not draw MA(200)
 and do not draw MA(50)
 and do not draw MA(20)
 ]
 
 
 |