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

通达信源码:大师操盘,散户找底看盘,V型反转

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

1、大师操盘

只用来分析公式的一段时间内的趋势,并不能单独根据低买 信号 来做买卖,
公式有未来函数的,不喜欢的请不要下载。( 顶尖财经 股票学院: http://58188.com )

 {大师操盘}

VAR1:=LLV(LOW,10);
VAR2:=HHV(HIGH,15);
动力线:= EMA((CLOSE-VAR1)/(VAR2-VAR1)*4,4);
趋势:MA(动力线,2);
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),3.5,0),COLOR000033;
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),2.8,0),COLOR000055;
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),2.0,0),COLOR000077;
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),1.2,0),COLOR000099;
STICKLINE(REF(趋势,1)< 趋势, 趋势,REF(趋势,1),0.4,0),COLOR0000DD;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),3.5,0),COLOR003300;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),2.8,0),COLOR005500;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),2.0,0),COLOR007700;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),1.2,0),COLOR009900;
STICKLINE(REF(趋势,1)> 趋势, 趋势,REF(趋势,1),0.4,0),COLOR00DD00;
下跌趋势:IF(趋势<REF(趋势,1),趋势,DRAWNULL),COLORGREEN,LINETHICK2;
上涨趋势:IF(趋势>REF(趋势,1),趋势,DRAWNULL),COLORRED,LINETHICK2;
B:=趋势,COLORWHITE;
G:MA(B,2),COLORYELLOW,POINTDOT;
D:=CROSS(B,G)*1000,COLORRED;
W:=CROSS(G,B)*1000,POINTDOT,COLORBLUE;
DRAWTEXT(W=1000,B*1.05,'高卖' ),COLOR00FF00;
DRAWTEXT(D=1000,B*1.05,' 低买'),COLORFFFFFF;
低买:D,NODRAW,COLORFFFFFF;
高卖:W,NODRAW,COLOR00FF00;
MA5:=EMA(C,5);
MA13:=EMA(C,13);
UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),0),COLOR0000FF;
DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS
(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS
(MA13,MA5))+1),0),COLOR00FF00;
BT:(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND
REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);
大师买3:BT,NODRAW,COLOR0000FF;
STICKLINE(UP,0,0.2,3,0),COLOR0000FF;
STICKLINE(DOWN,0,0.2,3,0),COLOR00FF00;
STICKLINE(BT,0,3,2,0),COLOR000088;
STICKLINE(BT,0,3,1,0),COLOR0000CC;
STICKLINE(BT,0,3,0.22,0),COLOR0000FF;
DRAWTEXT(BT,3,' 晨曦买3'),COLOR0000FF;
TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;
大师买2:TJ1,NODRAW,COLORFF00FF;
STICKLINE(TJ1,0,2,3,0),COLOR880088;
STICKLINE(TJ1,0,2,1.5,0),COLORAA00AA;
STICKLINE(TJ1,0,2,0.8,0),COLORCC00CC;
STICKLINE(TJ1,0,2,0.2,0),COLORFF00FF;
DRAWTEXT(TJ1,2,' 晨曦买2'),COLORFF00FF;
HR:=HHV(HIGH,55);
HRY:=LLV(LOW,55);
HRY11:=HR*HRY;
HRY33:=SQRT(HRY11);
TJ2:REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;
大师买1:TJ2,NODRAW,COLOR00FFFF;
STICKLINE(TJ2,0,1,3,0),COLOR008888;
STICKLINE(TJ2,0,1,2,0),COLOR00AAAA;
STICKLINE(TJ2,0,1,1,0),COLOR00CCCC;
STICKLINE(TJ2,0,1,0.2,0),COLOR00FFFF;
DRAWTEXT(TJ2,1,' 晨曦买1'),COLOR00FFFF;



2、散户找底看盘

{公式名称: 散户找底看盘

画线方法: 副图}
 
筹码解套率:WINNER(CLOSE)*100,COLORLIBLUE,LINETHICK2;
VAR1:=30;
VAR2:=15;
VAR3:=HHV(HIGH,VAR1)=HIGH;
VAR4:=BARSLAST(VAR3);
VAR5:=LLV(LOW,VAR2)=LOW;
VAR6:=BARSLAST(VAR5);
VAR7:=HHV(HIGH,VAR1)=HIGH;
VAR8:=BARSLAST(VAR7);
VAR9:=BARSLAST(VAR5);
VAR8=0;
HIGH;
VAR10:=STICKLINE(VAR9=0 AND VAR5 AND FILTERX(VAR5,VAR8+1),REF(LOW,VAR9),REF(HIGH,VAR8),0,0);
STICKLINE(VAR10>0,0,(-10),0,0),COLORLIMAGENTA,LINETHICK2;
DRAWTEXT(VAR10,(-8),450),COLORYELLOW;
VAR11:=REF(LOW,1);
VAR12:=SMA(ABS(LOW-VAR11),13,1)/SMA(MAX(LOW-VAR11,0),13,1)*100;
VAR13:=EMA(IF(CLOSE*1.2,VAR12*13,VAR12/13),13);
VAR14:=LLV(LOW,34);
VAR15:=HHV(VAR13,34);
VAR16:=IF(LLV(LOW,56),1,0);
VAR17:=EMA(IF(LOW<=VAR14,(VAR13+VAR15*2)/2,0),3)/618*VAR16;
VAR18:=VAR17>REF(VAR17,1);
VAR19:=REF(LLV(LOW,100),3);
VAR20:=REFDATE(VAR19,DATE);
VAR21:=LOW=VAR20;
VAR22:=VAR18 AND VAR21;
VAR23:=VAR22>REF(VAR22,1);
QIDONG:(VAR23>REF(VAR23,1))*50,COLORLIRED,LINETHICK2;
趋势:3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1),COLORYELLOW;
VAR24:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR25:=SMA(ABS(LOW-VAR24),13,1)/SMA(MAX(LOW-VAR24,0),10,1);
VAR26:=EMA(VAR25,10);
VAR27:=LLV(LOW,33);
VAR28:=EMA(IF(LOW<=VAR27,VAR26,0),3)/1;
VAR29:=SMA(ABS(HIGH-VAR24),13,1)/SMA(MIN(HIGH-VAR24,0),10,1);
VAR30:=EMA(VAR29,10);
VAR31:=HHV(HIGH,33);
VAR32:=EMA(IF(HIGH>=VAR31,VAR30,0),3)/3;
主力拉高:IF(VAR32<REF(VAR32,1),VAR32/1,0),NODRAW,COLORYELLOW;
STICKLINE(VAR32<REF(VAR32,1),0,VAR32/2,2,0),COLORYELLOW;
出货:IF(VAR32>REF(VAR32,1),VAR32,0),NODRAW,COLORCYAN;
STICKLINE(VAR32>REF(VAR32,1),0,VAR32/2,2,0),COLORCYAN;
90,DOTLINE,COLORLIRED;
100,DOTLINE,COLORGREEN;



3、V型反转,突破箱体

{V型反转}
涨停:=BETWEEN(CLOSE/REF(CLOSE,1),1.0989,1.110) AND C=H AND C>O;
{轨道}
CCO:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
DDO:=DMA(CLOSE,CCO);
上轨:=(1+7/100)*DDO;
下轨:=(1-7/100)*DDO;
中轨:=(上轨+下轨)/2;
{箱体}
DFO:=(C-REF(C,1))/REF(C,1)*100<-5;
AAO:=BARSLAST(DFO); 
突破箱体:=CROSS(C,REF(O,AAO));
V型反转3:=EXIST(DFO,3) AND 突破箱体;
VD1:=(CLOSE<REF(CLOSE,1) AND CLOSE<REF(CLOSE,2));
VD2:=(REF(VD1,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VD3:=(REF(VD2,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VD4:=(REF(VD3,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VD5:=(REF(VD4,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VD6:=(REF(VD5,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VD7:=(REF(VD6,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VD8:=(REF(VD7,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VD9:=(REF(VD8,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VD10:=(REF(VD9,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VD11:=(REF(VD10,1) AND CLOSE<=REF(CLOSE,1) AND CLOSE>=REF(CLOSE,2));
VD12:=(REF(VD11,1) AND CLOSE>=REF(CLOSE,1) AND CLOSE<=REF(CLOSE,2));
VD13蓝:=REF(VD1 OR VD2 OR VD3 OR VD4 OR VD5 OR VD6 OR VD7
OR VD8 OR VD9 OR VD10 OR VD11 OR VD12,1) AND 涨停;
RU9:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; 
KU1:=SMA(RU9,3,1);
DU1:=KU1-REF(KU1,1);
FD1:=IF(DU1>7 AND REF(DU1,1)<0 AND (DU1-REF(DU1,1))>9,50,0);
VD14绿:=FD1=50 OR REF("KDJ.J",1)<0 AND "KDJ.J">0 AND 涨停;
VD15红:=VD13蓝 AND VD14绿 AND 涨停;
VD13蓝过滤:=IF((VD14绿),DRAWNULL,VD13蓝);
形态1:=(VD13蓝过滤 OR VD15红) AND C>O AND C<中轨;
形态2:=(VD13蓝过滤 OR VD15红) AND C>O;
急速超跌:=(C-MA(C,34))/MA(C,34)*100<-14;
实体比例2:=ABS(C-O)/C>0.07;
实体比例3:=ABS(C-O)/C>0.06;
统一价:=DYNAINFO(7)>3 AND DYNAINFO(7)<40;{股价取3至25元}
统一盘:=CAPITAL/1000000>=0.3 AND CAPITAL/1000000<9; {流通盘取0.3亿至9亿}
V手1:=BETWEEN(SUM(HSCOL,20),12,20) OR BETWEEN(SUM(HSCOL,20),23,37) OR BETWEEN(SUM(HSCOL,20),39,49)
OR BETWEEN(SUM(HSCOL,20),51,164) OR SUM(HSCOL,20)>166;
V手2:=BETWEEN(SUM(HSCOL,20),12,16) OR BETWEEN(SUM(HSCOL,20),18,19) OR BETWEEN(SUM(HSCOL,20),21,32)
OR BETWEEN(SUM(HSCOL,20),36,48) OR BETWEEN(SUM(HSCOL,20),50,60) OR BETWEEN(SUM(HSCOL,20),62,68)
OR BETWEEN(SUM(HSCOL,20),70,74) OR BETWEEN(SUM(HSCOL,20),76,102) OR BETWEEN(SUM(HSCOL,20),104,126)
OR BETWEEN(SUM(HSCOL,20),128,164) OR BETWEEN(SUM(HSCOL,20),166,267) OR BETWEEN(SUM(HSCOL,20),269,512);
V手3:=BETWEEN(SUM(HSCOL,20),0,22) OR BETWEEN(SUM(HSCOL,20),24,30) OR BETWEEN(SUM(HSCOL,20),32,130)
OR BETWEEN(SUM(HSCOL,20),132,164) OR BETWEEN(SUM(HSCOL,20),166,267) OR SUM(HSCOL,20)>269;
V手4:=BETWEEN(SUM(HSCOL,20),12,20) OR BETWEEN(SUM(HSCOL,20),23,32) OR BETWEEN(SUM(HSCOL,20),36,48)
OR BETWEEN(SUM(HSCOL,20),52,69) OR BETWEEN(SUM(HSCOL,20),71,81) OR BETWEEN(SUM(HSCOL,20),83,89)
OR BETWEEN(SUM(HSCOL,20),91,99) OR BETWEEN(SUM(HSCOL,20),101,111) OR BETWEEN(SUM(HSCOL,20),113,164)
OR BETWEEN(SUM(HSCOL,20),166,267) OR SUM(HSCOL,20)>269;
V手5:=BETWEEN(SUM(HSCOL,20),12,20) OR SUM(HSCOL,20)>23;
V手6:=BETWEEN(SUM(HSCOL,20),0,28) OR SUM(HSCOL,20)>31;
V手7:=BETWEEN(SUM(HSCOL,20),5,17) OR BETWEEN(SUM(HSCOL,20),21,22) OR BETWEEN(SUM(HSCOL,20),24,28)
OR BETWEEN(SUM(HSCOL,20),30,32) OR BETWEEN(SUM(HSCOL,20),36,60) OR BETWEEN(SUM(HSCOL,20),62,130)
OR BETWEEN(SUM(HSCOL,20),132,164) OR BETWEEN(SUM(HSCOL,20),166,267) OR SUM(HSCOL,20)>269;
{以上为选股框架 以下为选股多指标源码}
VA1:=(C-MA(C,30))/MA(C,30)*100;
VA2:=VA1<-3;
VB2:=(H-L)/L>0.07 AND (C-O)/O>0.07 AND C/REF(C,1)>1.05;
VB3:=急速超跌 AND VB2;
VL1:="BIAS.BIAS3"<-6;
VE1:=(-100)*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
VE2:=CROSS(VE1,-87) AND OPEN<MA(CLOSE,5) AND CLOSE>=1.099*REF(CLOSE,1)
AND INDEXC>0.98*REF(INDEXC,1) AND CLOSE<=1.47*LLV(CLOSE,58);
VF1:=HHV(DMI.ADX,10)>65;
VF2:=IF(O<XS2.通道2 AND C>XS2.通道2 AND O<XS2.通道4 AND C>XS2.通道4 AND VF1,70,0);
V短期:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5));
V中期:=100*(C-LLV(L,8))/(HHV(C,8)-LLV(L,8));
V中期A:=100*(C-LLV(L,13))/(HHV(C,13)-LLV(L,13));
V中长期A:=100*(C-LLV(L,21))/(HHV(C,21)-LLV(L,21));
V中短:=(V短期+V中期+V中期A+V中长期A)/4;
V中长期:=100*(C-LLV(L,34))/(HHV(C,34)-LLV(L,34));
V长期:=EMA(V中长期,13);
V选股:=V长期<20 AND CROSS(V中长期,V长期);
V转1:=VE2 AND 形态1 AND 实体比例2 AND V型反转3 AND C<EMA(C,99) AND V手1 AND 统一盘 AND 统一价;
V转2:=VA2 AND 形态1 AND 实体比例3 AND V型反转3 AND V手2 AND 统一盘 AND 统一价;
V转3:=VB3 AND 形态2 AND 实体比例2 AND V手3 AND 统一盘 AND 统一价;
V转4:=VL1 AND 形态1 AND 实体比例2 AND V手4 AND 统一盘 AND 统一价;
V转5:=VF2 AND 形态2 AND 实体比例2 AND V型反转3 AND C<EMA(C,60) AND V手5 AND 统一盘 AND 统一价;
V转6:=VF2 AND 形态2 AND 实体比例2 AND REF(急速超跌,2) AND REF(急速超跌,1) AND 突破箱体 AND CROSS(C,EXPMA(C,13))
AND V手6 AND 统一盘 AND 统一价;
V转7:=V选股 AND 形态2 AND 实体比例2 AND V型反转3 AND V手7 AND 统一盘 AND 统一价;
V型反转:V转1 OR V转2 OR V转3 OR V转4 OR V转5 OR V转6 OR V转7 NODRAW;
{图标}
DRAWICON((V型反转),17,1);
{信号}
{绿色柱状}
STICKLINE(V型反转,0,8,4.5,0),COLORGREEN;
STICKLINE(V型反转,0,12,2.5,0),COLORGREEN;
STICKLINE(V型反转,0,12,2,0),COLOR006600;
STICKLINE(V型反转,0,12,1.5,0),COLOR009900;
STICKLINE(V型反转,0,12,0.1,0),COLOR00FF00;
{白色}
STICKLINE(V型反转,0,15,0.1,0),COLORWHITE;
{写字}
DRAWTEXT(V型反转,10,'---V型反转'),COLOR00FFFF;

上一篇:通达信公式下载:SKDJM波段公式,缩量倍量,波段追涨副图

下一篇:通达信源码:捕捞季节,控庄估算买庄股,养家系列副图