MACD主力分时
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
猎手:= (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100, COLORSTICK;
主力:8*EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,120)-0.0004,LINETHICK1,COLORMAGENTA;
散户:8*EXPMA( (EXPMA(CLOSE,500)-REF(EXPMA(CLOSE,500),1))/REF(EXPMA(CLOSE,500),1)*100,200),LINETHICK1,COLORGREEN;
DRAWICON(CROSS(主力,散户),EXPMA(猎手,200)*1,42);
DRAWICON(CROSS(EXPMA(猎手,120)-0.0004,EXPMA(猎手,200)),EXPMA(猎手,200)*1,34);
DRAWICON(CROSS(EXPMA(猎手,200),EXPMA(猎手,120)-0.0004),EXPMA(猎手,200)*1,35);
Q:=BETWEEN(C/(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))),1.05,0.95);
Q2:=IF(Q=0,MA(C,BARSCOUNT(C)),(SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C))));
DRAWICON(CROSS((C/Q2),1.03),0.068,5);
STICKLINE(CROSS((C/Q2),1.03),0.06,0,6,0)COLORYELLOW;