Modified HaDiffCO indicator


Amibroker AFL


/* HaDiffCo intended for use with Heikin-Ashi Modified Candlestick
Chart -- but who's using the Heikin-Ashi ?? */

HaClose=(O+H+L+C)/4;
HaOpen=AMA(Ref(HaClose,-1),0.5);
HaHigh=Max(H,Max(HaClose,HaOpen));
HaLow=Min(L,Min(HaClose,HaOpen));

HaDiffCO = HaClose-HaOpen;

Per = Param("MA Periods",8,3,50,1);
Plot(HaDiffCO,"HaDiffCO",colorWhite);
Plot(WMA(HaDiffCO,5),"HaDiffCO",colorRed, styleDots);
Plot(MA(HaDiffCO,per),"MA("+per+")",colorBlue,styleDots);

Title = "D_Opt HaDiffCO";

張貼留言