ABCA:=(CLOSE-LLV(LOW,32))/(HHV(HIGH,32)-LLV(LOW,32))*1.2*CLOSE;
ABCB:=SMA(ABCA,13,1);
趋势线:SMA(ABCB,5.5,1.5),COLORCYAN DOTLINE;
主力线:3*ABCB-2*趋势线,COLORYELLOW;
散户线:4*趋势线-3*ABCB,COLORMAGENTA LINETHICK2;
ACB1:=EMA(ABCA,3);
ACB2:=EMA(ABCA,5);
ACB3:=EMA(ABCA,7);
STICKLINE(ACB1>ACB2,ACB3,ACB1,2,0),COLORRED;
STICKLINE(ACB1< ACB2,ACB3,ACB1,2,0),COLORGREEN;
DIF:=EMA(CLOSE,9)-EMA(CLOSE,12);
DEA:=EMA(DIF,3);
macd:=(DIF-DEA)*2;
多多:=MACD>0;
ACC1:=ACB2>ACB3&& ACB1< REF(ACB1,1);
ACC2:=ACB2< ACB3 && ACB1>REF(ACB1,1);
DRAWICON(crOSS(主力线,散户线),主力线*0.8,26);
开始做多:=BARSLASTCOUNT(ACB1>ACB2)=1;
DRAWICON(开始做多 AND 多多,主力线,9);