| Radiomuse 288 posts
 msg #71249
 - Ignore Radiomuse
 | 2/6/2009 8:35:57 PM 
 I'm new here and learning to modify existing filters and write my own.  I know how to create custom variables, but I don't understand what this one is doing...
 
 set{A10A, count(Long_Profit > .10 , 1)}
 set{chg, sum( A10A - A10A 1 day ago ,5)}
 
 A10A = number of times profit was >.10 in last day, so 1 or zero I assume??
 
 chg = what exactly is that sum adding up?
 
 Also random question - why are some rows in filter results shaded blue?  Are these the stocks that will go up the most? :)
 
 Thanks to whoever answers, and to everyone else - have a great weekend!
 Mike
 
 
 | 
| chetron 2,817 posts
 msg #71250
 - Ignore chetron
 | 2/6/2009 9:13:36 PM 
 1, those lines won't work as is, because the variable, long_profit has not been defined.
 
 
 2, shaded blue results are instruments that you saved to your watchlist already.
 
 
 
 hth
 
 
 | 
| Radiomuse 288 posts
 msg #71251
 - Ignore Radiomuse
 | 2/6/2009 9:20:09 PM 
 Hi Chetron - I know the variable isn't defined there, I just copied a piece of code from a bigger scan from TRO.  I think Long Profit is just (hi-open)/open.
 
 Thanks,
 M
 
 
 | 
| chetron 2,817 posts
 msg #71253
 - Ignore chetron
 | 2/7/2009 7:41:38 AM 
 chg is summing up how many time a10a was equal to 1 in the last 5 day
 
 hth
 
 
 
 
 | 
| chetron 2,817 posts
 msg #71254
 - Ignore chetron
 modified
 | 2/7/2009 9:45:59 AM 
 it looks like it sums up how many times a10a is greater than 0 for the last 5 days.  you can see the relationship if you use the "draw" command for all variables of concern, that's what i do.
 
 
 hth
 
 
 |