StockFetcher Forums · Filter Exchange · simple coding question...<< >>Post Follow-up
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

StockFetcher Forums · Filter Exchange · simple coding question...<< >>Post Follow-up

*** Disclaimer *** StockFetcher.com does not endorse or suggest any of the securities which are returned in any of the searches or filters. They are provided purely for informational and research purposes. StockFetcher.com does not recommend particular securities. StockFetcher.com, Vestyl Software, L.L.C. and involved content providers shall not be liable for any errors or delays in the content, or for any actions taken based on the content.


Copyright 2016 - Vestyl Software L.L.C.Terms of Service | License | Questions or comments? Contact Us
EOD Data sources: DDFPlus & CSI Data Quotes delayed during active market hours. Delay times are at least 15 mins for NASDAQ, 20 mins for NYSE and Amex. Delayed intraday data provided by DDFPlus