PureBytes Links
Trading Reference Links
|
Here's one that works on end of day charts:
-----
{MACD Red/Green Hist edited from TS4}
Input: FastMA(12),SlowMA(26),MacdMA(9);
Plot1(MACD(Close,FastMA,SlowMA),"MACD"); {green line}
Plot2(XAverage(MACD(Close,FastMA,SlowMA),MacdMA),"MACDAvg"); {red line}
Value1 = (Plot1-Plot2);
If Value1 > Value1[1] then Plot3(Value1,"MAUp") {green hist}
Else Plot4(Value1,"MADn"); {red hist}
-----
And one that works on intraday charts:
-----
{MACD IntraDay Hist edited from TS4}
{MaxBarsBack set to 1}
inputs: FastMA(12),SlowMA(26),MacdMA(9);
Plot1(MACD(Close,FastMA,SlowMA),"MACD"); {green line}
Plot2(XAverage(MACD(Close,FastMA,SlowMA),MacdMA),"MACDAvg"); {red line}
plot3(0,"MA up"); {green hist}
plot4(0,"MA dn"); {red hist <======reset plot values to 0 before
plotting the MACDD values
(erases last bar value)}
value1=MACD(Close,FastMA,SlowMA)-(XAverage(MACD(Close,FastMA,SlowMA),MacdMA));
if value1>value1[1] then begin
plot3(value1,"MA up"); { <===plots according to MACD climbing}
end else begin
plot4(value1,"MA dn"); { <===plots according to MACD falling}
end;
-----
They're not elegantly written, but they work well.
>>From: Preston Morrow
>>To: LIST - OMEGA
>>Sent: Tuesday, October 31, 2000 8:36 AM
>>Subject: MACD Histogram: 1-color UP, 1-color DN
>>
>>
>>is there an easy means of changing the OMEGA MACD histogram to show one
>>color when it is greater that the previous bar & another color when the bar
>>is less than the previous bar.
>>thanx, preston
|