input:p1(170),p2(200);
CC:=IF(CAPITAL<1,INDEXV*0.618,vol/3);
H1:=VOL/CAPITAL*100;
h2:=INDEXV/SUM(INDEXV,71)*100;
hs:=IF(CAPITAL<1,h2,h1);
JJ:=IF(CAPITAL<1,INDEXA/INDEXV/100,(OPEN+HIGH+LOW+CLOSE)/4);
AA:=IF(BETWEEN(C,JJ,H) OR C=O,vol,0);
BB:=IF(BETWEEN(C,JJ,L) OR C<O,vol,0);
{www.gupang.com 股旁网_飞狐股票指标公式}
DDZ:hs*(BB-(AA+CC))/(CC-(AA-BB))*P2/100,LINETHICK0;
DDZ1:hs*(BB-(AA+CC))/(CC-(AA-BB))*P1/100,LINETHICK0;
FILLRGN(DDZ>DDZ1,DDZ,DDZ1),Color0000FF;
FILLRGN(DDZ<DDZ1,DDZ,DDZ1),Color00FF00;
DRAWTEXTEX(c>0,1,10,50,'大单分差'),ColorFFFFFF;
202108211203.jpg
|