PureBytes Links
Trading Reference Links
|
Hi Chorlton
If I understand you correctly, this should work. The event you are looking for is defined first, then BarsSince() is used to count the bars since that event was false.
The filter can be set discard a count below your threshold (I've set the threshold to 3 as 5 will give very few hits), and clicking on the column A report header will sort your results in ascending or descending order. Be sure NOT to use "Minimum Records"
{colA}
Event:=L>Ref(L,-1) AND C>Ref(C,-1);
BarsSince(Event=0);
{Filter}
colA>2
Regards
Roy
www.metastocktips.com
----- Original Message -----
From: chorlton_c_hardy
To: equismetastock@xxxxxxxxxxxxxxx
Sent: Wednesday, February 08, 2006 11:09 AM
Subject: [EquisMetaStock Group] Higher Lows for "x" number of consecutive days
Hello All,
Can anyone offer some help please !!
I want to write a simple exploration that finds stocks where the LOW
& CLOSE is higher than the previous day, and which in turn is higher
than that previous day and so on... The minimum number of
consecutive days that the low & close is higher than the previous
day should be 5.
However, this is where it gets tricky :-( After my exploration
search is complete, I want to be able to sort the results by
the "Number of consecutive days that the LOW & CLOSE was higher than
the previous day"
In other words, sort the results so that the number of consecutive
days is ranked from high to low (low being the minimum number of 5)
which should help me to identify those stocks in the best UpTrend.
Can anyone help...
Many Thanks in advance,
Chorlton
SPONSORED LINKS Business finance course Business to business finance Small business finance
Business finance consultant Business finance magazine Business finance schools
--------------------------------------------------------------------------------
YAHOO! GROUPS LINKS
a.. Visit your group "equismetastock" on the web.
b.. To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--------------------------------------------------------------------------------
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/BefplB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|