{cyc5:CYC(5),COLORYELLOW;
CYC13:CYC(13),COLORFF00FF;
CYC34:CYC(34),COLORGREEN;}
CYC∞:=CYC.CYC∞,COLORFF9900;
{CYC∞:=MAXCYC;}
CYS∞:(CLOSE-CYC∞)/CYC∞*100,COLORRED,CIRCLEDOT;
成本谷:REF(CYC∞,BArslAST(cys∞<=0)-1){,PRECIS2},LINETHICK0,COLORRED;{赋值指标为最近一次刚上穿CYC∞时的CYC∞的数值}
负成本谷:=REF(CYC∞,BARSLAST(CYS∞>0)-1);
基础位移1:=100*(CLOSE-成本谷)/成本谷;
负基础位移1:=100*(CLOSE-负成本谷)/负成本谷;
基础位移:IF(CYS∞>=0,基础位移1,负基础位移1){,PRECIS2},COLORYELLOW;
牛天数:=BARSLAST(crOSS(CYS∞,0))+1;
熊天数:=(-1)*BARSLAST(CROSS(0,CYS∞))-1;
牛熊天数:IF(CYS∞>0,牛天数,熊天数){,PRECIS0},NODRAW,COLORMAGENTA;
STICKLINE(CROSS(CYS∞,0),10,0,2,0),COLORRED;
STICKLINE(CROSS(0,CYS∞),10,0,2,0),COLORBLUE;
【获利】:WINNER(CLOSE)*100,COLORYELLOW,NODRAW;
【活筹】:(WINNER(C*1.075)-WINNER(C*0.925))*100,COLORFFFFFF,NODRAW;
【获利纵横】:【获利】-【活筹】,NODRAW;
IF(【获利纵横】<=50,【获利纵横】,DRAWNULL),COLORGREEN,NODRAW;
IF(【获利纵横】>50,【获利纵横】,DRAWNULL),COLORRED,NODRAW;
【换手率】:vol/CAPITAL*100,COLORWHITE,NODRAW;
【涨跌】:CLOSE-REF(C,1),COLORWHITE,NODRAW;
【涨跌幅】:(C-REF(C,1))/REF(C,1)*100,COLORWHITE,NODRAW;
DRAWTEXT_FIX(C>0,0,0,0,'【成本谷单位】:元'),COLORWHITE;
DRAWTEXT_FIX(C>0,0,0.08,0,'【基础位移单位】:百分数“%”'),COLORWHITE;
{DRAWTEXT_FIX(C>0,0,0,0,'(【超大、大户、主力】:单位为万元。)'),COLORWHITE;
DRAWTEXT_FIX(C>0,0,0.08,0,'(【柱状图、线条】:黄柱,当日超大净买。)'),COLORWHITE;
DRAWTEXT_FIX(C>0,0,0.16,0,'(【仓位】:单位为%。)'),COLORWHITE;};