Lohoi
Don't you mean go short. Send me what you have and
I will have a look.
Martin Blain Burlington Ontario
----- Original Message -----
Sent: Thursday, December 30, 2004 10:39
PM
Subject: Re: [EquisMetaStock Group] How
to do it in Metastock's coding??
Could anyone help in coding in Metastock for
trading (enter long) a Harami after 3 Black Candles.
Would greatly appreciate any assistance. Have
been trying in vain since several days.
Regards
Lohia
----- Original Message -----
Sent: Friday, December 31, 2004 1:22
AM
Subject: Re: [EquisMetaStock Group] How
to do it in Metastock's coding??
Eric
Is this something like what you
want?
C1:=L>Ref(L,-1); Cum(1)-ValueWhen(3,C1,Cum(1));
Kind
regards
Roy Larsen www.metastocktips.co.nz Free
formulas and MS links
----- Original Message -----
From: "chichungchoi" <no_reply@xxxxxxxxxxxxxxx> To:
<equismetastock@xxxxxxxxxxxxxxx> Sent:
Thursday, December 30, 2004 7:37 PM Subject: [EquisMetaStock Group] How
to do it in Metastock's coding??
> > > >
Does anyone know how to do coding to meet following condition? >
> Start from any day, and count backward (CB) to find when the number
> of occurrence for C1 equal to 3 times, and save the number of days
> into a variable "CB". > C1:=L>Ref(L,-1); > >
Such as if the current day is 30 Dec, 2004, Starting on any day, for
> example, 20 Dec, 2004, and count backward to find number of
> occurrence for C1, it occurred on > 15 Dec, 2004 > 13
Dec, 2004 and > 10 Dec, 2004, then on 10 Dec, 2004, the number of
occurrence for C1 > is equal to 3 times, therefore, the number of
days is 10, 10 Dec, > 2004 to 20 Dec, 2004, and save 10 into CB
variable for 20 Dec, 2004, > so CB variable will be different on
different periods, such as on 29 > Dec, 2004, and count backward to
find number of occurrence for C1, it > occurred on > 27 Dec,
2004 > 26 Dec, 2004 and > 22 Dec, 2004, the on 22 Dec, 2004,
the number of occurrence for C1 is > equal to 3 times, therefore, the
number of days is 7, 22 Dec, 2004 to > 29 Dec, 2004, and save 7 into
CB variable for 29 Dec, 2004, > > Does anyone have any
suggestion on coding it in Metastock? > Thank you for any
suggestion > Eric > > > > > >
> > > > > Yahoo! Groups Links >
> > > > > > >
>
Yahoo! Groups Sponsor |
ADVERTISEMENT
| |
|
Yahoo! Groups Links
|