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

[amibroker] Re: Looking for HHV/LLV low code



PureBytes Links

Trading Reference Links


Stephane,
take a look at
http://finance.groups.yahoo.com/group/amibroker/message/73776
It needs only m steps for an hhv(C,m) function
Dimitris
--- In amibroker@xxxxxxxxxxxxxxx, "s.carrasset" <s.carrasset@xxxx> 
wrote:
> Hello, Dimitri,
> 
> How decrease the steps? without any built in afl function ...
> 
> stephane
> 
> DIMITRIS TSOKAKIS a écrit :
> 
> >
> > Stephane,
> > You may decrease the steps if you use arrays.
> > Dimitris
> > --- In amibroker@xxxxxxxxxxxxxxx, "s.carrasset" <s.carrasset@xxxx>
> > wrote:
> > > clean code:
> > >
> > > function HHVal (array,Val)
> > > {
> > > result=maxval=thisval=H[0];
> > > for( i = Val; i < BarCount; i++ )
> > > {
> > > Maxval=array[i];
> > > for(j=1;j<Val && j<=i;j++)
> > > {
> > > thisval=array[i-j];
> > > if(thisval>Maxval)
> > > Maxval=thisval;
> > > result[i]=maxval;
> > > }
> > > }
> > > return result;
> > > }
> > >
> > > Plot(HHVal(H,10),"",colorWhite,1);
> > > Plot(C,"",1,64);
> > > Plot(HHV(H,10),"",colorBlue,1);
> >
> >
> >
> >
> >
> > Check AmiBroker web page at:
> > http://www.amibroker.com/
> >
> > Check group FAQ at: 
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> >
> >
> > *Yahoo! Groups Sponsor*
> > ADVERTISEMENT
> > click here 
> > 
<http://us.ard.yahoo.com/SIG=1296e5tv6/M=298184.5584357.6650215.300117
6/D=groups/S=1705632198:HM/EXP=1101024783/A=2434971/R=0/SIG=11eeoolb0/
*http://www.netflix.com/Default?mqso=60185400> 
> >
> >
> >
> > ------------------------------------------------------------------
------
> > *Yahoo! Groups Links*
> >
> >     * To visit your group on the web, go to:
> >       http://groups.yahoo.com/group/amibroker/
> >        
> >     * To unsubscribe from this group, send an email to:
> >       amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >       <mailto:amibroker-unsubscribe@xxxxxxxxxxxxxxx?
subject=Unsubscribe>
> >        
> >     * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> >       Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> >
> >
> > __________ Information NOD32 1.876 (20040924) __________
> >
> > Ce message a ete verifie par NOD32 Antivirus System.
> > http://www.nod32.com





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

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

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

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