分时主散-精品通达信指标公式源码分享
VAR1:=BARSLAST(TIME=931)+1;
VAR2:=IF(CLOSE<DYNAINFO(3) AND VAR1=1,(-1),IF(CLOSE>DYNAINFO(3) AND VAR1=1,1,IF(CLOSE=DYNAINFO(3) AND VAR1=1,0,IF(CLOSE<REF(CLOSE,1) AND VAR1>1,(-1),IF(CLOSE>REF(CLOSE,1) AND VAR1>1,1,0)))));
VAR3:=VOL/CAPITAL*100*240;
VAR4:=IF(VAR3>10,0,IF(VAR3>3,1,IF(VAR3>1,2,3)));
VAR5:=SUM(IF(VAR2=1,VOL,0),VAR1)/100;
VAR6:=SUM(IF(VAR2=(-1),VOL,0),VAR1)/100;
净流:VAR5-VAR6,COLORSTICK;
VAR7:=SUM(IF(VAR2=1 AND VAR4<2,VOL,0),VAR1)/100;
VAR8:=SUM(IF(VAR2=(-1) AND VAR4<2,VOL,0),VAR1)/100;
大宗净流:SMA(VAR7-VAR8,5,1),COLORYELLOW,LINETHICK2;
VAR9:=IF(VAR4=0,0.91,0.03)*VAR2*AMO.AMOW/10000;
VAR10:=IF(VAR4=1,0.91,0.03)*VAR2*AMO.AMOW/10000;
VAR11:=IF(VAR4=2,0.91,0.03)*VAR2*AMO.AMOW/10000;
VAR12:=IF(VAR4=3,0.91,0.03)*VAR2*AMO.AMOW/10000;
超大:SUM(VAR9,VAR1)/DYNAINFO(4),COLORMAGENTA,LINETHICK2;
VAR13:=SUM(VAR10,VAR1);
VAR14:=SUM(VAR11,VAR1);
VAR15:=SUM(VAR12,VAR1);
版权声明
本文版权归掌上指标所有。
未经许可,不得转载,转载请注明出处!