通达信跟庄吃面主图+牛股启动副图 看看你能不能吃到这碗“牛肉面”
{跟庄吃面主图源码如下}
STICKLINE(O>C,C,O,3,1),COLOR00CC00;
KQ:DRAWRECTREL(C>0,967,200,1000,RGB(0,100,0));
KQ1:DRAWTEXT_FIX(C>0,0.00,10,0,' 炒股:就是食碗面 穿碗底收杀!!!')COLORYELLOW;
ER5:=NOT(NAMELIKE('S') OR NAMELIKE('*S'))&&VOL>1&&DYNAINFO(39)>1;{去除ST和停牌股}
ER6:=BARSLASTCOUNT(FINANCE(7)=REF(FINANCE(7),1))>=60&&ER5; {去除除权股};
换:=100*VOL/(FINANCE(7)/100);{换手率}
均:=0.01*AMOUNT/VOL;{个股均点}
W2:=BARSLAST(UPNDAY(EMA(C,360),5)),NODRAW;
W5:=IF(均=LLV(均,W2)&&EMA(C,360)>EMA(C,180),L,DRAWNULL);
W6:=FILTERX(W5,W2);
周:=BARSLAST(W6),NODRAW;
K:=周-9;
WK2:=REF(H,周);
WK3:=REF(LLV(L,58),周);{REF(L,周)}
WK4:=IF(CURRBARSCOUNT<=CONST(周)+1&&CURRBARSCOUNT>=CONST(K),CONST(IF(K,WK2,WK2)),DRAWNULL),COLORGREEN,DOTLINE;{新低画线}
WK5:=IF(CURRBARSCOUNT<=CONST(周)+1&&CURRBARSCOUNT>=CONST(K),CONST(IF(K,WK3,WK3)),DRAWNULL),COLORGREEN,DOTLINE;
WK6:=STICKLINE(周=0&&CURRBARSCOUNT<=CONST(周)+1&&CURRBARSCOUNT>=CONST(K+1),WK3*1.3,H*1.01,0.00001,-1),COLORYELLOW;
WK7:=DRAWTEXT(周>=1&&周<=2&&CURRBARSCOUNT<=CONST(周+1)&&CURRBARSCOUNT>=CONST(K+1),L,'低'),COLORCYAN;
圆宽:=CONST(60);
定日:=CONST(周+1);
AA:=CONST(定日+圆宽/2);
前天:=CONST(圆宽+定日);
后天:=CONST(定日);
低点:=CONST(WK3);
中间价:=CONST(低点*1.15);
CURR:=CURRBARSCOUNT;{到最后交易的周期}
高H:=DRAWLINE(CURR=前天,中间价,CURR=后天,中间价,0);
低L:=DRAWLINE(CURR=后天,中间价,CURR=前天,中间价,0);
高低线:=高H;
价值线:=DRAWBAND(高低线,RGB(225,226,199),高低线,RGB(225,226,199));
三分点:=IF(CURR=前天,中间价,IF(CURR=后天,中间价,IF(CURR=ROUND((前天+后天)/2),高低线,DRAWNULL))),COLORMAGENTA,CIRCLEDOT,LINETHICK3;
中:=CONST(低点*1.15);{低点*1.3 高}
低:=CONST(低点);
高低幅:=中-低;
弧:=中*低;
AA1:=2*弧/圆宽;
AA2:=弧/高低幅;
AA3:=(AA-CURR)*AA1;
AA5:=SQRT(弧*弧-AA3*AA3)/AA2;
B低:=CONST(中间价+0.0314*2);
B高低幅:=中间价-B低;
B弧:=中间价*B低;
BBX:=2*B弧/圆宽;
BBY:=B弧/B高低幅;
BXW:=(AA-CURR)*BBX;
AN39:=SQRT(B弧*B弧-BXW*BXW)/BBY;
SD1:=周>=1&&周<=2&&CURRBARSCOUNT<=CONST(周+1)&&CURRBARSCOUNT>=CONST(K+1)&&O<=C&&均>=REF(均,1)&&REF(均,1)<REF(均,2)&&换>REF(换,1)&&ER6;{&&换>REF(换,1)&&ER6}
SD2:=周>=1&&周<=2&&CURRBARSCOUNT<=CONST(周+1)&&CURRBARSCOUNT>=CONST(K+1)&&O<=C&&均>=REF(均,1)&&REF(C,1)<REF(C,2)&&换>REF(换,1)&&ER6;{&&换>REF(换,1)&&ER6}
AB1:=SD1 OR SD2;
STICKLINE(AB1,C,O,3.03,0),COLORFF0099;
STICKLINE(AB1,C,O,2.5,0),COLORFF00AA;
STICKLINE(AB1,C,O,2,0),COLORFF00BB;
STICKLINE(AB1,C,O,1.5,0),COLORFF00CC;
STICKLINE(AB1,C,O,1,0),COLORFF00DD;
STICKLINE(AB1,C,O,0.5,0),COLORFF00EE;
STICKLINE(AB1,C,O,0.1,0),COLORFF00FF;
前高:=IF(CURRBARSCOUNT<=CONST(前天+1)&&CURRBARSCOUNT>=CONST(后天),CONST(IF(前天,中间价,中间价)),DRAWNULL);
上面:前高+AN39,COLORYELLOW,DOTLINE;
下面:前高-AN39,COLORYELLOW,DOTLINE;
目标价:前高+AA5,COLORYELLOW,POINTDOT;{中间价+AA5 有直线}
碗:前高-AA5,COLORYELLOW;
{牛股启动选股源码如下}
换:=100*VOL/(FINANCE(7)/100);
EE2:=(REF(换,1)/240)*FROMOPEN;
EE3:=(3/240)*FROMOPEN;
ER5:=NOT(NAMELIKE('S') OR NAMELIKE('*S'))&&VOL>1&&DYNAINFO(39)>1;{去除ST和停牌股}
ER6:=BARSLASTCOUNT(FINANCE(7)=REF(FINANCE(7),1))>=60&&ER5; {去除除权股};
均:=0.01*AMOUNT/VOL;{食碗面}
W2:=BARSLAST(UPNDAY(EMA(C,360),5));
W5:=IF(均=LLV(均,W2)&&EMA(C,360)>EMA(C,180),L,DRAWNULL);
W6:=FILTERX(W5,W2);
周:=BARSLAST(W6);
K:=周-9;
SD1:=周>=1&&周<=2&&CURRBARSCOUNT<=CONST(周+1)&&CURRBARSCOUNT>=CONST(K+1)&&O<=C&&均>=REF(均,1)&&REF(均,1)<REF(均,2)&&换>EE2&&ER6;
SD2:=周>=1&&周<=2&&CURRBARSCOUNT<=CONST(周+1)&&CURRBARSCOUNT>=CONST(K+1)&&O<=C&&均>=REF(均,1)&&REF(C,1)<REF(C,2)&&换>EE2&&ER6;
AB1:SD1 OR SD2;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
当满足条件O>C时,在C和O之间画柱状线
输出KQ:DRAWRECTREL(C>0,967,200,1000,RGB(0,100,0))
当满足条件C>0时,在横轴0.00纵轴10位置书写文字
ER5赋值:NOT(NAMELIKE('S') OR NAMELIKE('*S'))&&成交量>1&&DYNAINFO(39)>1
{去除ST和停牌股}ER6赋值: 条件连续成立次数(FINANCE(7)=REF(FINANCE(7),1))>=60&&ER5
{去除除权股}
换赋值:100*成交量/(FINANCE(7)/100)
{换手率}均赋值:0.01*成交额/成交量
{个股均点}W2赋值:上次UPNDAY(C的360日指数移动平均,5距今天数),NODRAW
W5赋值:IF(均=W2日内均最低值&&C的360日指数移动平均>C的180日指数移动平均,L,DRAWNULL)
W6赋值:FILTERX(W5,W2)
周赋值:上次W6距今天数,NODRAW
K赋值:周-9
WK2:=周日前的H
WK3:=REF(58日内L最低值,周)
{周日前的L}WK4:=IF(CURRBARSCOUNT<=CONST(周)+1&&CURRBARSCOUNT>=CONST(K),CONST(IF(K,WK2,WK2)),DRAWNULL),画绿色,DOTLINE
{新低画线}WK5:=IF(CURRBARSCOUNT<=CONST(周)+1&&CURRBARSCOUNT>=CONST(K),CONST(IF(K,WK3,WK3)),DRAWNULL),画绿色,DOTLINE
WK6:=STICKLINE(周=0&&CURRBARSCOUNT<=CONST(周)+1&&CURRBARSCOUNT>=CONST(K+1),WK3*1.3,H*1.01,0.00001,-1),画黄色
WK7:=DRAWTEXT(周>=1&&周<=2&&CURRBARSCOUNT<=CONST(周+1)&&CURRBARSCOUNT>=CONST(K+1),L,'低'),画青色
圆宽赋值:CONST(60)
定日赋值:CONST(周+1)
AA赋值:CONST(定日+圆宽/2)
前天赋值:CONST(圆宽+定日)
后天赋值:CONST(定日)
低点赋值:CONST(WK3)
中间价赋值:CONST(低点*1.15)
CURR赋值:CURRBARSCOUNT
{到最后交易的周期}高H:=DRAWLINE(CURR=前天,中间价,CURR=后天,中间价,0)
低L赋值:DRAWLINE(CURR=后天,中间价,CURR=前天,中间价,0)
高低线赋值:高H
价值线赋值:DRAWBAND(高低线,RGB(225,226,199),高低线,RGB(225,226,199))
三分点赋值:IF(CURR=前天,中间价,IF(CURR=后天,中间价,IF(CURR=ROUND((前天+后天)/2),高低线,DRAWNULL))),画洋红色,CIRCLEDOT,LINETHICK3
中赋值:CONST(低点*1.15)
{低点*1.3 高}低:=CONST(低点)
高低幅赋值:中-低
弧赋值:中*低
AA1:=2*弧/圆宽
AA2:=弧/高低幅
AA3:=(AA-CURR)*AA1
AA5:=SQRT(弧*弧-AA3*AA3)/AA2
B低赋值:CONST(中间价+0.0314*2)
B高低幅赋值:中间价-B低
B弧赋值:中间价*B低
BBX赋值:2*B弧/圆宽
BBY赋值:B弧/B高低幅
BXW赋值:(AA-CURR)*BBX
AN39赋值:SQRT(B弧*B弧-BXW*BXW)/BBY
SD1赋值:周>=1&&周<=2&&CURRBARSCOUNT<=CONST(周+1)&&CURRBARSCOUNT>=CONST(K+1)&&O<=C&&均>=1日前的均&&1日前的均<2日前的均&&换>1日前的换&&ER6
{&&换>1日前的换&&ER6}SD2赋值:周>=1&&周<=2&&CURRBARSCOUNT<=CONST(周+1)&&CURRBARSCOUNT>=CONST(K+1)&&O<=C&&均>=1日前的均&&1日前的C<2日前的C&&换>1日前的换&&ER6
{&&换>1日前的换&&ER6}AB1赋值:SD1 OR SD2
当满足条件AB1时,在C和O之间画柱状线
当满足条件AB1时,在C和O之间画柱状线
当满足条件AB1时,在C和O之间画柱状线
当满足条件AB1时,在C和O之间画柱状线
当满足条件AB1时,在C和O之间画柱状线
当满足条件AB1时,在C和O之间画柱状线
当满足条件AB1时,在C和O之间画柱状线
前高赋值:IF(CURRBARSCOUNT<=CONST(前天+1)&&CURRBARSCOUNT>=CONST(后天),CONST(IF(前天,中间价,中间价)),DRAWNULL)
输出上面:前高+AN39,画黄色,DOTLINE
输出下面:前高-AN39,画黄色,DOTLINE
输出目标价:前高+AA5,画黄色,POINTDOT
{中间价+AA5 有直线}碗:前高-AA5,画黄色
{牛股启动选股源码如下}换赋值:100*成交量/(FINANCE(7)/100)
EE2赋值:(1日前的换/240)*FROM开盘价
EE3赋值:(3/240)*FROM开盘价
ER5赋值:NOT(NAMELIKE('S') OR NAMELIKE('*S'))&&成交量>1&&DYNAINFO(39)>1
{去除ST和停牌股}ER6赋值: 条件连续成立次数(FINANCE(7)=REF(FINANCE(7),1))>=60&&ER5
{去除除权股}
均赋值:0.01*成交额/成交量
{食碗面}W2赋值:上次UPNDAY(C的360日指数移动平均,5距今天数)
W5赋值:IF(均=W2日内均最低值&&C的360日指数移动平均>C的180日指数移动平均,L,DRAWNULL)
W6赋值:FILTERX(W5,W2)
周赋值:上次W6距今天数
K赋值:周-9
SD1赋值:周>=1&&周<=2&&CURRBARSCOUNT<=CONST(周+1)&&CURRBARSCOUNT>=CONST(K+1)&&O<=C&&均>=1日前的均&&1日前的均<2日前的均&&换>EE2&&ER6
SD2赋值:周>=1&&周<=2&&CURRBARSCOUNT<=CONST(周+1)&&CURRBARSCOUNT>=CONST(K+1)&&O<=C&&均>=1日前的均&&1日前的C<2日前的C&&换>EE2&&ER6
输出AB1:SD1 OR SD2