通达信操盘手BS状态优化指标
{操盘手BS状态优化}
收阳:C>O,linethick0,precis0;
换手:=V/CAPITAL*1,COLORWHITE,precis2,;
B点:cpx>0 and ref(cpx<0,1),PRECIS0,LINETHICK0;
S点:cpx<0 and ref(cpx>0,1),PRECIS0,LINETHICK0;
BS状态:if(cpx>0,BARSLAST(B点)+1,0)-if(cpx<0,BARSLAST(S点)+1,0),LINETHICK0,PRECIS0;
资金流:=(ORDERAMT(1,2)-ORDERAMT(2,2))/100000000,PRECIS4,LINETHICK0,colorwhite;
大单比率:="大单比率.大单比率"color3d,colorwhite,LINETHICK0;
持币资金增减:SUM(资金流,-if(if(cpx>0,BARSLAST(B点)+1,0)-if(cpx<0,BARSLAST(S点)+1,0)<0,BS状态,0)),COLORAAAA00,PRECIS4,linethick1;
持股资金增减:SUM(资金流,if(if(cpx>0,BARSLAST(B点)+1,0)-if(cpx<0,BARSLAST(S点)+1,0)>0,BS状态,0)),colorred,LINETHICK1,PRECIS4;
持股大单增减:SUM(大单比率,if(if(cpx>0,BARSLAST(B点)+1,0)-if(cpx<0,BARSLAST(S点)+1,0)>0,BS状态,0)),colormagenta,LINETHICK0,PRECIS4;
DRAWTEXT(B点,0.02,'B买'), COLORyellow;
DRAWTEXT(S点,0.02,'S卖'), COLORgreen;
STICKLINE(B点,0,0.01,0.1,0),COLORred,LINETHICK2;
STICKLINE(S点,0,0.01,0.1,0),COLORgreen,LINETHICK2;
阶段涨跌:CLOSE/REF(CLOSE,abs(BS状态))*100-100,linethick0,PRECIS2;
阶段换手:sum(换手,BS状态),linethick0,precis2,colorwhite;
0,colorGREEN,LINETHICK1,POINTDOT;
STICKLINE(持股资金增减>0,0,持股资金增减,0.1,0),COLORred,LINETHICK2;
STICKLINE(持股资金增减<0,0,持股资金增减,0.1,0),COLORgreen,LINETHICK2;
STICKLINE(持币资金增减>0,0,持币资金增减,0.1,0),COLORMAGENTA,LINETHICK2;
STICKLINE(持币资金增减<0,0,持币资金增减,0.1,0),COLORCYAN,LINETHICK2;