「翔博精选指标」资金进场(通达信公式 副图 源码 测试图)
2020-06-18原创 编 辑:翔博软件
资金进场 非原创,自己感觉不错。
{DRAWGBK((CLOSE > 0),COLORRGB(0,130,100),COLORRGB(0,0,30),1);}
Z_X0:=SMA(AMOUNT,10,1)/10000000;
XL_1:=(Z_X0-LLV(Z_X0,4))/(HHV(Z_X0,4)-LLV(Z_X0,4))*100;
XL_2:=LLV(Z_X0,4)+SMA(XL_1,4,1)/100*(HHV(Z_X0,4)-LLV(Z_X0,4));
XL_3:=SMA(XL_2,3,1);
资金:=Z_X0,LINETHICK,COLORFFA9FF;
分界:=MA(Z_X0,3);
{大盘--转向三角}
Z_X1:=REF(EMA(Z_X0,5),1);
Z_X2:=(EMA(Z_X0,5)-Z_X1)/Z_X1*100;
Z_X3:=REF(EMA(Z_X0,5),BARSLAST(CROSS(Z_X2,0))+1);
Z_X4:=REF(EMA(Z_X0,5),BARSLAST(CROSS(0,Z_X2))+1);
资金离场:STICKLINE(Z_X0<REF(Z_X0,1)AND (AMOUNT/REF(AMOUNT,1)<0.97),Z_X0,REF(Z_X0,1),2,0),COLORWHITE;{//资金离场}
资金进场:STICKLINE(Z_X0>=REF(Z_X0,1),Z_X0,REF(Z_X0,1),2,0),COLORRED;{//资金进场}
空仓:STICKLINE(Z_X0<分界,Z_X0,REF(Z_X0,1),2,1),,COLORFFA900;{//空仓}
IF(Z_X2>=0 AND Z_X3=REF(Z_X3,1),Z_X3,DRAWNULL),COLORFF6FFF; {//粉红--直线}
IF(Z_X2<0 AND Z_X4=REF(Z_X4,1),Z_X4,DRAWNULL),COLORGREEN; { //绿--直线};