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

[EquisMetaStock Group] Re: Date Input



PureBytes Links

Trading Reference Links

Arun,

Remember this indicator....

{ Start date }
sd:=Input("Enter Start Date-DD :",1,31,1);
sm:=Input("Enter Start Month-MM :",1,12,1);
sy:=Input("Enter Start Year-YYYY :",1950,2100,2005);

{ End date }
ed:=Input("Enter Start Date-DD :",1,31,31);
em:=Input("Enter Start Month-MM :",1,12,12);
ey:=Input("Enter Start Year-YYYY :",1950,2100,2006);

{ Starting point }
start:=Year()>sy
OR (Year()=sy AND (Month()>sm
OR Month()=sm AND DayOfMonth()>=sd));

{Ending Point}
end:=Year()<EY
OR (Year()=EY AND (Month()<EM
OR Month()=EM AND DayOfMonth()<=ED));

{Displays}
event:=start AND end;
Highest(ValueWhen(1,event,H));
Lowest(ValueWhen(1,event,L));
{end}


Just change the sy and ey variables to your single number date 
inputs.

Preston



--- In equismetastock@xxxxxxxxxxxxxxx, "arun103" <arun103@xxx> wrote:
>
> Preston,
> 
> This is what I was trying to plot but it plots the highest and 
lowest 
> points in the chart
> 
> fmDate:=Input("Start yyyymmdd (0=last 
trade)",0,20201231,20060101); 
> toDate:=Input("End yyyymmdd (0=last trade)",0,20201231,0); 
> x:=ExtFml("Forum.DateRange",fmDate,toDate);
> hi:=ValueWhen(1,x,LastValue(Highest(H)));
> lo:=ValueWhen(1,x,LastValue(Lowest(L)));
> hi;lo
> 
> Arun
>



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/equismetastock/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:equismetastock-digest@xxxxxxxxxxxxxxx 
    mailto:equismetastock-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/