YA:=IF(C>=O,AMOUNT,0);
股票技术指标:=SUM(YA,0);
源代码:=SUM(AMOUNT,0);
BL:=100*股票技术指标/源代码;{通达信公式-通达信指标www.gs6699.com}
vvsss1:IF(BARSSINCE(C)>=3,MA(BL,3),50),COLORMAGENTA;
vvsss10:IF(BARSSINCE(C)>=30,MA(BL,30),vvsss1),LINETHICK1;
IF(REF(vvsss10,1)>=vvsss10,vvsss10,DRAWNULL),COLORBLUE,LINETHICK2;
IF(REF(vvsss10,1)<=vvsss10,vvsss10,DRAWNULL),COLORRED,LINETHICK2;
vvsss2:=REF(MA(C,60),1)>MA(C,60);
vvsss3:=REF(MA(INDEXC,60),1)>MA(INDEXC,60);
LS:=vvsss2 AND vvsss3;
STICKLINE(vvsss1<=vvsss10,vvsss1,vvsss10,0.1,0),COLORGREEN;
STICKLINE(vvsss1>vvsss10,vvsss1,vvsss10,0.1,0),COLORRED;
STICKLINE(LS AND vvsss1>vvsss10,vvsss1,vvsss10,1,0),COLORYELLOW;
vvsss4:=CROSS(vvsss1,vvsss10);
vvsss5:=COUNT(vvsss10>vvsss1,BARSLAST(CROSS(vvsss10,vvsss1)))>30;
STICKLINE(vvsss4 AND vvsss5,vvsss1-0.5,vvsss10--0.5,2,0),COLORMAGENTA;