涨停回马枪优化版(源码 主图 贴图)介绍
涨停回马枪优化版(源码 主图 贴图)
涨停:=IF((C-REF(C,1))/REF(C,1)>0.097,1,0);
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
LC:=REF(CLOSE,1);
操作线:=SMA(MAX(CLOSE-LC,0),2,1)/SMA(ABS(CLOSE-LC),2,1)*100;
震仓线:=45;
震仓线2:=50;
抄底线:=20;
PP:=操作线<震仓线 AND REF(操作线,1)>震仓线 ;
PP2:=操作线<震仓线2 AND REF(操作线,1)>震仓线2 ;
PP3:=操作线<抄底线 AND REF(操作线,1)>抄底线;
HH1:=COUNT(涨停,12)>=1;
HH:=REF(HH1,1);
STICKLINE(PP AND HH,OPEN,CLOSE,0.8,0),COLORBLUE;
STICKLINE(PP2 AND HH,OPEN,CLOSE,0.8,0),COLORBLUE;
STICKLINE(PP3 AND HH,OPEN,CLOSE,0.8,0),COLORBLUE;
A:SMA(L,4,3),NODRAW;
STICKLINE(REF(PP,1) AND HH ,A*0.9999,A*0.9979,5,0);
DRAWICON(REF(PP,1) AND HH,L*0.98,7);
STICKLINE(REF(PP3,1) AND HH ,A*0.9999,A*0.9979,5,0);
DRAWICON(REF(PP3,1) AND HH,L*0.98,7);
A1:=REF(PP,1) OR REF(PP3,1);
选:(PP OR PP3) AND HH,NODRAW;
N:=20;
M:=32;
P1:=80;
P2:=100;
VAR1:=(C+H+O+L)/4;
卖出:XMA(VAR1,N)*(1+P1/1000),COLORGREEN,LINETHICK2;
买入:XMA(VAR1,M)*(1-P2/1000),COLORMAGENTA,LINETHICK2;
幅度:100*(卖出-买入)/买入,NODRAW;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,MAX(卖出,MAX(OPEN,CLOSE)),1,1),COLORGREEN;
STICKLINE(卖出>MIN(C,O) AND 卖出<MAX(C,O),卖出,MAX(OPEN,CLOSE),1,1),COLORGREEN;
STICKLINE(卖出>LOW AND 卖出<HIGH,卖出,HIGH,0,0),COLORGREEN;
STICKLINE(卖出<LOW,OPEN,CLOSE,1,1),COLORGREEN;
STICKLINE(卖出<LOW,HIGH,LOW,0,0),COLORGREEN;
STICKLINE(买入>LOW AND 买入<HIGH,买入,MIN(MIN(OPEN,CLOSE),买入),1,1),COLORMAGENTA;
STICKLINE(买入>MIN(C,O) AND 买入<MAX(C,O),买入,MIN(OPEN,CLOSE),1,1),COLORMAGENTA;
STICKLINE(买入>LOW AND 买入<HIGH,买入,LOW,0,1),COLORMAGENTA;
STICKLINE(买入>HIGH,OPEN,CLOSE,1,1),COLORMAGENTA;
STICKLINE(买入>HIGH,HIGH,LOW,0,1),COLORMAGENTA;
说明:红线和绿线用到未来函数XMA,所以会有漂移.但它不是用来发出买卖指示,而是用来辩别股价运行区域的,也就是说在什么地方买进会相对安全些.大家导入一看就会明白.至于红线和绿线会漂移多少,大家可以实盘观察或在网上搜一些XMA的文章自已看.
gd15988