[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Moving Local Layouts



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, "renilange" <reni.lange@xxxx> wrote:
> Hi,
> I would like to use MACD but as histogram. I read the signal is a 
> little bit earlier (??) I tried to write the formula , it
doesn´t 
> work (I´m a newbee, still have to learn a lot).

Histo may be easier to read, but earlier signals will only come with 
shorter MAs.

Here's one you can use.  Bars are red if < previous bar, green if >.  
Feel free to comment out the EMA of the Histo, but I like it :)  Set 
grid lines to Middle.

// MACD Histo Colored

Hist=(MACD(12,26))-(Signal(12,26,9));
Plot(Hist,"MACD Histo",IIf(Hist <(Ref(Hist,-1)),colorRed,IIf(Hist >
(Ref(Hist,-1)),colorGreen,16)),2);
Plot (EMA(Hist,9)," EMA9",colorPaleBlue,1);
PlotGrid(0,55);
Title= Name() + " - \\c54 MACD Hist =\\c-1" + WriteVal ( Hist) + " 
\\c54   9EMA =\\c-1" + WriteVal(EMA(Hist,9)); 
GraphXSpace=6;



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
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/