VAR1:=BARSSINCE(LLV(LOW,120));
VAR2:=SUM(AMOUNT*0.01,VAR1)/SUM(VOL,VAR1);
VAR3:=SUMBARS(IF(VOL>CAPITAL*0.5,CAPITAL*0.49,VOL),CAPITAL*0.5);
VAR4:=SUMBARS(IF(VOL>CAPITAL,CAPITAL*0.99,VOL),CAPITAL);
VAR5:=SUMBARS(IF(VOL>CAPITAL*2,CAPITAL*1.99,VOL),CAPITAL*2);
VAR6:=SUMBARS(IF(VOL>CAPITAL*4,CAPITAL*3.99,VOL),CAPITAL*4);
VAR7:=MA(SUM(AMOUNT*0.01,VAR3)/SUM(VOL,VAR3),5);
VAR8:=MA(SUM(AMOUNT*0.01,VAR4)/SUM(VOL,VAR4),5);
VAR9:=MA(SUM(AMOUNT*0.01,VAR5)/SUM(VOL,VAR5),5);
VARA:=MA(SUM(AMOUNT*0.01,VAR6)/SUM(VOL,VAR6),5);
VARB:=IF(SUM(VOL,0)< CAPITAL*0.6,VAR2,VAR7);
VARC:=IF(SUM(VOL,0)< CAPITAL*1.2,VAR2,VAR8);
VARD:=IF(SUM(VOL,0)< CAPITAL*2.5,VAR2,VAR9);
VARE:=IF(SUM(VOL,0)< CAPITAL*4.8,VAR2,VARA);
短线:IF(VARB=0,AMOUNT*0.01/VOL,VARB);
中线:IF(VARC=0,AMOUNT*0.01/VOL,VARC);
长线:IF(VARD=0,AMOUNT*0.01/VOL,VARD);
强支压:IF(VARE=0,AMOUNT*0.01/VOL,VARE), CIRCLEDOT;
X:=BARSLAST(REF(CROSS(C,MA(C,120)),1)) AND CROSS(MA(C,20),MA(C,120));
DRAWTEXT(X,MA(C,120)-0.13,'牛股');
上一篇:很好的通达信副图自己用着感觉不错 下一篇:通达信〈好波〉选股公式