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

Re: [EquisMetaStock Group] Creating a simple horizontal line indicator



PureBytes Links

Trading Reference Links

Thanks to everyone for their assistance. I managed to use this in 
the end:

LastValue(Sum(V,5)/5)

Probably not very elegant but it seems to work  :-)

Thanks again..........

--- In equismetastock@xxxxxxxxxxxxxxx, "Andrew Tomlinson" 
<andrew_tomlinson@xxxx> wrote:
> Chorlton
> 
> This is an unfancy way of doing it, assuming I have understood you 
correctly
> 
> Volume Line
> 
> AV:=Mov(V,5,S);
> VLn:= LastValue(AV);VLn;
> 
> If you haven't done so, work through the Formula Primer (its in 
the files
> section for this group). It's the way to get started. Then if you 
are
> serious about doing any real coding in Metastock, get Roy's 
newsletter. The
> bang for the buck is way higher than anything else out there.
> http://www.metastocktips.co.nz/
> 
> Good luck
> Andrew
> 
> -----Original Message-----
> From: equismetastock@xxxxxxxxxxxxxxx 
[mailto:equismetastock@xxxxxxxxxxxxxxx]
> On Behalf Of chorlton_c_hardy
> Sent: Thursday, June 16, 2005 1:21 PM
> To: equismetastock@xxxxxxxxxxxxxxx
> Subject: Re: [EquisMetaStock Group] Creating a simple horizontal 
line
> indicator
> 
> 
> 
> Hi Andrew,
> 
> Can you expand on what you've said?  I've only had Metastock for a 
> few weeks and really struggling with the code element.
> 
> I had a look in the help section with regard to lastvalue but the 
> information there was pretty limited.
> 
> Kind Regards,
> 
> Chorlton
> 
> --- In equismetastock@xxxxxxxxxxxxxxx, "Andrew Tomlinson" 
> <andrew_tomlinson@xxxx> wrote:
> > LastValue should do it
> > 
> > -----Original Message-----
> > From: equismetastock@xxxxxxxxxxxxxxx
> [mailto:equismetastock@xxxxxxxxxxxxxxx]
> > On Behalf Of chorlton_c_hardy
> > Sent: Wednesday, June 15, 2005 4:32 PM
> > To: equismetastock@xxxxxxxxxxxxxxx
> > Subject: [EquisMetaStock Group] Creating a simple horizontal line
> indicator
> > 
> > 
> > Hi All,
> > 
> > I want to create an indicator that plots a horizontal line based
> on 
> > the average volume over the last x days.
> > 
> > For example:
> > 
> > If I wanted to plot the average volume for the last "5" days and
> > those volumes were as follows:
> > 
> > Yesterday's Volume  40,000
> > 2 Days ago Volume   50,000
> > 3 Days ago Volume  160,000
> > 4 Days ago Volume   60,000
> > 5 Days ago Volume   50,000
> > 
> > I would be looking for a horizontal line to go through the level
> 72,000
> > (360,000 / 5)
> > 
> > Can anyone help?
> > 
> > PS. I have tried using a MA but without the desired results.
> > 
> > 
> > Many Thanks in Advance
> > 
> > Chorlton
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> > Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links






 
Yahoo! Groups Links

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

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