KS2:=BARSLAST((C REF(C,1) OR BS=1))+KB1;
BV:=IF(KB2 KS2,AMOUNT/100000000,0);
SV:=IF(KB2 KS2,AMOUNT/100000000,0);
资金差:SUM(BV,0)-SUM(SV,0);
N:=MIN(BARPOS,5);
资金差2:SUM(BV,N)-SUM(SV,N);
{叠加大盘}
POLYLINE(C,C),LINETHICK2,COLORBLACK;{要股价粗线删除这句}
TC:=STRCMP(STRLEFT(MARKETLABEL,2),'SZ');
DPSH:= SH000001$CLOSE /HHV(STKINDI('SH000001','大盘引用.昨收#DAY'),0);
DPSZ:= 399001$CLOSE /HHV(STKINDI('399001','大盘引用.昨收#DAY'),0);
DPC:=IF(INBLOCK('A股板块'),DYNAINFO(3)*IF(TC=0,DPSZ,DPSH),C);
POLYLINE(C 0,DPC),COLORMAGENTA,LAYER0;
C,COLORWHITE,LAYER0;
{大盘力度}
总:STKINDI('SH000001','大盘引用.资金差#TICK');
五分:STKINDI('SH000001','大盘引用.资金差2#MIN1'),LINETHICK0;
STICKLINE(五分 0,五分,0,1,0),Color5050FF;
STICKLINE(五分 =0,五分,0,1,0),ColorFFFF00;