joshng 4 posts msg #108699 - Ignore joshng | 
11/6/2012 3:36:48 PM
  I need help changing this filter from a long filter to a short filter. Thanks!
 
 
 /* gap fill statistics  buy close, sell open*/ 
 
 set{Xgapped, open - close 1 day ago} 
 set{Xgapup, count(Xgapped > 0, 1)} 
 set{Xgapdn, count(Xgapped < 0, 1)} 
 
 set{absgap, abs(Xgapped)} 
 
 set{gappedup100, count(Xgapup > 0, 100)} 
 set{gappeddn100, count(Xgapdn > 0, 100)} 
 
 set{cl1lo, close 1 day ago - low} 
 set{hicl1, high - close 1 day ago } 
 
 set{fillup, count(cl1lo > 0, 1)} 
 set{filldn, count(hicl1 > 0, 1)} 
 
 set{gapupfilled, Xgapup * fillup } 
 set{gapdnfilled, Xgapdn * filldn } 
 
 set{gapup100f, count(gapupfilled > 0, 100)} 
 set{gapdn100f, count(gapdnfilled > 0, 100)} 
 
 set{gapfilled, gapup100f + gapdn100f} 
 
 /* DRAW PLOTS */ 
 
 DRAW XGAPPED ON PLOT XGAPPED 
 
 /* DISPLAY COLUMNS */ 
 
 and add column gappedup100 
 and add column gappeddn100 
 and add column gapfilled 
 and add column gapup100f 
 and add column gapdn100f 
 
 and add column cma(absgap, 100) 
 and add column absgap 100 day high 
 and add column absgap 100 day low 
 
 /* SELECTION CRITERIA */ 
 
 CLOSE ABOVE 1 
 avg volume(30) above 300000
 
 gappedup100 above 66
 
 /* SORT CRITERIA */ 
 
 SORT COLUMN 5 DESCENDING 
 
 
  |