Kevin_in_GA 4,599 posts msg #108466 - Ignore Kevin_in_GA | 
10/22/2012 12:59:40 PM
  I have been getting a lot of requests for the Stratasearch code for these filters, and thought it might be easiest just to post the code here for everyone to have.  I did include the entry code for each filter in the first post on this thread, but I noticed I did not post the common exit code.  So here you go ...
 
 CMF Divergence filter
 
 Entry
 (diverge(cmf(14), mov(close, 3, simple), 2, 7) = -1) 
 
 Exit
 close = high(close, 10) and proc(close, 15) <> high(proc(close, 15), 10)
 
 SMI Divergence filter
 
 Entry
 (diverge(smi(3, 6, 6), mov(close, 3, simple), 7, 11) = -1) 
 
 Exit
 close = high(close, 10) and proc(close, 15) <> high(proc(close, 15), 10)
 
 William's %R Divergence filter
 
 Entry
 (diverge(wlr(14), mov(close, 3, simple), 1, 12) = -1) 
 
 Exit
 close = high(close, 10) and proc(close, 15) <> high(proc(close, 15), 10)
 
 PDI (+DI) Divergence filter
 
 Entry
 (diverge(pdi(10), mov(close, 3, simple), 10, 8) = -1) 
 
 Exit
 close = high(close, 10) and proc(close, 15) <> high(proc(close, 15), 10)
 
 Aroon Up Divergence filter
 
 Entry
 (diverge(aroonu(6), mov(close, 3, simple), 4, 4) = -1) 
 
 Exit
 close = high(close, 10) and proc(close, 15) <> high(proc(close, 15), 10)
 
 Linear Regression Slope Divergence Indicator
 
 Entry
 (diverge(lrs(close,8), mov(close, 3, simple), 10, 10) = -1) 
 
 Exit
 close = high(close, 10) and proc(close, 15) <> high(proc(close, 15), 10)
 
 Q-Stick Divergence filter
 
 Entry
 (diverge(qst(12), mov(close, 3, simple), 2, 12) = -1)
 
 Exit
 close = high(close, 10) and proc(close, 15) <> high(proc(close, 15), 10)
 
 RSI Divergence filter
 
 Entry
 (diverge(rsi(10), mov(close, 3, simple), 3, 12) = -1) 
 
 Exit
 close = high(close, 10) and proc(close, 15) <> high(proc(close, 15), 10)
 
 RMI Divergence filter
 
 Entry
 (diverge(rmi(8, 2), mov(close, 3, simple), 1, 12) = -1) 
 
 Exit
 close = high(close, 10) and proc(close, 15) <> high(proc(close, 15), 10)
 
 Stochastic %D Divergence filter
 
 Entry
 (diverge(stochd(3, 2, 5, simple), mov(close, 3, simple), 2, 11) = -1) 
 
 Exit
 close = high(close, 10) and proc(close, 15) <> high(proc(close, 15), 10)
 
 
 
  |