指标公式描述 指标简介:
指标自带买卖点提示,指标编写原理来自“宁俊明135战法”效果见“指标图示”。 买卖点说明: 买点:文字标注“始”。 卖点:文字标注“终”。 1、当有连续多个“始”,以第一个“始”做为买点,忽略后面的信号。 2、当有连续多个“终”,以第一个“终”做为卖点,忽略后面的信号。 3、最优指标成功率、收益率的统计也是以第一个“始”与第一个“终”做为统计点。 指标代码:
ema13:EMA(C,13),colorwhite,linethick2; ema34:EMA(C,34),coloryellow; ema55:EMA(C,55),colorff00ff; ema120:EMA(C,120),colorffcc66; ar1:=ema55>ema34 AND ema34>ema13; ar2:=BARSLAST((C-ema13)/ema13*100<-6); ar3:=ema13>=REF(ema13,2); ar4:=COUNT(CROSS(C,ema13),ar2)=1; ar5:=ar1 AND ar2 AND ar3 AND ar4;ar6:=ar5 AND FILTER(ar5,10); DRAWTEXT(ar6,L-0.09,'红杏出墙'),coloryellow; STICKLINE(ar6,H,L,0.5,1),coloryellow; STICKLINE(ar6,O,C,6,1),linethick2,coloryellow; br1:=COUNT(BETWEEN((C-REF(C,1))/REF(C,1)*100,0,5),5)=5; br2:=ABS((ema13-ema34)+(ema34-ema55))/C<0.2; br3:=C>ema55 AND (REF(C,1)< REF(ema55,1) OR REF(C,2)< REF(ema55,2) OR REF(C,3)< REF(ema55,3) OR REF(C,4)< REF(ema55,4) OR REF(C,5)< REF(ema55,5)); br4:=br1 AND br2 AND br3; DRAWTEXT(br4 AND FILTER(br4,10),L-0.09,'蚂蚁上树'),color00C5FF; STICKLINE(br4 AND FILTER(br4,10),H,L,0.5,1),color00C5FF; STICKLINE(br4 AND FILTER(br4,10),O,C,6,1),linethick2,color00C5FF; cr1:=(C-REF(C,1))/REF(C,1)*100>0.5; cr2:=V>MA(V,5)*0.6; cr3:=COUNT(CROSS(ema13,ema55),3)=1; cr4:=ABS(ema34-ema55)/ema55<0.03; cr5:=ema55<=ema120 AND ema55>=REF(ema55,1); cr6:=FILTER(cr1 AND cr2 AND cr3 AND cr4 AND cr5,2); STICKLINE(cr6,H,L,0.5,1),colorf00ff0; STICKLINE(cr6,O,C,6,1),linethick2,colorf00ff0; DRAWTEXT(cr6,L-0.09,'红衣侠女'),colorf00ff0; dr1:=ema13>ema34 AND ema34C AND C < REF(C,1) AND C>ema55 AND BETWEEN((C-ema55)/ema55,0,0.02),dr4)=1; dr6:=C>REF(C,1); dr7:= dr1 AND dr5 AND dr6 ;dr8:=dr7 AND FILTER(dr7,10); DRAWTEXT(dr8,L-0.09,'黑客点击'),colord6ba63; STICKLINE(dr8,H,L,0.5,1),colord6ba63; STICKLINE(dr8,O,C,6,1),linethick2,colord6ba63; er:=BARSLAST(REF(CROSS(ema55,ema34),1)) AND CROSS(ema34,ema55); DRAWTEXT(er,L-0.09,'均线互换'),color0099ff; STICKLINE(er,H,L,0.5,1),color0099ff; STICKLINE(er,O,C,6,1),linethick2,color0099ff; fr:=BARSLAST(REF(CROSS(ema34,ema13),1)) AND CROSS(ema13,ema34); DRAWTEXT(fr,L-0.09,'梅开二度'),colorwhite; STICKLINE(fr,H,L,0.5,1),colorwhite; STICKLINE(fr,O,C,6,1),linethick2,colorwhite; gr1:=BARSLAST(BETWEEN("bias.bias2"(6,13,24),0,5)); gr2:=ema13>ema34 AND ema34>ema55 AND ema13>REF(ema13,1); gr3:=COUNT("bias.bias2"(6,13,24)>10 AND H=HHV(H,gr1),gr1); gr4:=H=HHV(H,gr1); gr5:="macd.macd"(12,26,9) < REF("macd.macd"(12,26,9),1); gr6:=gr2 AND gr3 AND gr4; gr7:=gr2 AND gr3 AND gr4 AND gr5; DRAWTEXT(gr6 AND gr7,H+0.13,'见好就收!'),color00ff00; STICKLINE(gr6 AND gr7,H,H+0.09,4,0),color00ff00; hr2:=ema13>=REF(ema13,3) AND ema34>=REF(ema34,1) AND ema55>=REF(ema55,1) AND CROSS(C,ema13) AND CROSS(C,ema34) AND CROSS(C,ema55); DRAWTEXT(hr2 AND FILTER(hr2,10),L-0.09,'三线推进'),colorFFC8FF; STICKLINE(hr2 AND FILTER(hr2,10),H,L,0.5,1),colorFFC8FF; STICKLINE(hr2 AND FILTER(hr2,10),O,C,6,1),linethick2,colorFFC8FF; DRAWTEXT(CROSS(ema13,EMA55),EMA13,'始'); DRAWTEXT(CROSS(EMA34,EMA13),EMA34,'终'); 指标图示:
财富池
指标仅供学习研究、不具备投资建议,请谨慎使用。 可以通过指标学习反推指标逻辑,了解这个指标背后的操作逻辑。买卖点设定逻辑。提升自己,增强胜率。 |