binhp 71 posts msg #61411 - Ignore binhp |
4/12/2008 12:31:45 PM
Hi all,
I need help to express this algorithm:
30daylo = new 30 day low within the last 10 days
FInd stocks that the:
close is trading between +/- 1% 30daylo for the last 5 days
Thanks,
Binh
|
nikoschopen 2,824 posts msg #61417 - Ignore nikoschopen |
4/12/2008 1:51:54 PM
First of all, you can never trade below 30 day low because when it does the damn thing itself becomes the new 30 day low. As ure about to see when you run the following filter, you will only find 1 or above in the "range" column because you can never have a new 30 day low unless another 30 day low is made. So, in essence, you will only be able to find those that trade above this 30 day low (whatever that is).
|
chetron 2,817 posts msg #61421 - Ignore chetron modified |
4/12/2008 3:25:07 PM
i am probably off base here, but try this too.
it is for the standard folks. you just need to check the column for the greater > 4 ones.
the advanced folks just need to remove the " /* " for their version.
good luck
|
binhp 71 posts msg #61446 - Ignore binhp |
4/14/2008 3:37:21 AM
Hello Niko and Chetron,
Thank you for jumping in promptly and provide your implementation which are very valuable to me. Now I know where to start.
Niko, you are right. The range cannot be below the30 day low.
I am still digesting and improving the code and backtesting it.
Best regards,
Binh
|