| byebyemoney 31 posts
 msg #144189
 - Ignore byebyemoney
 | 7/24/2018 11:18:03 PM 
 Hello,
 
 I have a filter below.  It works fine until I add one line of code
 
 "close is above supportlevel"
 
 If I take that out, then the filter works beautifully with a basic subscription.  Appreciate any help.  The filter is below
 
 /*start of filter*/
 set{iupper1, days(close reached a new 10 day high, 10)}
 set{iupper2, days(close reached a new 45 day high, 45)}
 set{vupper1, varOffset(close, iupper1)}
 set{vupper2, varOffset(close, iupper2)}
 
 vupper2 is above vupper1
 iupper1 is above -1
 
 set{height1, vupper2-vupper1}
 set{length1, iupper2-iupper1}
 set{tanin1, height1/length1}
 set{theta, atan(tanin1)}
 set{tantheta, tan(theta)}
 set{height2, tantheta*iupper1}
 set{supportlevel, vupper1-height2}
 
 close is above supportlevel
 
 add column vupper1
 add column vupper2
 add column height1
 add column iupper1
 add column iupper2
 add column length1
 add column theta
 add column tantheta
 add column height2
 add column supportlevel
 
 
 chart-length is 3 months
 
 
 |