把起爆点做出盘中预警
2019/12/2 18:06:02
公式编写说明:
请老师费心把主图中的 起爆点 做出盘中预警 谢谢VAR1:=EMA(EMA(CLOSE,9),9);主力:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;无庄:=主力<0;有庄:=主力>REF(主力,1) AND 主力>0;VAR2:=100*WINNER(CLOSE*0.95);强庄:=VAR2>50 AND COST(85)<CLOSE AND 主力>0;出货:=主力<REF(主力,1) AND 主力>0;STICKLINE(有庄 AND C>=O,C,O,3,1),COLORRED;STICKLINE(有庄 AND C<O,C,O,3,0),COLORRED;STICKLINE(强庄 AND C>=O,C,O,3,1),COLORMAGENTA;STICKLINE(强庄 AND C<O,C,O,3,0),COLORMAGENTA;STICKLINE(出货 AND C>=O,C,O,3,1),COLORGREEN;STICKLINE(出货 AND C<O,C,O,3,0),COLORGREEN;STICKLINE(主力<0 AND C<O,C,O,3,0),COLORBLUE;STICKLINE(主力<0 AND C>=O,C,O,3,1),COLORBLUE;短线:=EMA(CLOSE,5),COLORYELLOW,LINETHICK1;操盘线:EMA(CLOSE,7),COLORRED,LINETHICK1;K311:=操盘线<REF(操盘线,1);K3121:=BACKSET(K311,2);DRAWLINE(K3121,操盘线,K311,操盘线,0),COLORGREEN, LINETHICK1;趋势:EMA(CLOSE,21),COLORYELLOW,LINETHICK2;上升趋势:IF(EMA(CLOSE,21)>=REF(EMA(CLOSE,21),1),EMA(CLOSE,21),DRAWNULL),COLORMAGENTA,LINETHICK2;下降趋势:IF(EMA(CLOSE,21)<REF(EMA(CLOSE,21),1),EMA(CLOSE,21),DRAWNULL),COLORGREEN,LINETHICK2;强势:=主力>REF(主力,1) AND 主力>0; 进入短线强势区:=CROSS("KDJ.J",80) AND "MACD.DIF">"MACD.DEA"AND EMA(C,7)>EMA(C,21) AND "MACD.MACD">REF("MACD.MACD",1);HD:=FILTER(BACKSET(FILTER(REF(C,10)=HHV(C,2*10+1),10),10+1),10);LD:=FILTER(BACKSET(FILTER(REF(C,10)=LLV(C,2*10+1),10),10+1),10);波峰:IF(BARSLAST(HD)<BARSLAST(LD) AND NOT(HD),REF(C,BARSLAST(HD)),REF(C,BARSLAST(HD))),COLORFF00FF,POINTDOT;STICKLINE(BARSLAST(HD)<BARSLAST(LD) AND NOT(HD),REF(C,BARSLAST(HD)),REF(C,BARSLAST(HD)),9,2),COLORGREEN;突破波峰:=CROSS(C,波峰) AND VOL>EXPMA(VOL,25) AND C/REF(C,1)>1.0143;DRAWTEXT(突破波峰,L*0.870,'突破'),COLORMAGENTA;DRAWICON("KDJ.J"-REF("KDJ.J",1)>30 AND C/REF(C,1)>1.043 AND "MACD.MACD">0 AND EXPMA(C,12)>EXPMA(C,50),L*0.90,5);DRAWTEXT("KDJ.J"-REF("KDJ.J",1)>30 AND C/REF(C,1)>1.043AND "MACD.MACD">0 ANDEXPMA(C,12)>EXPMA(C,50),L*0.95,'起爆'),COLORRED;起爆点出现就会盘中预警 谢谢老师 辛苦啦
公式源码示例:
{起爆}
"kdj.j"-ref("kdj.j",1)>30 and c/ref(c,1)>1.043 and "macd.macd">0 and expma(c,12)>expma(c,50);
{突破}
hd:=filter(backset(filter(ref(c,10)=hhv(c,2*10+1),10),10+1),10);
ld:=filter(backset(filter(ref(c,10)=llv(c,2*10+1),10),10+1),10);
波峰:=if(barslast(hd)<barslast(ld) and not(hd),ref(c,barslast(hd)),ref(c,barslast(hd)));
cross(c,波峰) and vol>expma(vol,25) and c/ref(c,1)>1.0143;
看股吧公 式 w ww.kanguba.com
其它股票公式列表