[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Metastockusers] Re: RE:Bar Count since certain date



PureBytes Links

Trading Reference Links

Debra

The formula is intended to be used as an indicator and includes the Input()
function. If you want to use it in an exploration then you need to
substitute a fixed value in place of 'Input(.....'

Input() is one function that is not permitted in the Explorer, the System
Tester, or in experts.

D:=1;

would be acceptable, or you could put any other suitable number up to 31.

Roy

----- Original Message -----
From: <drdap@xxxxxxxxx>
To: <Metastockusers@xxxxxxxxxxxxxxx>
Sent: Friday, January 03, 2003 1:01 PM
Subject: [Metastockusers] Re: RE:Bar Count since certain date


> 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
>
>
> 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/
>
>
>
>



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/