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

通达信源码:神渔短线2主图,神渔短线副2J

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

1、神渔短线2主图,股海神渔,神渔短线主图优化升级第2版
 

{公式名称: 神渔短线2主图
公式描述: 股海神渔,神渔短线主图优化升级第2版
画线方法: 主图叠加
公式源码:}
 
快速线:MA(CLOSE,5);
VAR1:=MA(CLOSE,13);
神渔短线:MA(CLOSE,34),DOTLINE,COLORRED;
慢速线:IF(VAR1>神渔短线,VAR1,神渔短线),COLORYELLOW;
三合:(MAX(MAX(MA(CLOSE,5),MA(CLOSE,13)),MA(CLOSE,34))/MIN(MIN(MA(CLOSE,5),MA(CLOSE,13)),MA(CLOSE,34))-1)*100,NODRAW,COLORFFFFBB;
DRAWTEXT_FIX(ISLASTBAR,0,0,0,HYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.05,0,0,DYBLOCK);
DRAWTEXT_FIX(ISLASTBAR,0.1,0,0,GNBLOCK);
VAR2:=CLOSE>=ZTPRICE(REF(CLOSE,1),0.1);
STICKLINE(VAR2,OPEN,CLOSE,3,0),COLORMAGENTA;
STICKLINE(VAR2,HIGH,LOW,0,0),COLORMAGENTA;
VAR3:=CLOSE<=DTPRICE(REF(CLOSE,1),0.1);
STICKLINE(VAR3,OPEN,CLOSE,3,0),COLORGREEN;
STICKLINE(VAR3,HIGH,LOW,0,0),COLORGREEN;
阳包阴:CLOSE>=REF(HIGH,1) AND LOW<=REF(LOW,1),NODRAW,COLORYELLOW;
STICKLINE(阳包阴,OPEN,CLOSE,3,0),COLORYELLOW;
 


2、神渔短线副2J,股海神渔,神渔短线副J版优化升级2J版

{公式名称: 神渔短线副2J
公式描述: 股海神渔,神渔短线副J版优化升级2J版( 顶尖财经 股票学院: http://58188.com )
画线方法: 副图}
 
VAR1:=MA(CLOSE,5);
VAR2:=MA(CLOSE,13);
VAR3:=MA(CLOSE,34);
VAR4:=BARSLAST(CROSS(VAR1,VAR2));
VAR5:=BARSLAST(CROSS(VAR1,VAR3));
VAR6:=BARSLAST(CROSS(VAR2,VAR3));
VAR7:=VAR4>=VAR5 AND VAR5>VAR6 AND VAR4-VAR6<20;
VAR8:=COUNT(CROSS(VAR1,VAR2),VAR4+1)=1 AND COUNT(CROSS(VAR1,VAR3),VAR4+1)=1 AND CROSS(VAR2,VAR3) AND VAR1>VAR2 AND VAR2>VAR3;
VAR9:=VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1) AND VAR3<REF(VAR3,1);
VAR10:=VAR1>REF(VAR1,1) AND VAR2>REF(VAR2,1) AND VAR3>REF(VAR3,1);
VAR11:=CLOSE-REF(CLOSE,1);
VAR12:=100*EMA(EMA(VAR11,6),6)/EMA(EMA(ABS(VAR11),6),6);
VAR13:=CLOSE<VAR1 AND VAR1<VAR2 AND VAR2<VAR3;
VAR14:=EMA(CLOSE,10)-EMA(CLOSE,20);
VAR15:=EMA(VAR14,7);
VAR16:=2*(VAR14-VAR15);
VAR17:=REF(VAR16,1)<REF(VAR16,2) AND REF(VAR16,2)<REF(VAR16,3) AND REF(VAR16,3)<REF(VAR16,4);
VAR18:=VAR16>=0 AND COUNT(VAR16>REF(VAR16,1),1)=1;
VAR19:=VAR17 AND VAR18 AND EMA(CLOSE,13)>REF(EMA(CLOSE,13),1);
VAR20:=VAR17 AND VAR18 AND ABS((VAR14-VAR15)/CLOSE)<0.018;
VAR21:=VAR17 AND VAR18 AND VAR16<0.1;
VAR22:=VAR19 OR VAR20 OR VAR21;
VAR23:=(2*CLOSE+HIGH+LOW)/4;
VAR24:=LLV(LOW,5);
VAR25:=HHV(HIGH,4);
VAR26:=EMA((VAR23-VAR24)/(VAR25-VAR24)*100,4);
VAR27:=EMA(0.667*REF(VAR26,1)+0.333*VAR26,2);
VAR28:=EMA(CLOSE,3);
VAR29:=EMA(SLOPE(CLOSE,34)*5+CLOSE,21);
短线买点:CROSS(VAR28,VAR29),NODRAW,COLORRED;
强势短买:CROSS(VAR28,VAR29) AND VAR10,NODRAW,COLORMAGENTA;
趋势买点:CROSS(VAR28,VAR29) AND VAR22,NODRAW,COLORLIRED;
强势趋买:CROSS(VAR28,VAR29) AND VAR22 AND VAR10,NODRAW,COLORMAGENTA;
弱势买点:CROSS(VAR28,VAR29) AND CLOSE<MA(CLOSE,34),NODRAW,COLOR20A5DA;
最后卖点:CROSS(VAR29,VAR28),NODRAW,COLORGREEN;
短线区间:COUNT(短线买点,BARSLAST(短线买点)+1)=1 AND COUNT(最后卖点,BARSLAST(短线买点)+1)=0,NODRAW,COLORRED;
VAR30:=COUNT(弱势买点,BARSLAST(弱势买点)+1)=1 AND CROSS(CLOSE,MA(CLOSE,34)) AND COUNT(CROSS(CLOSE,MA(CLOSE,34)),BARSLAST(弱势买点)+1)=1;
买点恢复:VAR30>0 AND 短线区间 AND CLOSE>MA(CLOSE,34) AND BARSLAST(短线买点)>0,NODRAW,COLORRED;
弱加仓:VAR7 AND VAR8 AND VAR9 AND 短线区间 AND BARSLAST(短线买点)>0,NODRAW,COLORFFFFBB;
强加仓:VAR7 AND VAR8 AND VAR10 AND 短线区间 AND BARSLAST(短线买点)>0,NODRAW,COLORYELLOW;
可以卖:CROSS(VAR27,VAR26) AND VAR26>70 AND BARSLAST(短线买点)>0 AND 短线区间,NODRAW,COLORGREEN;
VAR31:=BARSLAST(可以卖=1);
VAR32:=COUNT(可以卖,BARSLAST(可以卖)+1)=1 AND CROSS(CLOSE,REF(HIGH,VAR31)) AND COUNT(CROSS(CLOSE,REF(HIGH,VAR31)),BARSLAST(可以卖)+1)=1;
VAR33:=BARSLAST(短线买点=1)>BARSLAST(可以卖=1);
可以买:VAR32>0 AND VAR33 AND 短线区间,NODRAW,COLORRED;
今买明卖:CLOSE>REF(HHV(HIGH,2),1) AND (LLV(VAR12,2)=LLV(VAR12,7) AND COUNT(VAR12<0,2) AND CROSS(VAR12,MA(VAR12,2))) AND NOT(VAR13),NODRAW,COLORWHITE;
STICKLINE(短线区间>0,10,90,4,0),COLORGRAY;
STICKLINE(短线买点>0,0,100,4,0),COLORRED;
STICKLINE(强势短买>0,50,100,4,0),COLORMAGENTA;
STICKLINE(趋势买点>0,50,100,4,0),COLORBLUE;
STICKLINE(强势趋买>0,0,40,4,0),COLORRED;
STICKLINE(强势趋买>0,40,70,4,0),COLORBLUE;
STICKLINE(强势趋买>0,70,100,4,0),COLORMAGENTA;
STICKLINE(最后卖点>0,0,100,4,0),COLORGREEN;
STICKLINE(弱加仓>0,10,90,2,0),COLORFFFFBB;
STICKLINE(强加仓>0,10,90,2,0),COLORYELLOW;
STICKLINE(弱势买点>0,0,100,4,0),COLOR20A5DA;
STICKLINE(买点恢复>0,10,90,2,0),COLORRED;
STICKLINE(今买明卖>0,0,10,4,0),COLORWHITE;
DRAWICON(可以卖,90,2);
DRAWICON(可以买,90,1);

上一篇:通达信源码:超级大主图,岛形反转,致简狙击战法G

下一篇:通达信源码:倾家荡产要买,跟庄买卖,财务防雷专用