当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:打板法典看盘主图,妖股指标,降龙伏魔之剑

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、打板法典看盘主图

{打板法典

打板法典看盘主图公式 说明
1.操盘线在界点线下方,建议不介入,减少风险(要做也视作短线反弹)。
2.K线为红色时以持股为主,绿色时以持币为主(仓位的控制,自己确定)。
}
 
均价线:=AMOUNT/V/100;
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
STICKLINE(涨停,OPEN,CLOSE,1.35,0),COLORRED,COLORYELLOW;
STICKLINE(涨停,OPEN,CLOSE,3.6,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
B1W:='┄┄┄┄';
DRAWTEXT(均价线 AND 涨停,均价线,B1W),COLORGREEN;
B3W:='┄┄┄┄';
DRAWTEXT((O+C)/2 AND 涨停,(O+C)/2 ,B3W),COLORMAGENTA;
B2W:='┄┄┄┄';
DRAWTEXT(涨停,L,B2W),COLORGRAY;
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,20)*20+C,55);
STICKLINE(买线>=卖线,LOW,HIGH,0.0,1),COLORRED;
STICKLINE(买线>=卖线,CLOSE,OPEN,3,0),COLORRED;
STICKLINE(买线<卖线,LOW,HIGH,0.0,1),COLORCYAN;
STICKLINE(买线<卖线,CLOSE,OPEN,3,0),COLORCYAN;
STICKLINE(CROSS(买线,卖线),OPEN,CLOSE,2,0),COLOR00FFFF;
STICKLINE(CROSS(卖线,买线),OPEN,CLOSE,2.2,0),COLORFF0000;
DRAWTEXT(涨停,H*0.998,' --涨停'),COLORYELLOW;
{生命线}
MID:=(3*CLOSE+LOW+OPEN+HIGH)/6;
牛线:(16*MID+15*REF(MID,1)+
14*REF(MID,2)+13*REF(MID,3)+12*REF(MID,4)+11*REF(MID,5)+10*REF(MID,6)+9*REF(MID,7)+
8*REF(MID,8)+7*REF(MID,9)+6*REF(MID,10)+5*REF(MID,11)+4*REF(MID,12)+3*REF(MID,13)+
2*REF(MID,14)+REF(MID,15))/135,COLORRED;
马线:EMA(牛线,5),COLORGREEN;
水平面:MA(CLOSE,31),DOTLINE,COLORYELLOW;
VAR1:=(HIGH+LOW+OPEN+2*CLOSE)/5;
VAR2:=REF(VAR1,1);
VAR3:=SMA((CLOSE-VAR2),6,1)/SMA(ABS(CLOSE-VAR2),6,1)*100;
VAR4:=(CLOSE-REF(OPEN,29))/REF(OPEN,29)*100;
VAR5:=EMA(0.667*REF(VAR4,1)+0.333*VAR4,5);
VAR6:=IF(VOL>=1.3*MA(VOL,5) AND COUNT(VAR4>=VAR5 AND VAR4<-17,3) AND REF(LOW,1)=LLV(LOW,120),1,0);
VAR7:=SMA(MAX(CLOSE-REF(C,1),0),6,1)/SMA(ABS(CLOSE-REF(C,1)),6,1)*100;
VAR8:=SMA(MAX(VAR1-VAR2,0),10,1)/SMA(ABS(VAR1-VAR2),10,1)*100;
VAR9:=IF(COUNT(VAR8<20,5)>=1 AND COUNT(VAR1=LLV(VAR1,10),10)>=1 AND CLOSE>=OPEN*1.038 AND VOL>MA(VOL,5)*1.2,1,0);
DRAWICON(FILTER(REF(VAR3,1)>81 AND VAR3<80 OR CROSS(82,VAR7),5),H/0.98,2);
DRAWICON(FILTER(VAR9 OR VAR6,5),L*0.97,1);
DRAWICON(CROSS(买线,卖线) AND H/C<1.03,L*0.97,1);
DRAWICON(CROSS(卖线,买线) ,H*1.02,2);
DRAWICON(CROSS(牛线,马线) AND H/C<1.03,L*0.97,25);
DRAWICON(CROSS(马线,牛线) ,H*1.0298,27);
VAR1X:=SUM(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(LOW-REF(CLOSE,1))),20);
VAR2X:=HIGH-REF(HIGH,1);{回马枪}
VAR3X:=REF(LOW,1)-LOW;
VAR4X:=SUM(IF(VAR2X>0 AND VAR2X>VAR3X,VAR2X,0),20);
VAR5X:=SUM(IF(VAR3X>0 AND VAR3X>VAR2X,VAR3X,0),20);
VAR6X:=VAR4X*100/VAR1X;
VAR7X:=VAR5X*100/VAR1X;
VAR8X:=MA(ABS(VAR7X-VAR6X)/(VAR7X+VAR6X)*100,10);
VAR9X:=(VAR8X+REF(VAR8X,10))/2;
DIF:=EMA(CLOSE,10)-EMA(CLOSE,20);
DEA:=EMA(DIF,7);
MACD:=(DIF-DEA)*2;
JJ:=DIF>DEA;
A:=(VAR7X>VAR6X AND VAR7X>25 AND VAR6X<25);
AA:=REF(A,1) AND A=0 AND JJ AND C/REF(C,1)<1.02 AND C/REF(C,1)>1 AND MA(C,5)>MA(C,10);
DRAWTEXT(AA,L*0.967,'买入关注 --'),COLORYELLOW;




2、妖股指标

这个公式得来是 某股市爱国会所谓的妖股指标,他还说用了十几年了,当时指标是完全加密的,现在和谐版给到有加入爱国会的,孰是孰非大家自己鉴别。
 
追加指标使用说明:
1大黄柱:出现后,可以开始关注;
2小黄柱:大黄柱出现后,紧随出现,意味有反弹需求;
3小红柱:出现后,有成为妖股的潜质;( 顶尖财经 股民学院: http://www.58188.com )
4多空线:意味着多空力量的对比,如果为负,则代表空头力量更
强,为正则反之;
使用方法:
出现大黄柱后,关注最长时间不超过15个交易日,在
15交易日没有出现小红柱,则取消关注,往往妖股在出现大黄柱
后,基本会在比较短的时间内就会出现小红柱。(绝大部分妖股
会在一周之内出现)。多空线数值低于10及以上,基本会有反弹
的需求。多空线数值大于10及以上,结合小红柱表现,有望成妖;


VAR1:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),12);   
VAR2:=HIGH-REF(HIGH,1);   
VAR3:=REF(LOW,1)-LOW;   
VAR4:=EXPMEMA(IF(VAR2>0 AND VAR2>VAR3,VAR2,0),12)*100/VAR1;   
VAR5:=EXPMEMA(IF(VAR3>0 AND VAR3>VAR2,VAR3,0),12)*100/VAR1;   
VAR6:=VAR4>65 AND VAR4>REF(VAR4,1);   
VAR7:=LLV(VAR4,0);   
VAR8:=BARSLAST(VAR7=VAR4);   
VAR9:=(0-REF(VAR5,4))/(VAR7-REF(VAR5,VAR8))>2;   
VAR10:=VAR4>REF(VAR4,1);   
VAR11:=VOL>2*MA(VOL,30);   
VAR12:=EXPMEMA(ABS(VAR5-VAR4)/(VAR5+VAR4)*100,6);   
VAR13:=EXPMEMA(VAR6,6);   
VAR14:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;   
VAR15:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);   
VAR16:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));   
VAR17:=0-(EMA(CLOSE,7)-EMA(CLOSE,21));   
VAR18:=TROUGHBARS(3,15,1)<4;   
VAR19:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);   
VAR20:=IF(VAR18=1,50,0);   
VAR21:=CROSS(VAR5,VAR4) AND CROSS(VAR13,VAR12);   
VAR22:=CROSS(VAR5,VAR4) AND CROSS(VAR12,VAR13);   
VAR23:=VAR14 AND VAR15 AND VAR16 AND VAR19 AND VAR9 AND VAR10 AND VAR11*50;   
VAR24:=BARSLAST(CROSS(VAR5,VAR4)=1);   
VAR25:=BARSLAST(CROSS(VAR4,VAR5)=1);   
VAR26:=HHV(VAR4,VAR25);   
VAR27:=BARSLAST(VAR4=VAR26);   
多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;   
STICKLINE(0=0,0,0,1500,1),COLORRED;   
STICKLINE(FILTER(VAR18=1,5) AND 多空<(-10),50,0,10,0),COLORF00FF0;   
STICKLINE(FILTER(VAR18=1,5),50,0,5,0),COLORYELLOW;   
VAR28:=VAR6 OR VAR21 OR VAR22*100;   
VAR29:=VAR22*100;   
DRAWTEXT(FILTER(VAR18=1,3),25,1),COLORRED;   
STICKLINE(多空<(-10),0,多空,0.85,0),COLORYELLOW;   
STICKLINE(多空>10,0,多空,0.95,0),COLORRED;  


分析家公式网提示;公式有未来函数
发现未来函数TROUGHBARS!



3、降龙伏魔之剑

公式源码分享,有未来函数( 顶尖财经 股民学院: http://www.58188.com )
 

N:=6;
N1:=10;
TR1:=EXPMEMA(MAX(MAX(H-L,ABS(H-REF(C,1))),ABS(REF(C,1)-L)),12);
HD1:=H-REF(H,1);
LD1:=REF(L,1)-L;
LC:=REF(CLOSE,1);
RSI5:=((SMA(MAX((CLOSE-LC),0),5,1)/SMA(ABS((CLOSE-LC)),5,1))*100);
VARD1:=EXPMEMA(IF(HD1>0&&HD1>LD1,HD1,0),12)*100/TR1;
VARD2:=EXPMEMA(IF(LD1>0&&LD1>HD1,LD1,0),12)*100/TR1;
TR2:=SUM(MAX(MAX((HIGH-LOW),ABS((HIGH-REF(CLOSE,1)))),ABS((LOW-REF(CLOSE,1)))),10);
VARD3:=VARD1>65 AND VARD1>REF(VARD1,1);
VARD4:=LLV(VARD1,0);
HD:=(HIGH-REF(HIGH,1));
LD:=(REF(LOW,1)-LOW);
VARD5:=BARSLAST(VARD4=VARD1);
VARD6:=(0-REF(VARD2,4))/(VARD4-REF(VARD2,VARD5))>2;
DMP:=SUM(IF(((HD>0) AND (HD>LD)),HD,0),10);
DMM:=SUM(IF(((LD>0) AND (LD>HD)),LD,0),10);
VARD7:=VARD1>REF(VARD1,1);
VARD8:=VOL>2*MA(VOL,30);
PDI:=((DMP*100)/TR);
MDI:=((DMM*100)/TR);
VARD9:=EXPMEMA(ABS(VARD2-VARD1)/(VARD2+VARD1)*100,6);
VARDA:=EXPMEMA(VARD3,6);
ADX:=MA(((ABS((MDI-PDI))/(MDI+PDI))*100),5);
AV:=(RSI5+ADX);
VARDB:=CLOSE>MA(CLOSE,30) AND CLOSE<MA(CLOSE,30)*1.04;
VARDC:=MA(CLOSE,30)>REF(MA(CLOSE,30),1);
DXR:=(((ADX+REF(ADX,5))/2)+RSI5);
0,COLORFF00FF;
VARDD:=BARSLAST(CROSS(MA(CLOSE,5),MA(CLOSE,
10)))<BARSLAST(CROSS(MA(CLOSE,10),MA(CLOSE,5)));
VARDE:=0-(EMA(CLOSE,7)-EMA(CLOSE,21));
WR10:=((100*(HHV(HIGH,10)-CLOSE))/(HHV(HIGH,10)-LLV(LOW,10)));
NEWVOL:=(RSI5-WR10);
VARDF:=TROUGHBARS(3,15,1)<4;
VARD10:=EMA(CLOSE,30)>REF(EMA(CLOSE,30),2);
阶段底部:=(AV+NEWVOL);
STICKLINE((阶段底部 >= 0),0,阶段底部,0.3,1),LINETHICK2,COLORCC6600;
STICKLINE((阶段底部<0),0,阶段底部,0.8,1),LINETHICK6,COLORRED;
VARD11:=IF(VARDF=1,50,0);
VARD12:=CROSS(VARD2,VARD1) AND CROSS(VARDA,VARD9);
趋势线:LLV(阶段底部,1),COLORFFFFFF;
STICKLINE((趋势线>230),250,趋势线,0.8,1),LINETHICK6,COLORFF00FF;
VARD13:=CROSS(VARD2,VARD1) AND CROSS(VARD9,VARDA);
VARD14:=VARDB AND VARDC AND VARDD AND VARD10 AND VARD6 AND VARD7 AND VARD8*50;
230,COLORFFFFFF;
VAR1:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR2:=SMA(ABS(LOW-VAR1),13,1)/SMA(MAX(LOW-VAR1,0),10,1);
VARD15:=BARSLAST(CROSS(VARD2,VARD1)=1);
VARD16:=BARSLAST(CROSS(VARD1,VARD2)=1);
VARD17:=HHV(VARD1,VARD16);
VARD18:=BARSLAST(VARD1=VARD17);
VAR3:=EMA(VAR2,10);
VAR4:=LLV(LOW,33);
VAR5:=EMA(IF(LOW<=VAR4,VAR3,0),3);
多空:EMA((CLOSE-MA((2*CLOSE+HIGH+LOW)/4,30))/MA((2*CLOSE+HIGH+LOW)/4,30)*100,3),COLORWHITE;
主力进场:IF(VAR5>REF(VAR5,1),VAR5,0),COLORYELLOW,NODRAW;
STICKLINE(0=0,0,0,1500,1),COLORRED;
STICKLINE(FILTER(VARDF=1,5) AND 多空<-10,50,0,10,0),COLORF00FF0;
STICKLINE(FILTER(VARDF=1,5),50,0,5,0),COLORYELLOW;
STICKLINE(VAR5>REF(VAR5,1),0,VAR5,3,0 ),COLORYELLOW;
VARD19:=VARD3 OR VARD12 OR VARD13*100;
VARD1A:=VARD13*100;
洗盘:IF(VAR5<REF(VAR5,1),VAR5,0),COLORGREEN,NODRAW;
DRAWTEXT(FILTER(VARDF=1,3),25,'降龙伏魔之剑'),COLORRED;
STICKLINE(VAR5<REF(VAR5,1),0,VAR5,3,0),COLORGREEN;
STICKLINE(多空<-10,0,多空,0.85,0),COLORYELLOW;
STICKLINE(多空>10,0,多空,0.95,0),COLORRED;

上一篇:通达信源码:波段低吸,九转云程操盘手,板块强度龙头排序

下一篇:通达信源码:NXZ-MACD,狂赚主图指标,牛起爆动