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

通达信源码:大盘KDJ,启动点,波段王

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

大盘KDJ:

K:"999999$KDJ.K";
D:"999999$KDJ.D";
J:"999999$KDJ.J";
一直朝上:=J>REF(J,1);
J值:=(J>20 AND J<100) AND 一直朝上;
顶:100,COLORRED;
可操作区域:35,COLORMAGENTA;
风险:80,COLORGREEN;
变强:20,COLORBLUE;
XG:CROSS(J,20);
蓝色压力:=DRAWLINE(J>=HHV(RSI,3),L,L<=LLV(L,3),HHV(L,3),1),COLORFF6000,LINETHICK1;
DRAWICON(CROSS(J,蓝色压力),蓝色压力,5);
STICKLINE(XG,0,10,2,0),COLORGREEN;
STICKLINE(XG,10,20,1.5,1),COLORGREEN;
STICKLINE(XG,20,30,1.2,1),COLORRED;
STICKLINE(CROSS(XG,50),30,40,0.9,1),COLORWHITE;
STICKLINE(CROSS(XG,50),40,50,0.6,1),COLORYELLOW;
STICKLINE(CROSS(XG,50),50,60,0.3,1),COLORF00FF0;
STICKLINE(CROSS(XG,50),60,70,0.1,0),COLORF00FF0;
DRAWTEXT(ISLASTBAR,0,'高安全区'),COLORRED;
DRAWTEXT(ISLASTBAR,20,'安 全 区'),COLORLIMAGENTA;
DRAWTEXT(ISLASTBAR,80,'风 险 区'),COLORYELLOW;
DRAWTEXT(ISLASTBAR,100,'高风险区'),COLORGREEN;
DRAWTEXT(ISLASTBAR,35,'朝上可操作区域'),COLORGREEN;
指数趋势:=EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),COLORFFAA66,LINETHICK3;





启动点,优化过的MACD( 顶尖财经 股票学院: http://www.58188.com ):

 
DIF:EMA(CLOSE,12)-EMA(CLOSE,150);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
启动点1:=MACD<0 AND MACD>REF(MACD ,1) AND REF(MACD ,1)<REF(MACD ,2)
AND REF(MACD ,2)<REF(MACD ,3)
AND REF(MACD ,3)<REF(MACD ,4);
STICKLINE(启动点1,0.4,MACD,2,0),COLORYELLOW;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.8,0),COLOR000055;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,1.1,0),COLOR000099;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0.6,0),COLOR0000BB;
0,COLORYELLOW;




波段王:
 
VAR1:=(CLOSE+HIGH+LOW+OPEN)/4;
VAR2:=SUMBARS(VOL,CAPITAL);
VAR3:=HHV(VAR1,VAR2);
VAR4:=LLV(VAR1,VAR2);
VAR5:=(2*VAR1-VAR4-REF(VAR4,1))/(VAR3-VAR4);
VAR6:=(VAR1-VAR4)/(VAR3-VAR4);
VAR7:=IF(VAR1<=VAR4,VAR5*60,VAR6*60);
VAR8:=600*(EMA(CLOSE,3)-EMA(LOW,30))/EMA(LOW,30);
VAR9:=EMA(VAR8,7);
VAR10:=(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))*100;
VAR11:=(-100)*(WINNER(120*CLOSE/100)-WINNER(100*CLOSE/100))+5;
VAR12:=HHV(HIGH,9)-LLV(LOW,9);
VAR13:=HHV(HIGH,9)-CLOSE;
VAR14:=CLOSE-LLV(LOW,9);
VAR15:=VAR13/VAR12*100-70;
VAR16:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR17:=(2*CLOSE+HIGH+LOW)/4;
VAR18:=SMA(VAR14/VAR12*100,3,1);
VAR19:=LLV(LOW,34);
VAR20:=SMA(VAR18,3,1)-SMA(VAR15,9,1);
VAR21:=IF(VAR20>100,VAR20-100,0);
VAR22:=HHV(HIGH,34);
VAR23:=EMA((VAR17-VAR19)/(VAR22-VAR19)*100,8);
VAR24:=EMA(VAR23,5);
STICKLINE(VAR23-VAR24>0,VAR23,VAR24,8,1),COLORRED;
STICKLINE(VAR23-VAR24<0,VAR23,VAR24,8,1),COLORGREEN;

上一篇:通达信公式下载:量学看盘主图,阴极阳生,十战七胜,跟庄追涨停

下一篇:通达信源码:变色KDJ金叉死叉,波段抄底,均线K线