OmniTrader Professional Forum
-
OmniScan
Capture specific requirement over x period |
^ Top | |||
Duxx![]() Posts: 881 Joined: 2/18/2009 ![]() | Hi, trying to build a scan that able to capture specific data points in the past For example… bring any stock with price > $5 in the last 250 days. So the stock must be above 5 in the last 250 days. Or i want volume to be > 1000000 shares daily over the past 50 days, it it gives me the stocks trading above 1000000 daily for the past 50 days Thanks | ||
^ Top | |||
aztrix![]() Posts: 23 Joined: 8/28/2021 Location: Sydney, NSW, Australia ![]() | Hi Duxx OLang/Oscript should be able to help you e.g.
I'm sure there are better ways but hopefully this will get you started … Cheers Aztrix | ||
^ Top | |||
roberthalljr![]() Posts: 13 Joined: 3/4/2007 ![]() | Here are two formulas that seem to work if I understand your criteria: For stock price: SUM(-(C > 5),250) = 250 For Volume: SUM(-(V > 1000000),50) = 50 Not unexpectedly, both formulas return quite a large number of stocks so you might want to pare them down in the "Sort Value" section. Hope this helps. | ||
^ Top | |||
Duxx![]() Posts: 881 Joined: 2/18/2009 ![]() | Thank you Robert this one works. Happy Holidays! Aztrix thank you for responding too! Happy holidays! | ||
^ Top | |||
Jim Dean![]() Posts: 3433 Joined: 3/13/2006 Location: L'ville, GA ![]() | Another way to skin the cat, slightly more efficient (tho the Sum method also works) is to just check to make sure the min price or vol in that period is above the threshold. LLV(C,250) > 5 LLV(V,50) > 1000000 In theory, this runs a bit faster. | ||
^ Top | |||
aztrix![]() Posts: 23 Joined: 8/28/2021 Location: Sydney, NSW, Australia ![]() | Hi Robert & Jim As per Duxx' specification, any stock with price > $5 IMHO High price not Close is correct YMMVCheers Aztrix |