通达信抓板神器主图+副图 整套抓板交易型指标源码
用法:按指示信号进场和离场
抓板神器副图源码
X_1:=IF(CODELIKE(77) AND DATE 1200823 OR CODELIKE(78),1,0);
X_2:=CLOSE =ZTPRICE(REF(CLOSE,1),IF(X_1 0,0.2,0.1));
NOTEXT60:60,DOTLINE,COLORLIGRAY;
X_3:=30;
X_4:=200;
X_5:=LOW;
A2:SMA(MAX(X_5-REF(X_5,1),0),X_3,1)/SMA(ABS(X_5-REF(X_5,1)),X_3,1)*100,COLORRED,LINETHICK2;
抓涨停:A2 60 AND X_2,NODRAW;
割韭菜:REF(抓涨停,1) AND NOT(X_2),NODRAW;
DRAWICON(抓涨停,60,1);
DRAWICON(割韭菜,60,2);
抓板神器主图源码
DRAWGBK(CLOSE OPEN,RGB(10,0,0),RGB(0,0,0),1,2,1);
DRAWKLINE(HIGH,OPEN,LOW,CLOSE);
X_1:=IF(CODELIKE(77) AND DATE 1200823 OR CODELIKE(78),1,0);
X_2:=CLOSE =ZTPRICE(REF(CLOSE,1),IF(X_1 0,0.2,0.1));
X_3:=30;
X_4:=LOW;
X_5:=SMA(MAX(X_4-REF(X_4,1),0),X_3,1)/SMA(ABS(X_4-REF(X_4,1)),X_3,1)*100;
X_6:=X_5 60 AND X_2;
X_7:=REF(X_6,1) AND NOT(X_2);
BUY(X_6,LOW);
SELL(X_7,HIGH);
AUTOFILTER;