p3corion 3 posts msg #31027 - Ignore p3corion |
2/9/2004 4:05:03 PM
Hi,
I saw some very interesting filters in this forum from people with alot of
knowledge. This is my first stab at writing a filter. I find it a little
difficult with out a syntax checker. I guess the best way to write code,
is one small step at a time.
I'm working on an ascending triangle scan to catch the price movement
before breaking out and nearing a 6 month high. The time frame I expect
the breakouts to occur is 1 to 3 weeks.
Is there a way to determine the most recent endpoints for both the upper and lower ascending arms of the triangle. I would like to find the difference between the two endpoints and be able to calculate a closing price 40% up from the lower ascending triangle.
Example: Upper end point = $20.00
Lower end point = $15.00
40% Up from Lower=$17.00
Any suggestions for improvement greatly appreciated.
Thanks,
p3corion
Show stocks where close is less than 10% below the 124 day high
and Average Volume(90) is above 100000
and close is between 1 and 40
and close is below upper ascending triangle(65)
and close is above lower ascending triangle(65)
|
cegis 235 posts msg #31072 - Ignore cegis |
2/13/2004 2:40:26 PM
How 'bout:
set{ut,upper ascending triangle(65)}
set{lt,lower ascending triangle(65)}
set{diff,ut - lt}
set{pct40,0.4 * diff}
set{target,lt + pct40}
close > target
and close is less than 10% below the 124 day high
and Average Volume(90) is above 100000
and close is between 1 and 40
and close is below upper ascending triangle(65)
and close is above lower ascending triangle(65)
This assumes you want the close to be higher than the 40% mark ("close > target" phrase).
This takes 40% of the difference between the high and low, and adds it to the low to get the target price.
HTH,
C
|
p3corion 3 posts msg #31092 - Ignore p3corion |
2/14/2004 8:52:45 PM
Thanks cegis,
That is exactly what I needed.
Thanks for the hard work.
p3corion
|
chetron 2,817 posts msg #75798 - Ignore chetron |
6/25/2009 7:48:45 PM
POP.....
|