Stock Portfolio Organizer

The ultimate porfolio management solution.

Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
For Portfolio Manager Click Here

WiseTrader Toolbox

#1 Selling Amibroker Plugin featuring:

Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Find Out More Here

Color Price Bar - Impulse System for Amibroker (AFL)
over 12 years ago
Amibroker (AFL)

5 / 5 (Votes 2)
oscillator, macd, amibroker, timeframe

When the MACD Histogram is up and EMA is up Price bars are green. When MACD Histogram is down and EMA is down price bars are red. If the MACD Histogram and EMA are moving in two different directions the price bars are blue.

“When the impulse system is Green you may go long or stand aside. When the impulse system is red you may go short or stand aside. I wait for the impulse system to go off green before shorting and off red before going long” – Dr. Elder

By MTR Investors Group

Similar Indicators / Formulas

Submitted by prasadbrao almost 10 years ago
DTOscillator 2TF 5M-15M
Submitted by hemsvg over 11 years ago
MACD Bullish
Submitted by zillur almost 12 years ago
MACD Dema Indicator
Submitted by Peixoto about 12 years ago
MACD with Bollinger Bands
Submitted by MIKE1 about 12 years ago
Submitted by ajeet about 11 years ago

Indicator / Formula

Copy & Paste Friendly
MTR Investors Group -

Color price bars with MACD Histogram Bars changes. Use on weekly chart 
to determine market trend. See Elder "Come into my trading room"
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g,
Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));

TimeFrameSet( inDaily) ;

r1 = Param( "Impulse Fast avg", 12, 2, 200, 1 );
r2 = Param( "Impulse Slow avg", 26, 2, 200, 1 );
r3 = Param( "Impulse Signal avg", 9, 2, 200, 1 );

ml = MACD(r1, r2);
sl = Signal(r1,r2,r3);
Hist = ml-sl;

MACUP = Hist > Ref(Hist,-1);
MACDN = Hist < Ref(Hist,-1);

MA1 = Param( "Impluse MA", 21, 21, 200, 1 );

MAUP = EMA(C,MA1) > Ref(EMA(C,MA1),-1);
MADN = EMA(C,MA1) < Ref(EMA(C,MA1),-1);

//BarColor = IIf(Close == Open, colorBlack,IIf(Close>Open,colorGreen,colorRed));

BarColor  = IIf(MACUP AND MAUP,colorGreen,IIf(MACDN AND

Plot( C, "Close", BarColor, styleNoTitle | ParamStyle("Style") |
GetPriceStyle() );


1. vaenu999

it also showm syntax error

2. administrator

Thanks, It has been fixed.

3. mahmud reyadh

there is no histogram

5. donle

just read Elder’s “New Trading for a Living”. Your formula is exactly what I’m looking for. Great Thanks!

6. thangbiz

New Trading for a Living
Impulse System!

Leave Comment

Please login here to leave a comment.