1、【通达信】出手必中(卖出、买入、幅度、买进)-指标公式源码VAR1:=(C+H+O+L)/4;卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;幅度:100*(卖出-买入)/买入,NODRAW;MA1:=MA(VAR1,3);STICKLINE(卖出LOW AND 卖出MIN(C,O) AND 卖出LOW AND 卖出LOW AND 买入MIN(C,O) AND 买入LOW AND 买入HIGH,OPEN,CLOSE,3,0),COLORMAGE
2、NTA;STICKLINE(买入HIGH,HIGH,LOW,0,0),COLORMAGENTA;DRAWTEXT(CROSS(C,买入) OR (L卖出),HIGH*1.02,),COLORGREEN;A3:=(C-LLV(L,9)/(HHV(H,9)-LLV(L,9)*100;A4:=SMA(A3,3,1);A5:=SMA(A4,3,1);A6:=3*A4-2*A5;A7:=C-REF(C,1);A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A80,2) AND CROSS(A8,MA(A8,2);DRAWTEXT(FILTER(买=1,5),LOW-0.05,买进),COLORYELLOW; STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;【通达信】出手必中(卖出、买入、幅度、买进)-指标公式效果图(文档来源:若水财经社区)