新版通达信公式,老通达信已经不能使用。
下面的是源码中的新函数沪股通:SCJYVALUE(2,1,0)深股通:SCJYVALUE(2,2,0)
收盘价:=IF(基价=1,C,IF(基价=2,HY_INDEXC,IF(基价=3,INDEXC,DRAWNULL)));
VAR1:=MA(收盘价,5);VAR2:=MA(收盘价,10);VAR3:=MA(收盘价,20);VAR4:=MA(收盘价,30);VAR5:=(VAR1+VAR2+VAR3+VAR4)/4;VAR6:=(VAR5-REF(VAR5,15))/REF(VAR5,15)*100;VAR7:=EMA(VAR6,8);VAR8:=VAR7>=REF(VAR7,1);VAR9:=VAR6>=REF(VAR6,1);VAR10:=VAR6<=REF(VAR6,1);VAR11:=VAR6<=REF(VAR6,1) AND VAR7>=REF(VAR7,1);VAR12:=VAR6>=REF(VAR6,1) AND VAR6<=VAR7 AND VAR6<=0;VAR13:=CROSS(VAR6,VAR7);STICKLINE(VAR8,VAR6,0,-1,0),COLORMAGENTA;十大流通:FINVALUE(244)/(FINVALUE(239)+FINVALUE(240)+FINVALUE(241))*100,NODRAW,COLORRED;STICKLINE(VAR9,VAR6,VAR7,-1,0),COLORRED;变化:(FINONE(244,0,0)-FINONE(244,0,1))/(FINVALUE(239)+FINVALUE(240)+FINVALUE(241))*100,NODRAW,COLORRED;STICKLINE(VAR10,VAR6,VAR7,-1,0),COLORGREEN;STICKLINE(VAR11,VAR6,VAR7,-1,0),COLORYELLOW;STICKLINE(VAR12,VAR6,VAR7,-1,0),COLORBLUE;沪股通:SCJYVALUE(2,1,0),NODRAW,COLORGREEN;STICKLINE(VAR13,VAR6,0,-1,0),COLOR0055AA;深股通:SCJYVALUE(2,2,0),NODRAW,COLORGREEN;STICKLINE(VAR13,VAR6,0,2.8,0),COLOR0066BB;STICKLINE(VAR13,VAR6,0,2.5,0),COLOR0077CC;STICKLINE(VAR13,VAR6,0,2.1,0),COLOR0088DD;STICKLINE(VAR13,VAR6,0,1.7,0),COLOR0099EE;STICKLINE(VAR13,VAR6,0,1.2,0),COLOR00AAFF;STICKLINE(VAR13,VAR6,0,0.7,0),COLOR00CCFF;
STICKLINE(VAR13,VAR6,0,0.2,0),COLOR00FFFF;
|