PureBytes Links
Trading Reference Links
|
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/
|