Hi,

Here is code I recently converted for ILRS. I believe EPMA is AB's built-in 
LinearReg() function. To get IE/2, just add them and divide by 2.

Steve

// Tillson ILRS Moving Average - Integral of Linear Regression Slope

field = ParamField( "Field", -1 );

periods = Param( "Periods", 11, 1, 100, 1 );

// determine how many points are in the time series

size = BarCount;

// determine the constant of integration by taking the simple moving average 
of the first periods points in the time series

start = LastValue( Ref( MA( field, periods ), periods - size + 1 ) ); // 
added 1 to get correct results

// value is the integral of linear regression slope plus the constant of 
integration

ILRS = Cum( LinRegSlope( field, periods ) ) + start;

Plot( ILRS, _DEFAULT_NAME(), ParamColor( "Color", colorRed ), styleLine );


----- Original Message ----- 
From: "Brian" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, March 08, 2006 10:54 AM
Subject: [amibroker] Tillson IE/2 indicator?


> Has anyone the code for the Tillson IE/2 indicator, in AFL?
>
> I thought I would ask before spending time to code this on my own.
>
> Here are the details on IE/2 (and also T3) as they appeared in S&C
> magazine.
>
> http://www.traders.com/Documentation/FEEDbk_docs/Archive/0298/TradersTi
> ps/Tips9802.html
>
> Thanks in advance!
>
> Brian
>
>
>
>
>
>
>
> 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
>
>
>
>
>
>
>
> 




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