PureBytes Links
Trading Reference Links
|
I tried changing the code blow but with out Success
/*Xero Lag MACD(p,q,r)*/
//based on ZeroLag EMA inApril, 2000, issue of Technical Analysis
of Stocks AND Commodities.
p = Param("P",12,3,36,2);
q = Param("Q",26,3,52,2);
r = Param("R",9,3,15,1);
EMA1= EMA(Close,p);
EMA2= EMA(EMA1,p);
Difference= EMA1 - EMA2;
ZeroLagEMAp= EMA1 + Difference;
//---------------------------------------
EMA1= EMA(Close,q);
EMA2= EMA(EMA1,q);
Difference= EMA1 - EMA2;
ZeroLagEMAq= EMA1 + Difference;
//---------------------------------------
ZeroLagMACD=ZeroLagEMAp - ZeroLagEMAq;
//---------------------------------------
// Signal line
EMA1= EMA(ZeroLagMACD,r);
EMA2= EMA(EMA1,r);
Difference= EMA1 - EMA2;
ZeroLagTRIG= EMA1 + Difference;
Plot(zerolagMACD,"",5,4);
Plot(zerolagtrig,"",7,4);
//===========================end zeroLagMACD
--- In amibroker@xxxxxxxxxxxxxxx, "mleonsprint" <mleonsprint@xxxx>
wrote:
>
> Have you attempted to try writing the code? Or are you just looking
> to have someone else write the whole thing?
>
> Mark
>
> --- In amibroker@xxxxxxxxxxxxxxx, "goldwing01"
> <goldwing01_1999@xxxx> wrote:
> >
> > I am looking for a MACD chart with A Histogram plus would like to
> be
> > able to change time frames at will.
> >
> > copy blow from a WEB page:
> >
> > Successful trading system is to combine weekly and daily MACD
> > signals. You can do so by taking the daily signals that are in
> > accordance with both the weekly MACD and the overall trend (as
> > measured by the 30- or 40-week moving average).
> >
> > MACD can be made even more useful by incorporating a related
> > indicator -- the MACD histogram. Thomas Aspray described the
> > histogram in 1986. Like MACD, it oscillates around a zero line.
> But
> > while MACD is an indicator based on moving averages, the
histogram
> is
> > an indicator of an indicator -- the MACD itself.
> >
> > What the histogram shows in graphic form is the difference
between
> > the main MACD line (the 12-26 line) and the nine-period trigger
> line.
> > This difference is then plotted on a scale to form a histogram,
> > defined as a series of vertical lines. The higher the
lines "grow"
> > above the histogram's zero line, the stronger the price momentum
> and
> > the more bullish the trend. The further the lines decline below
> the
> > zero line, the stronger the negative the trend and the more
> downside
> > pressure there is. When the MACD indicator itself issues a buy or
> > sell signal, then the histogram is always at its own zero line.
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|