SVol:=INTPART(SUM(V,0)/CAPITAL);
TJ0:=SVol REF(SVol,1) OR BARSSINCE(CLOSE)=0;
S1:=BARSLAST(TJ0)+1;
TJ2:=S1 REF(S1,1);
S2:=IF(TJ2,REF(S1,1)+1,S1);
S3:=SUM(TJ2,0);
换手:=V/CAPITAL*100,LINETHICK0;
ZS3:=换手/5;
阶段总额(万):=SUM(AMOUNT/10000,S2)*100,NODRAW;
阶段总量(手):=SUM(V,S2)*100,NODRAW;
阶段成本(元):(阶段总额(万)/(阶段总量(手)/100)),NODRAW;★界★成交量万:AMOUNT/10000,COLORFF00FF,NODRAW;
VAR1:=AMOUNT/((DHIGH-DLOW)*2-ABS(DCLOSE-DOPEN));
流入万:IF(DCLOSE DOPEN,VAR1*(DHIGH-DLOW),IF(DCLOSE DOPEN,VAR1*((DHIGH-DOPEN)+(DCLOSE-DLOW)),AMOUNT/2))/10000,colorred,NODRAW;
流出万:IF(DCLOSE DOPEN,0-VAR1*((DHIGH-DCLOSE)+(DOPEN-DLOW)),IF(DCLOSE DOPEN,0-VAR1*(DHIGH-DLOW),0-AMOUNT/2))/10000,COLOR00FF00,NODRAW;
净流入万:流入万+流出万,COLORFFFF00,NODRAW;
{线:=MA(CLOSE,1)-MA(CLOSE,6),NODRAW;}
FF:=MA(DCLOSE,1)-MA(DCLOSE,10),NODRAW;
{量:(线),VOLSTICK;}M:=13;N:=3;
A01:=(C+O+L+H)/4;
A02:=(WINNER((A01 * 1.04)) * 100.000);
A03:=(WINNER((A01 * 0.96)) * 100.000);
A04:A03,NODRAW;
A08:A02-A03,NODRAW;
A06:( 100.000 - A02),NODRAW;
STICKLINE(1.000,5,A04, 5,10),colorred;
STICKLINE( 1.000, 100.000,A02,5,0),colorgreen;
STICKLINE( 1.000,A04,(100-A06),5,0),coloryellow;
获利:MA(A02,M),colorred,LINETHICK3;