平均股价:=MA(C,0);
成本均价:=SUM(AMOUNT,0)/SUM(vol,0)/100;
换手率:=VOL/CAPITAL*100;
均价:=SUM(AMOUNT,1)/SUM(VOL,1)/100;
增量:=(VOL-REF(VOL,1))/REF(VOL,1)*100;
成本偏离:=(C-成本均价)/成本均价*100;
股价偏离:=(C-平均股价)/平均股价*100;
突变:=换手率>=1 AND 增量>95;
最大量:=HHV(VOL,21);
周期:BArslAST(VOL=最大量)NODRAW;
AAA:REF(均价,周期),NODRAW;
STICKLINE(BARSLAST(突变)+1>0,REF(均价,BARSLAST(突变)),REF(均价,BARSLAST(突变)),2,0),COLORFF9933,LINETHICK2;
STICKLINE(最大量,AAA,AAA,1,0),COLORRED,LINETHICK1;