PureBytes Links
Trading Reference Links
|
I think this should do it
{<><><><> Start Code <><><><>}
Input: FastMA(12),SlowMA(26),MacdMA(9);
Value1 = (MACD(Close,FastMA,SlowMA));
Value2 = (XAverage(MACD(Close,FastMA,SlowMA),MacdMA));
Value3 = Value1-Value2;
If value3 > value3[1] then begin
Plot1(Value3,"Up MACD");
End;
If value3 = value3[1] then begin
Plot2(Value3,"No MACD");
End;
If value3 < value3[1] then begin
Plot3(Value3,"Dn MACD");
End;
{<><><><> End Code <><><><>}
Plot all 3 plots as histograms and assign different colours to the plots
Regards,
Paul
At 12:07 AM 15/02/2001 -0600, Preston Morrow wrote:
>Subject: macd Histogram
>
>
>is there an easy to amend the TS MACD program (TS-4.0) so that if the
>Histogram is lower than the previous bar it is painted in one color & when
>it is higher than the previous bar, it is painted in another color?
>
>thanx, preston
|