// 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@yahoogroups.com, "Arie Ellerbrak" <[EMAIL PROTECTED]> 
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:
    [EMAIL PROTECTED]

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


Reply via email to