Welcome Features News Download Registration Support FAQ Wish list Links
Advanced stock charting and analysis program

AFL Library

This is read-only version of AFL library entry. Ability to add user formulas and comment is only available from members-only area.

Details:

Formula name: Elder Impulse Indicator
Author/Uploader: Lal - (email hidden)
Date/Time added: 2005-10-28 18:01:49
Origin: Elder's CIMTR
Keywords: Elder, Impulse
Level: medium
Flags: indicator

DISCLAIMER: Most formulas present in AFL on-line library are submitted by the users and are provided here on an "as is" and "as available" basis. AmiBroker.com makes no representations or warranties of any kind to the contents or the operation of material presented here. We do not maintain nor provide technical support for 3rd party formulas.
Description:

Detects an "impulse" in price and plots up/down arrows accordingly along with Close bars.

Formula:

/**************************************************************************
Name		:	Elder Impulse Indicator
Coded by	:	Lal
Date		:	28.10.2005
Note		: 	Please refer to Elder's "Come Into my Trading Room"
				for full details 
******************************************************************************/


// User-defined parameter for EMA periods
EMA_prds = Param("EMA_periods", 12, 1, 30, 1);


// Compute EMA and MACD Histogram
DayEMA		= EMA(Close, EMA_prds);
Histogram	= MACD() - Signal();

// Determine if we have an Impulse UP, DOWN or None
Impulse_Up		=	DayEMA > Ref(DayEMA, -1) AND Histogram > Ref(Histogram, -1);
Impulse_Down	=	DayEMA < Ref(DayEMA, -1) AND Histogram < Ref(Histogram, -1);   
Impulse_None	=	(NOT Impulse_UP) AND (NOT Impulse_Down);

// Compute Weekly MACD and determine whether rising or falling
// Note: uses "non-standard"  parameters!
TimeFrameSet(inWeekly);
MACD_val	=	MACD(5, 8);
Signal_val	=	Signal(5, 8, 5);
Hist_in_w	=	MACD_val - Signal_val;

wh_rising 	= Hist_in_w > Ref(Hist_in_w, -1);
wh_falling 	= Hist_in_w < Ref(Hist_in_w, -1);

TimeFrameRestore();

// Now get Monthly MACD Histogram....
TimeFrameSet(inMonthly);
MACD_val		=	MACD(5, 8);
Signal_val		=	Signal(5, 8, 5);
Hist_in_m		=	MACD_val - Signal_val;

mh_rising = Hist_in_m > Ref(Hist_in_m, -1);
mh_falling = Hist_in_m < Ref(Hist_in_m, -1);

TimeFrameRestore();

wh_rising 	= TimeFrameExpand( wh_rising, inWeekly ); 
wh_falling 	= TimeFrameExpand( wh_falling, inWeekly ); 
mh_rising 	= TimeFrameExpand(mh_rising, inMonthly);
mh_falling 	= TimeFrameExpand(mh_falling, inMonthly);

kol 	= IIf( wh_rising, colorGreen,  IIf(wh_falling, colorRed,
colorLightGrey));
mkol 	= IIf( mh_rising, colorBlue,  IIf(mh_falling, colorYellow,
colorLightGrey));

// Plot them all!
Plot(Close, "Close", colorTeal, styleBar);
PlotShapes(shapeUpArrow * Impulse_Up, colorBlue, 0, Low, -12);
PlotShapes(shapeDownArrow * Impulse_Down, colorRed, 0, High, -12);
PlotShapes(shapeSmallCircle * Impulse_None, colorWhite, 0, High, 5);
Plot(10, "ribbon", kol, styleOwnScale|styleArea|styleNoLabel, -12, 156);	//
Weekly trend
Plot(10, "ribbon", mkol, styleOwnScale|styleArea|styleNoLabel, -0.5, 150);	//
Monthly Trend

Comments:

Pierre
legris-pira [at] iris.mg
2006-01-13 01:39:31
Hello,

I am a beginner on Amibroker; I believe your excellent programming and I would like to build a "Explorer" in order to list the stocks
in ENTRY or in EXIT. Can you help me to build this scanning?

Thank you very much,
Lal

2006-01-15 07:14:58
Hi Pierre,

Do you want the explorer specifically for this AFL (Elder Impulse)?

Lal
Pierre
legris-pira [at] iris.mg
2006-01-19 02:08:10
Hi Lal,

I reside in ANTANANARIVO (Madagascar). French, I master English badly (to 72 years, the school is well far!) Ausi, I often use "LogoTrans."

I learn the programming slowly on the Tutorial but would wish to achieve an exploreur for this AFL, that, without douten will serve me model for others.

I wish, indeed, to compare the results to a commercial product of WALDATA 'France) that proposes a tool analogy (Impulse and Three Screens).

thank you for your kindness and @+

E-mail : legris-pira@iris.mg
Pierre
legris-pira [at] iris.mg
2006-01-19 03:44:40
Hi Lal,

If you wish it, you can join by E-mail

Good day,


Pierre


About | Privacy | Terms of Use | Contact information
Copyright © 2001 AMIBROKER.COM