以下是通达信波段金股源码
VAR1:=SMA(AMOUNT,10,1)/10000;
VAR2:=REF(VAR1,1);
VAR3:=SMA(AMOUNT,10,1)/10000;
起跑线: MA(VAR1,5),COLORLIBLUE,LINETHICK2;
IF(起跑线>=REF(起跑线,1),起跑线,DRAWNULL),COLORRED,LINETHICK2;
警戒线: MA(VAR1,21),COLORWHITE,LINETHICK1;
分界线: MA(VAR1,89),COLORYELLOW,LINETHICK1;
STICKLINE(VAR1>VAR2,VAR1,VAR2,4,0),COLOR000055;
STICKLINE(VAR1>VAR2,VAR1,VAR2,3,0),COLOR000077;
STICKLINE(VAR1>VAR2,VAR1,VAR2,2,0),COLOR000099;
STICKLINE(VAR1>VAR2,VAR1,VAR2,1,0),COLOR0000BB;
STICKLINE(VAR1>VAR2,VAR1,VAR2,1,0),COLOR0000DD;
STICKLINE(VAR1>VAR2,VAR1,VAR2,1,0),COLOR0000DD;
STICKLINE(VAR1< VAR2,VAR1,VAR2,4,0),COLOR155500;
STICKLINE(VAR1< VAR2,VAR1,VAR2,3,0),COLOR208000;
STICKLINE(VAR1< VAR2,VAR1,VAR2,2,0),COLOR2BAA00;
STICKLINE(VAR1< VAR2,VAR1,VAR2,1,0),COLOR35D500;
STICKLINE(VAR1< VAR2,VAR1,VAR2,0,0),COLOR40FF00;