股市密码(通达信公式 副图 源码 测试图)
VAR1:=REF(LLV(LOW,90),3);VAR2:=REFDATE(VAR1,DATE);VAR3:=VAR2=LOW AND (CLOSE-LOW>OPEN-CLOSE OR OPEN-LOW>CLOSE-OPEN);淘金翻倍:IF(VAR3,57,0),COLORCYAN,LINETHICK2;VAR4:=100-100*(HHV(HIGH,34)-CLOSE)/(HHV(HIGH,34)-LLV(LOW,34));VAR5:=100-MA(100*(HHV(HIGH,13)-CLOSE)/(HHV(HIGH,13)-LLV(LOW,13)),21);VAR6:=MA(VAR5,2);红持股:IF(VAR4<VAR6,VAR6,VAR4),COLORRED,LINETHICK2;绿持币:IF(VAR4>VAR6,VAR6,VAR4),COLORGREEN,LINETHICK2;强弱:VAR6,COLORYELLOW,LINETHICK2;VAR7:=IF(SETCODE=0 OR SETCODE=1,100*VOL,VOL)/(FINANCE(7)/100);换手:VAR7,NODRAW,COLORGRAY;VAR8:=VAR7*1;STICKLINE(VAR8,VAR8+120,120,1,0),COLORWHITE;STICKLINE(VAR8>=2*1,VAR8+120,120,1,0),COLORBLUE;STICKLINE(VAR8>=3*1,VAR8+120,120,2,0),COLORGREEN;STICKLINE(VAR8>=5*1 AND VAR8<7,VAR8+120,120,2,0),COLORBROWN;STICKLINE(VAR8>=7*1 AND VAR8<10,VAR8+120,120,2,0),COLORLIMAGENTA;STICKLINE(VAR8>=10*1,VAR8+120,120,2,0),COLORRED;VAR9:=MA(VAR7,5)+120;VAR10:=MA(VAR7,60)+120;VAR11:=LLV(换手,120)+120;VAR12:=ZIG(3,20);VAR13:=IF(VAR12>REF(VAR12,1),(-5),0);VAR14:=ZIG(3,6);VAR15:=IF(VAR14>REF(VAR14,1),(-5),0);司库:IF(VAR15=(-5) AND VAR13=(-5),(-16),0),COLORYELLOW,LINETHICK2;VAR16:=ZIG(3,15);银行家:IF(VAR16>REF(VAR16,1),(-23),0),COLORWHITE,LINETHICK2;VAR17:=ZIG(3,35);睡后收入:IF(VAR17>REF(VAR17,1),(-30),0),COLORGREEN,LINETHICK2;0,COLORGRAY;100,COLORGRAY;(-40),COLORGRAY;
120,COLORGRAY;