箱体捉妖专F1 通达信公式 副图 源码附图
DRAWGBK(ISLASTBAR,RGB(60,60,60),RGB(0,0,0),0,11,0);
更多精准指标:INDEXADV,NODRAW,COLORMAGENTA;
联系:INDEXADV,NODRAW,COLORYELLOW;
QQ2843556704:INDEXADV,NODRAW,COLORMAGENTA;
X_1:=EMA((CLOSE-REF(CLOSE,1))/REF(CLOSE,3),10)*100;
X_2:=EMA(EMA(EMA(EMA(X_1,2),2),2),3);
X_3:=(CLOSE-MA(CLOSE,26))/MA(CLOSE,26)*100;
0,LINETHICK2;
X_4:=IF(YEAR>=2020,0,1);
黄金坑:IF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100<(-15),MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,0)*X_4,COLOR00F600,LINETHICK2;
A5:IF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100>0 AND MA(CLOSE,5)>MA(CLOSE,10) AND X_3>EMA(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,5) AND X_2>REF(X_2,1),MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,0)*X_4;
持股线:(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100>0 AND MA(CLOSE,5)>MA(CLOSE,10) AND X_3>EMA(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,5) AND DYNAINFO(17)>0)*A5*X_4,COLORRED;
X_5:=MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100;
STICKLINE(X_5<(-20) AND X_5>REF(X_5,1)*X_4,X_5,(-6),4,0),COLORC8C8FA;
STICKLINE(X_5<(-20),X_5,(-6),4,0),COLOR00C8FA;
STICKLINE(X_5<(-20),0,(-6),4,0),COLOR00C800;
STICKLINE(X_5<(-20) AND X_5>REF(X_5,1)*X_4,0,(-6),4,0),COLOR6464FA;
X_6:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
X_7:=X_6+3*STD(X_6,10);
X_8:=MA(CLOSE,26)+2*STD(CLOSE,26);
买点:(VOL>0 AND BARSLASTCOUNT(A5>0)=1 AND X_2>REF(X_2,1))*A5,NODRAW,COLORBLUE;
STICKLINE(买点,买点,0,3,0),COLOR990000;
DRAWTEXT(VOL>0 AND BARSLASTCOUNT(A5>0)=1 AND X_2>REF(X_2,1),(-6),32),COLORYELLOW;
X_9:=(VOL>0 AND A5>0 AND X_2>REF(X_2,1))*EMA(A5,5);
STICKLINE(X_9,X_9,0,2,0),COLORRED;
X_10:=(VOL>0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(EMA(CLOSE,2),HHV(EMA(CLOSE,5),26)))*EMA(A5,2);
STICKLINE(X_10,X_10,0,3,0),COLORWHITE;
X_11:=(VOL>0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(EMA(CLOSE,2),HHV(EMA(CLOSE,5),26)))*(-3);
STICKLINE(X_11,X_11,0,6,0),COLORYELLOW;
STICKLINE(X_11,X_11,0,2,0),COLOR005555;
STICKLINE(X_11,X_11,0,1,0),COLOR007777;
STICKLINE(X_11,X_11,0,0.2,0),COLOR009999;
卖点:(VOL>0 AND CROSS(0.5,持股线))*REVERSE(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100)*X_4,COLORGREEN;
STICKLINE(卖点,卖点,0,3,0),COLOR009900;
短线起爆:(VOL>0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(EMA(CLOSE,2),HHV(EMA(CLOSE,5),26)))*10*X_4,NODRAW;
X_12:=(VOL>0 AND EMA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),2)>MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4) AND MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4)>REF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4),1) AND SMA(MAX(CLOSE-REF(CLOSE,1),0),14,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),14,1)*100>64.5 AND EMA(CLOSE,1)>(X_7 OR X_8))*EMA(A5,5)/2.5*X_4;
STICKLINE(X_12,X_12,0,3,0),COLORYELLOW;
X_13:=(VOL>0 AND EMA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),2)>MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4) AND MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4)>REF(MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),4),1) AND (VOL>0 AND A5>0 AND X_2>REF(X_2,1))*EMA(A5,5)=0)*X_3*X_4;
STICKLINE(X_13,X_13,0,3,0),COLORLIBLUE;
DRAWBMP(短线起爆<0,(-3),33);
IF(EMA(CLOSE,2)>HHV(EMA(CLOSE,5),26) AND A5>0*X_4,持股线,DRAWNULL),COLORMAGENTA,LINETHICK3;
X_14:=EMA((EMA(CLOSE*VOL,3)/EMA(VOL,3)+EMA(CLOSE*VOL,6)/EMA(VOL,6)+EMA(CLOSE*VOL,12)/EMA(VOL,12)+EMA(CLOSE*VOL,24)/EMA(VOL,24))/4,13);
X_15:=1.06*X_14*X_4;
X_16:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100;
STICKLINE(X_16>8.5 AND CROSS(MA(CLOSE,1),EMA(HIGH,10)*(1+5/100)) AND CROSS(MA(CLOSE,1),X_15),MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100*2,MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,1,0),COLORFF0099;
STICKLINE(X_16>8.5 AND CROSS(MA(CLOSE,1),EMA(HIGH,10)*(1+5/100)) AND CROSS(MA(CLOSE,1),X_15),MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100*1.5,MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100,1,0),COLORRED;
DRAWTEXT(X_16>8.5 AND CROSS(MA(CLOSE,1),EMA(HIGH,10)*(1+5/100)) AND CROSS(MA(CLOSE,1),X_15)>0,MA((CLOSE-MA(CLOSE,28))/MA(CLOSE,28),3)*100*2,34),COLORYELLOW;
DRAWTEXT(VOL>0 AND CROSS(0.5,持股线),5,35),COLORGREEN;
追板选股:(X_16>8.5 AND CROSS(MA(CLOSE,1),EMA(HIGH,10)*(1+5/100)) AND CROSS(MA(CLOSE,1),X_15))*10,NODRAW;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
填充背景(ISLASTBAR,RGB(60,60,60),RGB(0,0,0),0,11,0)
输出更多精准指标:INDEXADV,NODRAW,画洋红色
输出联系:INDEXADV,NODRAW,画黄色
输出QQ2843556704:INDEXADV,NODRAW,画洋红色
X_1赋值:EMA((收盘价-1日前的收盘价)/3日前的收盘价,10)*100
X_2赋值:X_1的2日指数移动平均,2),2),3)
X_3赋值:(收盘价-收盘价的26日简单移动平均)/收盘价的26日简单移动平均*100
0, 线宽为2
如果YEAR>=2020返回0否则返回1
输出黄金坑:IF(MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100<(-15),MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100,0)*X_4,COLOR00F600, 线宽为2
输出A5:IF(MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100>0 AND MA(收盘价,5)>MA(收盘价,10) AND X_3>EMA(MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100,5) AND X_2>1日前的X_2,MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100,0)*X_4
输出持股线:(MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100>0 AND MA(收盘价,5)>MA(收盘价,10) AND X_3>EMA(MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100,5) AND DYNAINFO(17)>0)*A5*X_4,画红色
X_5赋值:MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100
STICKLINE(X_5<(-20) AND X_5>1日前的X_5*X_4,X_5,(-6),4,0),COLORC8C8FA
STICKLINE(X_5<(-20),X_5,(-6),4,0),COLOR00C8FA
STICKLINE(X_5<(-20),0,(-6),4,0),COLOR00C800
STICKLINE(X_5<(-20) AND X_5>1日前的X_5*X_4,0,(-6),4,0),COLOR6464FA
X_6赋值:(收盘价的3日简单移动平均+收盘价的6日简单移动平均+收盘价的12日简单移动平均+收盘价的24日简单移动平均)/4
X_7赋值:X_6+3*X_6的10估算标准差
X_8赋值:收盘价的26日简单移动平均+2*收盘价的26估算标准差
输出买点:(成交量>0 AND BARSLASTCOUNT(A5>0)=1 AND X_2>1日前的X_2)*A5,NODRAW, 画蓝色
当满足条件买点时,在买点和0之间画柱状线
DRAWTEXT(成交量>0 AND BARSLASTCOUNT(A5>0)=1 AND X_2>1日前的X_2,(-6),32),画黄色
X_9赋值:(成交量>0 AND A5>0 AND X_2>1日前的X_2)*A5的5日指数移动平均
当满足条件X_9时,在X_9和0之间画柱状线
X_10:=(成交量>0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(收盘价的2日指数移动平均,26日内收盘价的5日指数移动平均最高值))*A5的2日指数移动平均
当满足条件X_10时,在X_10和0之间画柱状线
X_11:=(成交量>0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(收盘价的2日指数移动平均,26日内收盘价的5日指数移动平均最高值))*(-3)
当满足条件X_11时,在X_11和0之间画柱状线
当满足条件X_11时,在X_11和0之间画柱状线
当满足条件X_11时,在X_11和0之间画柱状线
当满足条件X_11时,在X_11和0之间画柱状线
输出卖点:(成交量>0 AND 0.5上穿持股线)*MA((收盘价-MA(收盘价,28的相反数)/MA(收盘价,28),3)*100)*X_4,画绿色
当满足条件卖点时,在卖点和0之间画柱状线
输出短线起爆:(成交量>0 AND BARSLASTCOUNT(A5>0)=1 AND CROSS(收盘价的2日指数移动平均,26日内收盘价的5日指数移动平均最高值))*10*X_4,NODRAW
X_12:=(成交量>0 AND EMA((收盘价-MA(收盘价,28))/MA(收盘价,28),2)>MA((收盘价-MA(收盘价,28))/MA(收盘价,28),4) AND MA((收盘价-MA(收盘价,28))/MA(收盘价,28),4)>REF(MA((收盘价-MA(收盘价,28))/MA(收盘价,28),4),1) AND SMA(MAX(收盘价-REF(收盘价,1),0),14,1)/SMA(收盘价-REF(收盘价,1的绝对值),14,1)*100>64.5 AND EMA(收盘价,1)>(X_7 OR X_8))*EMA(A5,5)/2.5*X_4
当满足条件X_12时,在X_12和0之间画柱状线
X_13:=(成交量>0 AND EMA((收盘价-MA(收盘价,28))/MA(收盘价,28),2)>MA((收盘价-MA(收盘价,28))/MA(收盘价,28),4) AND MA((收盘价-MA(收盘价,28))/MA(收盘价,28),4)>REF(MA((收盘价-MA(收盘价,28))/MA(收盘价,28),4),1) AND (成交量>0 AND A5>0 AND X_2>REF(X_2,1))*EMA(A5,5)=0)*X_3*X_4
当满足条件X_13时,在X_13和0之间画柱状线
DRAWBMP(短线起爆<0,(-3),33)
IF(收盘价的2日指数移动平均>26日内收盘价的5日指数移动平均最高值 AND A5>0*X_4,持股线,DRAWNULL),画洋红色, 线宽为3
X_14:=EMA((EMA(收盘价*成交量,3)/EMA(成交量,3)+EMA(收盘价*成交量,6)/EMA(成交量,6)+EMA(收盘价*成交量,12)/EMA(成交量,12)+EMA(收盘价*成交量,24)/EMA(成交量,24))/4,13)
X_15:=1.06*X_14*X_4
X_16:=(收盘价-1日前的收盘价)/1日前的收盘价*100
STICKLINE(X_16>8.5 AND CROSS(收盘价的1日简单移动平均,最高价的10日指数移动平均*(1+5/100)) AND CROSS(收盘价的1日简单移动平均,X_15),MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100*2,MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100,1,0),COLORFF0099
STICKLINE(X_16>8.5 AND CROSS(收盘价的1日简单移动平均,最高价的10日指数移动平均*(1+5/100)) AND CROSS(收盘价的1日简单移动平均,X_15),MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100*1.5,MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100,1,0),画红色
DRAWTEXT(X_16>8.5 AND CROSS(收盘价的1日简单移动平均,最高价的10日指数移动平均*(1+5/100)) AND CROSS(收盘价的1日简单移动平均,X_15)>0,MA((收盘价-MA(收盘价,28))/MA(收盘价,28),3)*100*2,34),画黄色
DRAWTEXT(成交量>0 AND 0.5上穿持股线,5,35),画绿色
输出追板选股:(X_16>8.5 AND CROSS(收盘价的1日简单移动平均,最高价的10日指数移动平均*(1+5/100)) AND CROSS(收盘价的1日简单移动平均,X_15))*10,NODRAW