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

通达信源码:高低卖点,紫云线谱,MACD增强版

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

高低卖点:

三线粘合 波段操作 短线指标( 顶尖财经 股票学院: http://www.58188.com )

VAR1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
VAR2:=SMA(VAR1,3,1);
波:=SMA(VAR2,3,1);
段:=SMA(波,3,1);
VAR9:=CROSS(段,波) AND 波>80;
STICKLINE(FILTER(VAR9,5)=1,80,100,10,0),COLORGREEN;
DRAWTEXT(FILTER(VAR9,5)=1,70,'逃顶'),COLORGREEN;
AA:=LLV(LOW,36);
BB:=HHV(HIGH,30);
风险:80,COLORFF00FF;
小心:87.5,COLOR00FF00;
股神:(MEMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25),COLOR0000FF,LINETHICK2;
VAR5:=(CROSS(股神,波) AND 波<20) AND (CROSS(股神,10));
DRAWTEXT(FILTER(VAR5,10)=1,40,'抄底'),COLORYELLOW;
STICKLINE(FILTER(VAR5,10)=1,0,30,10,0),COLORYELLOW;
主力:=DMA( (CLOSE-MA(CLOSE,11))/MA(CLOSE,11),2);
散户:=EMA( (CLOSE-MA(CLOSE,8))/MA(CLOSE,8),7);
DRAWTEXT(CROSS(散户,0),股神,'↑升'),COLOR00CCFF;
DD1:=EMA(CLOSE,15);
DD2:=EMA(CLOSE,24);
DD3:=EMA(CLOSE,60);
DD4:=EMA(CLOSE,99);
三线粘合剑:CROSS(DD1,DD2) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(DD1,DD4) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(DD2,DD3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018
OR CROSS(DD1,DD3) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018,COLORFF00FF;
顶剑:IF(三线粘合剑,70,100),COLORCCFF66;
短线1:=(MA(CLOSE,3)+MA(CLOSE,5)+MA(CLOSE,7)+MA(CLOSE,9))/4;
短线2:=MA(短线1,3);
短剑:IF((CROSS(短线1,短线2)) AND CROSS(波,段),50,0),COLORCCFFFF;
QVAR1A:=((HHV(HIGH,21)-CLOSE)/(HHV(HIGH,21)-LLV(LOW,21)))*(100)-10;
QVAR1B:=((CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21)))*(100);
QVAR1C:=SMA(QVAR1B,13,8);
QVAR1D:=SMA(QVAR1A,21,8);
生意上门:SMA(QVAR1C,13,8),COLORRED;
AAS:=FILTER((COUNT((生意上门-QVAR1D<(-65)),3)=3),34);
收银:IF(AAS,60,0),COLORRED,STICK,LINETHICK4;
DRAWTEXT(收银,65,'收银');
买卖顺意:=MA((((-100))*(HHV(HIGH,34)-CLOSE))/(HHV(HIGH,34)-LLV(LOW,34))+100,5);
天:(生意上门+买卖顺意)/2;
使:(股神+波+段)/3;
A:=(3*CLOSE+LOW+OPEN+HIGH)/6;
D1:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+14*REF(A,6)
+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
+7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
REF(A,20))/211;
D2:=EMA(D1,2);
D3:=EMA(D2,2);
K1:=EMA(D3,2);
小黑码:IF(CROSS(D1,K1),45,0),COLORFFCC66,POINTDOT;
STICKLINE(小黑码>0,0,小黑码*1.1,1,0),COLORWHITE;
STICKLINE(小黑码>0 AND 小黑码<52,30,小黑码,1,0),COLORFFCC66;
STICKLINE(小黑码>0,0,小黑码*0.8,4,0),COLORFFCC66;
STICKLINE(小黑码>0,0,小黑码*0.4,8,0),COLORFFCC66;
STICKLINE(小黑码>0,0,小黑码*0.2,10,0),COLORFF00FF;
STICKLINE(小黑码>0,0,小黑码*0.1,10,0),COLORBLUE;




紫云线谱:

{紫云线谱}
买线:EMA(C,3),COLORFF00FF,LINETHICK4;
卖线:EMA(SLOPE(C,21)*20+C,55),LINETHICK4E;
买卖差:=买线-卖线;
STICKLINE(买卖差>=0,(买线-买卖差*0.05),(买线-买卖差*0.15),3,0) ,COLOR00FFFF;
STICKLINE(买卖差>=0,(买线-买卖差*0.2),(买线-买卖差*0.35),3,0) ,COLOR00CCFF;
STICKLINE(买卖差>=0,(买线-买卖差*0.4),(买线-买卖差*0.55),3,0) ,COLOR0099FF;
STICKLINE(买卖差>=0,(买线-买卖差*0.6),(买线-买卖差*0.75),3,0) ,COLOR0066FF;
STICKLINE(买卖差>=0,(买线-买卖差*0.8),(买线-买卖差*0.95),3,0) ,COLOR0000CC;
STICKLINE(买卖差<0,(卖线+买卖差*0.05),(卖线+买卖差*0.15),3,0) ,COLOR006600;
STICKLINE(买卖差<0,(卖线+买卖差*0.2),(卖线+买卖差*0.35),3,0) ,COLOR009900;
STICKLINE(买卖差<0,(卖线+买卖差*0.4),(卖线+买卖差*0.55),3,0) ,COLOR00CC00;
STICKLINE(买卖差<0,(卖线+买卖差*0.6),(卖线+买卖差*0.75),3,0) ,COLOR00FF00;
STICKLINE(买卖差<0,(卖线+买卖差*0.8),(卖线+买卖差*0.95),3,0) COLOR0000FF;




MACD增强版:

{MACD增强版}
M:=21;N:=55;
VAR1:=EMA(SLOPE(C,M)+C,N);
VAR2:=EMA(SLOPE(O,M)+O,N);
VAR3:=EMA(SLOPE(H,M)+H,N);
VAR4:=EMA(SLOPE(L,M)+L,N);
VAR5:=EMA(C,3);
VAR6:=EMA(O,3);
VAR7:=EMA(H,3);
VAR8:=EMA(L,3);
VAR9:=VAR1-VAR5,LINETHICK2;
VAR10:=VAR2-VAR6,LINETHICK2;
VAR11:=VAR3-VAR7,LINETHICK2;
VAR12:=VAR4-VAR8,LINETHICK2;
ZJC:REVERSE(VAR9);
ZJO:=REVERSE(VAR10);
ZJH:=REVERSE(VAR11);
ZJL:=REVERSE(VAR12);
DIF:EMA(ZJC*5,12)-EMA(ZJC*5,26);
DEA:EMA(DIF,9);
MACD:(DIF-DEA)*2,COLORSTICK;
STICKLINE(MACD>REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORRED;
STICKLINE(MACD<REF(MACD,1) AND MACD>0,0,MACD,0,0),COLORMAGENTA;
STICKLINE(MACD>REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORYELLOW;
STICKLINE(MACD<REF(MACD,1) AND MACD<0,0,MACD,0,0),COLORLIGREEN;
STICKLINE(ZJC> ZJO,ZJH,ZJL,0.0,0),COLORFF66FF;
STICKLINE(ZJC> ZJO,ZJC,ZJO,2.1,0),COLORAA00AA;
STICKLINE(ZJC> ZJO,ZJC,ZJO,1.9,0),COLORCC11CC;
STICKLINE(ZJC> ZJO,ZJC,ZJO,1.6,0),COLORFF22FF;
STICKLINE(ZJC> ZJO,ZJC,ZJO,1.2,0),COLORFF44FF;
STICKLINE(ZJC> ZJO,ZJC,ZJO,0.7,0),COLORFF66FF;
STICKLINE(ZJC> ZJO,ZJC,ZJO,0.2,0),COLORFF99FF;
STICKLINE(ZJC<=ZJO,ZJL,ZJC,0.0,0),COLORGREEN;
STICKLINE(ZJC<=ZJO,ZJO,ZJC,2.1,0),COLOR005500;
STICKLINE(ZJC<=ZJO,ZJO,ZJC,1.9,0),COLOR007700;
STICKLINE(ZJC<=ZJO,ZJO,ZJC,1.6,0),COLOR009900;
STICKLINE(ZJC<=ZJO,ZJO,ZJC,1.2,0),COLOR00BB00;
STICKLINE(ZJC<=ZJO,ZJO,ZJC,0.7,0),COLOR00DD00;
STICKLINE(ZJC<=ZJO,ZJO,ZJC,0.2,0),COLOR44FF00;
ZTB:=(C-REF(C,1))/REF(C,1)*100>9.9;
STICKLINE(ZTB,ZJC,ZJO,2.1,0),COLOR006666;
STICKLINE(ZTB,ZJC,ZJO,1.9,0),COLOR008888;
STICKLINE(ZTB,ZJC,ZJO,1.6,0),COLOR00AAAA;
STICKLINE(ZTB,ZJC,ZJO,1.2,0),COLOR00CCCC;
STICKLINE(ZTB,ZJC,ZJO,0.7,0),COLOR00EEEE;
STICKLINE(ZTB,ZJC,ZJO,0.2,0),COLOR33FFFF;
DTB:=(C-REF(C,1))/REF(C,1)*100<-9.9;
STICKLINE(DTB,ZJO,ZJC,2.1,0),COLORFF0000;{蓝色}
STICKLINE(DTB,ZJO,ZJC,1.9,0),COLORFF2200;
STICKLINE(DTB,ZJO,ZJC,1.6,0),COLORFF4400;
STICKLINE(DTB,ZJO,ZJC,1.2,0),COLORFF6600;
STICKLINE(DTB,ZJO,ZJC,0.7,0),COLORFF8800;
STICKLINE(DTB,ZJO,ZJC,0.2,0),COLORFFAA00;

上一篇:通达信源码:三线首阳,波段起涨,小心满仓

下一篇:通达信源码:移动筹码3合1,T+0斩妖分时,分时抓板