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

MACD with trend line for Amibroker (AFL)
herjebi
about 11 years ago
Amibroker (AFL)

Rating:
5 / 5 (Votes 1)
Tags:
oscillator, amibroker

MACD with trend line. enjoy!!

Screenshots

Similar Indicators / Formulas

Febo RSI ..real indicator
Submitted by abhinavsingh over 12 years ago
Trading Volume Statistic
Submitted by tuanstock1 almost 10 years ago
Ergodic Oscillator
Submitted by dljtrader over 13 years ago
3 Days Track
Submitted by janet0211 almost 14 years ago
Chande Momentum Oscillator
Submitted by klimpek over 13 years ago

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("MACDval");
r1 = Param( "Fast avg", 12, 2, 200, 1 );
r2 = Param( "Slow avg", 26, 2, 200, 1 );
r3 = Param( "Signal avg", 9, 2, 200, 1 );


dynamic_color = IIf( MACD() > 0, colorGreen, colorRed);
MACD_trend = IIf( MACD() >= 0, 0.5, -0.5);
Plot( MACD(), "MACD(12,26)", dynamic_color, styleHistogram | styleThick);
Plot( MACD_trend, "MACD Trend", dynamic_color, styleLine | styleThick);


_SECTION_BEGIN("SIGNALval");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( MACD(12,26),9 ),"signal 9",colorYellow,styleHistogram |styleThick, ParamStyle("Style") );

7 comments

1. anandnst

Hello herjebi n Admin,

i cant find any trendline in above formula.. kindly check.

2. shariful

nice sharing…thanks, @ anandnst >green line=uptrend, red line vice versa

3. hotaro3

Dear Admin- this indicator about 1 month ago posted as Macd with Signal by spectremind- please check it

4. anandnst

Hello admin,

Ya this afl is posted before also But modification line shown in Picture.. it not in the Formula posted.

5. Divyesh

we can use this MACD afl along with any AFL with below given code of RIBBON….!

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


dynamic_color = IIf( MACD() > 0, colorGreen, colorRed);
MACD_trend = IIf( MACD() >= 0, 0.5, -0.5);
Plot( 2, "ribbon",IIf( MACD_trend>=0, colorLime, colorRed ), styleOwnScale|styleArea|styleNoLabel, 0, 100 );
6. morgen

What’s new…pussycat?
Only colours!?

7. herjebi

Source : Macd with Signal by spectremind
Thanks for spectremind.

Leave Comment

Please login here to leave a comment.

Back