PureBytes Links
Trading Reference Links
|
Debra
What I made is an indicator that will display a straight line
from the date entered to the end of chart. You read the last value of the
line and this is the result.
The input() function is not available in MS Explorer.
But you can still use the formula for explorations if you enter the date
directly (without the inputs).
This is an example:
d:=1;
m:=1;
y:=2002;
count:=BarsSince(d<DayOfMonth() AND m=Month() AND y=Year());
count:=count + Cum(If(count=0,1,0));
count
Spyros
Message: 25
Date: Thu, 02 Jan 2003 19:20:55 -0500
From: Pierre Tremblay <pt2000@xxxxxxxxxxxxxxxx>
Subject: Re: Re: RE:Bar Count since certain date
Debra,
Let a space,
Pierre
"drdap " a écrit :
> I entered this formula in the Exploration of MetaStock and it says
> there are errors starting with the D:=Input("DAY",1,31,1); "This
> function is not allowed in this type of formula." The cursor flashes
> between the =and Input.
> What corrections should be made? Thank you.
>
> Debra
>
>
>
> --- In Metastockusers@xxxxxxxxxxxxxxx, "SR" <raftsp@xxxx> wrote:
> > {BarsSinceDate}
> >
> > d:=Input("Day",1,31,1);
> > m:=Input("Month",1,12,1);
> > y:=Input("Year",1920,2030,2002);
> >
> >
> > count:=BarsSince(d<DayOfMonth() AND m=Month() AND y=Year());
> > count:=count + Cum(If(count=0,1,0));
> > count
> >
> > I guess you are looking for this.
> >
> > Spyros
> >
> >
> > Message: 6
> > Date: Wed, 01 Jan 2003 15:51:40 -0000
> > From: "trend2trader <trend2trader@xxxx>" <trend2trader@xxxx>
> > Subject: Bar Count since certain date
> >
> > hi list,
> >
> > is there a possibility to program an indicator which counts the
> bars
> > since a certain data i.e. how many bars since 1/1/2000?
> >
> > thanks in advance
> > trend2trader
>
>
> Yahoo! Groups Sponsor
ADVERTISEMENT
[Image]
>
> To unsubscribe from this group, send an email to:
> Metastockusers-unsubscribe@xxxxxxxxxxx
>
>
>
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
________________________________________________________________________
________________________________________________________________________
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
To unsubscribe from this group, send an email to:
Metastockusers-unsubscribe@xxxxxxxxxxx
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
|