AS3 :=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
NS1:=MA(AS3,5)COLORGREEN;
IF(NS1>REF(NS1,1),NS1,DRAWNULL),LINETHICK1,LINETHICK1,COLORRED;
VAR1:=vol/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
主动买盘:=(CLOSE>OPEN,VAR1*(HIGH-LOW),IF(CLOSE
P:=(主动买盘+主动卖盘)*(2*CLOSE+HIGH+LOW)/4;
DIFF:=EMA(P,12)-EMA(P,26), LINETHICK1,COLORWHITE;
DEA:=EMA(DIFF,9),COLORGREEN;
macd:DIFF-DEA, COLORSTICK;
IF(DIFF>=REF(DIFF,1),DIFF,DRAWNULL),COLORYELLOW,LINETHICK3;
DIF:DIFF,LINETHICK2,COLOR00FFFF;
建仓:IF(DIF<0,DIF,0),COLORYELLOW,LINETHICK2;
加仓:IF(DIF<0,0,DIF),COLORRED,LINETHICK2;
白线卖:IF(DIF