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

[amibroker] (AFL corr) Re: Help with Kirshenbaum indicator



PureBytes Links

Trading Reference Links

I'm not too expert at coding, but I thought I read somewhere that the 
KirshBands were the same as the Standard Error Bands.  Look in the 
help files under STDERR.
Rick

--- In amibroker@xxxxxxxxxxxxxxx, "dalengo" <dalengo@xxx> wrote:
>
> //try this (little typo corrected: use LRper for LinReg). 
> //cheers-- alex
> 
> _SECTION_BEGIN ("KirshBands"); //alex-- mar 4,2006 
>  
> SetBarsRequired(10000,0); 
> Per = Param( "per", 22, 2, 50, 1 ); 
> LRper = Param( "LR per", 13, 2, 50, 1 ); 
> Ndev = Param("Ndev", 1.75, 1.25, 3, .25);  
> 
> EmaP = EMA(Close, per); 
> Linr = LinearReg( Close, LRper ); // Lin Reg of Close wrt Selected
> scatter = StDev ( Close - Linr, LRper ); // Std deviation from Lin 
> Reg
> 
> Plot(C,"C",1,64);
> 
> // Plot Ema w/Kirsh Bands:: kirsh = EMA(per) +(-) Ndev * scatter; 
> 
> for( i = -1; i <= 1 ; i++)
> 	Plot(  EMAP + i * Ndev * scatter, 	"Kirsh", i + 2, 1); 
> _SECTION_END();
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "dalengo" <dalengo@> wrote:
> >
> > // try this. cheers -- alex
> > 
> > _SECTION_BEGIN ("KirshBands"); //alex-- mar 4,2006 
> >  
> > SetBarsRequired(10000,0); 
> > Per = Param( "per", 22, 2, 50, 1 ); 
> > Lper = Param( "L per", 13, 2, 50, 1 ); 
> > Ndev = Param("Ndev", 1.75, 1.25, 3, .25);  
> > 
> > EmaP = EMA(Close, per); 
> > Linr = LinearReg( Close, per ); // Lin Reg of Close wrt Selected
> > scatter = StDev ( Close - Linr, Lper ); // Std deviation from Lin 
> Reg
> > 
> > Plot(C,"C",1,64);
> > 
> > // Plot Ema w/Kirsh Bands::
> > // kirshTOP = EMA(per) + Ndev * scatter; 
> > // kirshBOT = EMA(per) - Ndev * scatter;
> > 
> > for( i = -1; i <= 1 ; i++)
> > 	Plot(  EMAP + i * Ndev * scatter, 	"Kirsh", i + 2, 1); 
> > _SECTION_END();
> > 
> > 
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "Arie Ellerbrak" <a.ellerbrak@> 
> > wrote:
> > >
> > > 
> > > Hello,
> > > 
> > > Has anyone tried to code the Kirshenbaum bands? It has been 
> asked 
> > before,
> > > years ago, but I haven't found any answers. I can provide the 
> > description.
> > > Coding it myself has led me to a cul-de-sac. Can anyone be of 
> any 
> > help?
> > > 
> > > 
> > > Kind regards,
> > > 
> > > Arie Ellerbrak
> > >
> >
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 other support material please check also:
http://www.amibroker.com/support.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/