PureBytes Links
Trading Reference Links
|
Hi
Terry,
<SPAN
class=263354813-14022004>
Try this; you can
set the X and Y numbers in the first two lines to suit your ideas; I have
assumed a simple average - you can change it to exponential by replacing S with
E.
<SPAN
class=263354813-14022004>
If you drop it into
a new window you will get a binary signal line (spikes to 1 when all three
conditions are true).
<SPAN
class=263354813-14022004>
<SPAN
class=263354813-14022004>
AVDays:= X; {fill in
your number}Lookback:= Y; {fill in your number}Cond1:= Mov(C, AVDays, S)
> Ref(Mov(C, AVDays, S), -Lookback);Cond2:= C < Ref(C,
-Lookback);Cond3:= C > Ref(C, -(Lookback + AVDays));
Cond1 AND Cond2 AND
Cond3
<SPAN
class=263354813-14022004>
<SPAN
class=263354813-14022004>
Let me know how it
goes.
<SPAN
class=263354813-14022004>
Good testing and
trading.
<SPAN
class=263354813-14022004>Mike
<FONT
face=Tahoma size=2>-----Original Message-----From: terrance
maccormack [mailto:terrymaccormack@xxxxxxxxx] Sent: Saturday, 14
February 2004 3:55 PMTo:
equismetastock@xxxxxxxxxxxxxxxSubject: [EquisMetaStock Group]
formula helpLike a few others I'm new to Metastock
and writingformulas to match trading ideas.I've taken a few stabs
at the following but can't seemto get it right so was wondering if someone
out therecould give me a hand.I want to buy on the open of the
next day when thefollowing three conditions are met:(1) The
average close of the past X number of days isgreater than the same average
close Y days ago. (2) Today's close is less than the close Y days
ago.(3) Today's close is greater than the close Y+X
daysago.The reverse would be the case for a sell.Any help
would be greatly appreciated.Terry
M__________________________________Do you Yahoo!?Yahoo!
Finance: Get your refund fast by filing online.<A
href="">http://taxes.yahoo.com/filing.html
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 the Yahoo! Terms of Service.
|