T100:SUMBARS(vol,CAPITAL),colormagenta;
T50:SUMBARS(VOL,CAPITAL/2),colorred;
20,dotline;
买入:=zig(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2);
卖出:=ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2);
DRAWTEXT(ZIG(3,10)<REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)>REF(ZIG(3,10),2),T100,'★'),COLORgreen;
{-股票公式网站 }
DRAWTEXT(ZIG(3,10)>REF(ZIG(3,10),1) AND REF(ZIG(3,10),1)<REF(ZIG(3,10),2),T50,'★'),COLORred;
卖换:sum(v,BArslAST(卖出))/capital,linethick0;
买换:sum(v,BARSLAST(买入))/capital,linethick0;