dknoonan 27 posts msg #113391 - Ignore dknoonan |
5/14/2013 2:47:58 PM
I have a filter for 3 days down:
high has been decreasing for the last 3 day
close has been decreasing for the last 3 days
close below open for the last 3 days
... but I would like to turn this into "3 days down, then the next day it goes above yesterday's high"
How would that be coded?
Also, on that last day, is there a way to NOT trigger if the S&P 500 closed down?
Thanks!
|
Kevin_in_GA 4,599 posts msg #113398 - Ignore Kevin_in_GA |
5/14/2013 4:16:26 PM
I have a filter for 3 days down:
high has been decreasing for the last 3 day
close has been decreasing for the last 3 days
close below open for the last 3 days
... but I would like to turn this into "3 days down, then the next day it goes above yesterday's high"
How would that be coded?
Also, on that last day, is there a way to NOT trigger if the S&P 500 closed down?
Thanks!
++++++++++++
Note that when using the actual S&P 500 index as I have done here, the filter will not return any results intraday. This is because the data for ^SPX is not updated until after the close of trading each day, so the last line in the filter will be false until the data is updated. If you want to use it intraday, just use SPY instead of ^SPX.
I would also suggest adding in volume and price constraints to narrow down the results a bit.
Kevin
|