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

[amibroker] Re: Help needed for "Highest / Lowest value of the last n-bars" problem



PureBytes Links

Trading Reference Links

thanks graham, but this code only pinpoints the highest value in case 
it is the highest for the last 20 days and the output of the function 
is in true/false nature; whereas in my case i donot want to point out 
a time horizon like it is 20 bars in this sample and need the 
consecutive values of the output function to be 5,23,80 standing for 
the largest of the last 5 days, 23 days and 80 days respectively.
cheers.

--- In amibroker@xxxxxxxxxxxxxxx, Graham <kavemanperth@xxx> wrote:
>
> try this
> Hbar = H == HHV(H,20);
> 
> plotshapes( shapestar*hbar, colorred, 0, h, 0 );
> 
> 
> -- 
> Cheers
> Graham
> AB-Write >< Professional AFL Writing Service
> Yes, I write AFL code to your requirements
> http://www.aflwriting.com
> 
> On 08/12/06, kose_u <umitkose@xxx> wrote:
> >
> > Hi,
> > I am trying to have two additional values for each value in any 
chart,
> > which show -for that bar of the chart- "this bar has the largest 
value
> > of last x bars and has the lowest value of the last y bars".
> > I remember once to see such a formulation in somewhere -may be in 
this
> > list or in reference- but cannot remember/find where.
> > I would appreciate any help in case anybody solved such/similar 
problem
> > with a code or remebers such a code/solution/articel anywhere?
> >
> >
> >
> >
> > Please note that this group is for discussion between users only.
> >
> > To get support from AmiBroker please send an e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> >
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>



Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.15/580 - Release Date: 12/8/2006 12:53 PM