DaSkippa 2 posts msg #127312 - Ignore DaSkippa |
2/12/2016 2:47:45 PM
How can I fetch stocks that rise in price on the days the DOW or S&P have up days?
|
four 5,087 posts msg #127319 - Ignore four modified |
2/13/2016 3:17:39 PM
Manual:
http://www3.stockfetcher.com/download/sfuserguide2_0.pdf
---
spyx = 1 { S & P up }
spyx = 0 { S & P down }
stockx= 1 { up }
stockx= 0 { down }
Thus,
both = 1 : both had up day
both = 0 : both had down day
divergence = ( 0,1 or 1,0 ) both values are not the same
-- --
|
Kevin_in_GA 4,599 posts msg #127323 - Ignore Kevin_in_GA |
2/13/2016 5:42:28 PM
How you code this depends on what you mean by "up" - either the close is above the open, or the close is above the prior day's close. These are two different things, since the markets can gap up or down.
Here is how I would code for BOTH options in the same filter:
Not really sure this is an effective screen for trading, though. Here I am using DIA instead of DOW because this let's you use it intraday if needed.
|
DaSkippa 2 posts msg #127328 - Ignore DaSkippa |
2/14/2016 6:15:53 PM
Thanks Four and Kevin.
Your help is exactly what I was looking for. Happy trading.
|