股票论坛

 找回密码
 免费注册
搜索
热搜: 活动 交友 discuz
查看: 2711|回复: 1
打印 上一主题 下一主题

请老师将启动拉升指标修改为通达信指标,谢谢!!

[复制链接]

巡抚

Rank: 5Rank: 5

听众
9
跳转到指定楼层
#
发表于 2016-1-18 16:17 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
30爱心果
源码如下:

ZF5:=C/REF(C,5)<=1.3;"这是5日涨幅小于30%";
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;
短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21);
中线:=SMA(RSV2,5,1)+2*STD(CLOSE,37);
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
长线:=SMA(RSV3,5,1);
金坑:=短线<20 AND 中线<20 AND 长线<20,colorwhite,nodraw;
STICKLINE(金坑>0 AND 金坑>=REF(金坑,1),0,金坑,1,0),colorwhite;
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite;
DEA : EMA(DIFF,9),coloryellow;
MACD:2*(DIFF-DEA),nodraw;
Zero := 0;
gj:=MAX(C,O);
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,1,0),color0000ff;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,1,0),colorffff00;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1,0),colorff00ff;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,1,0),color00ff00;
AA:=(O+H+L+C)/4;
A1:=HHV(AA,15);
A2:=LLV(AA,15);
A3:=A1-A2;
A4:=EMA((AA-A2)/A3,2)*9;
RSV:= (HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*10;
空:=SMA(RSV,2,1)/5;
多:=A4;
STICKLINE(空>1.3 AND 多<0.3 AND C*0.02<(EMA(C,5)-C),0,ABS(SMA(MAX(MACD,0),5,1)-ABS(MACD))*0.5,8,0),colorwhite;
建仓区:=0,colorwhite;
m5:=EMA(C,5);
m10:=EMA(C,10);
m20:=EMA(C,20);
ZF:=(H-L)/REF(C,1)*100;
v1:=C>m5 AND m5>m10 AND m10>m20 AND C>REF(C,1) AND m5>REF(m5,1)
AND m10>REF(m10,1) AND m20>REF(m20,1) AND C/O>1.03 AND (H-C)/C<0.02;
v2:=V>REF(V,1)*1.3 ;
V3:=V/REF(MA(V,5),1)*2>=4;
V4:=V/REF(MA(V,5),1)*2<=15;
大60度且5日线:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14159>60;
开始拉升:=ZF>10 AND v1 AND v2 AND V3 AND 大60度且5日线 AND V4 AND ZF5,colorgreen,nodraw;
STICKLINE(开始拉升>0 AND 开始拉升>=REF(开始拉升,1),0,开始拉升,8,0),colorgreen;
DRAWTEXT(开始拉升,1.3,"将要拉升"),colorgreen;
DRAWICON(开始拉升,DEA,1);
AAA1:=(DIFF-DEA)*2*60;
短线宝:=CROSS(AAA1-REF(AAA1,1),7) AND DIFF>=DEA AND 大60度且5日线 AND V/REF(MA(V,5),1)*2>=6 AND V4 AND ZF5,coloryellow,nodraw;
STICKLINE(短线宝>0 AND 短线宝>=REF(短线宝,1),0,短线宝,8,0),coloryellow;
DRAWTEXT(短线宝,1.3,"短线买中线将启动"),coloryellow;
DRAWICON(短线宝,DEA,1);
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
顶背:=(DD AND EE AND DEA< HHV(DEA,180))*DEA,STICK,nodraw,coloryellow;;
DRAWICON(顶背,DEA,2);
FF:=C=LLV(C,180);
GG:= DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
底背:=(FF AND GG AND DEA> LLV(DEA,180))*DEA,STICK,nodraw,coloryellow;;
DRAWICON(底背,DEA,1);
五日总涨幅:=SUM((C-REF(C,1))/REF(C,1)*100,5)<1;
下影线:=(H-L)/L*100>5 AND (MIN(O,C)-L)/L*100>5;
针底:五日总涨幅 AND 下影线 AND DIFF>=DEA,nodraw,coloryellow;;
DRAWICON(针底,DEA,1);
晨星:REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)<REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2),nodraw,coloryellow;;
DRAWICON(晨星,DEA,1 );
STICKLINE(晨星>0 AND 晨星>=REF(晨星,1),0,晨星,8,),coloryellow;
昏星:=REF(CLOSE,2)/REF(OPEN,2)>1.03 AND REF(OPEN,1)>REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2),nodraw,colorblue;
DRAWICON(昏星,DEA,2);
穿头破脚:=(REF(CLOSE,1)/REF(OPEN,1)>1.03 AND
CLOSE/OPEN<0.96 AND CLOSE<REF(OPEN,1) AND OPEN>REF(CLOSE,1)) OR
(REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND
CLOSE>REF(OPEN,1) AND
OPEN<REF(CLOSE,1));
买:=(穿头破脚 AND  CLOSE>OPEN AND CLOSE>0);
DRAWICON(买,DEA,1);
卖:=(穿头破脚 AND CLOSE<OPEN);
DRAWICON( 卖,DEA,2),colorblue;
揉搓:REF(V,1)>REF(V,2)*2 AND REF(C,1)>REF(O,1) AND REF(H,1)-REF(C,1)>(REF(C,1)-REF(L,1))
AND MIN(C,O)-L>(H-MIN(C,O)),nodraw,colormagenta;
STICKLINE(揉搓>0 AND 揉搓>=REF(揉搓,1),0,揉搓,8,0),colormagenta;
搓揉2:=(REF(H,1)-MAX(REF(C,1),REF(O,1)))/(REF(H,1)-REF(L,1))>0.7 AND (MIN(O,C)-L)/(H-L)>0.7;
STICKLINE(搓揉2>0 AND 搓揉2>=REF(搓揉2,1),0,搓揉2,8,0),colorlimagenta;
DRAWICON(搓揉2,DEA,1);
DRAWICON(揉搓,DEA,1);
AA:=CLOSE/REF(CLOSE,1)>=1.09;
AB:=VOL/REF(VOL,1);
缩停:AA AND AB<1 AND CLOSE>OPEN,colorgreen,nodraw;
STICKLINE(缩停>0 AND 缩停>=REF(缩停,1),0,缩停,8,0),colorgreen;
DRAWICON(缩停,DEA,1);

指标研习组

Rank: 11Rank: 11Rank: 11Rank: 11

听众
1
楼主
发表于 2016-1-19 20:34 | 只看该作者
ZF5:=C/REF(C,5)<=1.3;
RSV1:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*100;
RSV2:=(CLOSE-LLV(LOW,37))/(HHV(HIGH,37)-LLV(LOW,37))*100;
短线:=SMA(SMA(RSV1,3,1),3,1)+3*STD(CLOSE,21);
中线:=SMA(RSV2,5,1)+2*STD(CLOSE,37);
RSV3:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
长线:=SMA(RSV3,5,1);
金坑:=短线<20 AND 中线<20 AND 长线<20,COLORWHITE,NODRAW;
STICKLINE(金坑>0 AND 金坑>=REF(金坑,1),0,金坑,1,0),COLORWHITE;
DIFF : EMA(CLOSE,12) - EMA(CLOSE,26),COLORWHITE;
DEA : EMA(DIFF,9),COLORYELLOW;
MACD:2*(DIFF-DEA),NODRAW;
ZERO := 0;
GJ:=MAX(C,O);
STICKLINE(MACD>0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLOR0000FF;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,1,0),COLORFFFF00;
STICKLINE(MACD<0 AND MACD>=REF(MACD,1),0,MACD,1,0),COLORFF00FF;
STICKLINE(MACD<0 AND MACD<REF(MACD,1),0,MACD,1,0),COLOR00FF00;
AA:=(O+H+L+C)/4;
A1:=HHV(AA,15);
A2:=LLV(AA,15);
A3:=A1-A2;
A4:=EMA((AA-A2)/A3,2)*9;
RSV:= (HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3))*10;
空:=SMA(RSV,2,1)/5;
多:=A4;
STICKLINE(空>1.3 AND 多<0.3 AND C*0.02<(EMA(C,5)-C),0,ABS(SMA(MAX(MACD,0),5,1)-ABS(MACD))*0.5,8,0),COLORWHITE;
建仓区:=0,COLORWHITE;
M5:=EMA(C,5);
M10:=EMA(C,10);
M20:=EMA(C,20);
ZF:=(H-L)/REF(C,1)*100;
V1:=C>M5 AND M5>M10 AND M10>M20 AND C>REF(C,1) AND M5>REF(M5,1)
AND M10>REF(M10,1) AND M20>REF(M20,1) AND C/O>1.03 AND (H-C)/C<0.02;
V2:=V>REF(V,1)*1.3 ;
V3:=V/REF(MA(V,5),1)*2>=4;
V4:=V/REF(MA(V,5),1)*2<=15;
大60度且5日线:=ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14159>60;
开始拉升:=ZF>10 AND V1 AND V2 AND V3 AND 大60度且5日线 AND V4 AND ZF5,COLORGREEN,NODRAW;
STICKLINE(开始拉升>0 AND 开始拉升>=REF(开始拉升,1),0,开始拉升,8,0),COLORGREEN;
DRAWTEXT(开始拉升,1.3,'将要拉升'),COLORGREEN;
DRAWICON(开始拉升,DEA,1);
AAA1:=(DIFF-DEA)*2*60;
短线宝:=CROSS(AAA1-REF(AAA1,1),7) AND DIFF>=DEA AND 大60度且5日线 AND V/REF(MA(V,5),1)*2>=6 AND V4 AND ZF5,COLORYELLOW,NODRAW;
STICKLINE(短线宝>0 AND 短线宝>=REF(短线宝,1),0,短线宝,8,0),COLORYELLOW;
DRAWTEXT(短线宝,1.3,'短线买中线将启动'),COLORYELLOW;
DRAWICON(短线宝,DEA,1);
DD:=C=HHV(C,180);
EE:=DEA< REF(DEA,1) AND REF(DEA< REF(DEA,1),1)=1;
CC:=C> REF(C,1) AND REF(C> REF(C,1),1)=1;
顶背:=(DD AND EE AND DEA< HHV(DEA,180))*DEA,STICK,NODRAW,COLORYELLOW;
DRAWICON(顶背,DEA,2);
FF:=C=LLV(C,180);
GG:= DEA> REF(DEA,1) AND REF(DEA> REF(DEA,1),1)=1;
LL:=C< REF(C,1) AND REF(C< REF(C,1),1)=1;
底背:=(FF AND GG AND DEA> LLV(DEA,180))*DEA,STICK,NODRAW,COLORYELLOW;
DRAWICON(底背,DEA,1);
五日总涨幅:=SUM((C-REF(C,1))/REF(C,1)*100,5)<1;
下影线:=(H-L)/L*100>5 AND (MIN(O,C)-L)/L*100>5;
针底:五日总涨幅 AND 下影线 AND DIFF>=DEA,NODRAW,COLORYELLOW;
DRAWICON(针底,DEA,1);
晨星:REF(CLOSE,2)/REF(OPEN,2)<0.95 AND REF(OPEN,1)<REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.03 AND CLOSE/OPEN>1.05 AND CLOSE>REF(CLOSE,2),NODRAW,COLORYELLOW;
DRAWICON(晨星,DEA,1 );
STICKLINE(晨星>0 AND 晨星>=REF(晨星,1),0,晨星,8,0),COLORYELLOW;
昏星:=REF(CLOSE,2)/REF(OPEN,2)>1.03 AND REF(OPEN,1)>REF(CLOSE,2) AND ABS(REF(OPEN,1)-REF(CLOSE,1))/REF(CLOSE,1)<0.02 AND CLOSE/OPEN<0.97 AND CLOSE<REF(CLOSE,2),NODRAW,COLORBLUE;
DRAWICON(昏星,DEA,2);
穿头破脚:=(REF(CLOSE,1)/REF(OPEN,1)>1.03 AND CLOSE/OPEN<0.96 AND CLOSE<REF(OPEN,1) AND OPEN>REF(CLOSE,1)) OR (REF(CLOSE,1)/REF(OPEN,1)<0.97 AND CLOSE/OPEN>1.04 AND CLOSE>REF(OPEN,1) AND OPEN<REF(CLOSE,1));
买:=(穿头破脚 AND  CLOSE>OPEN AND CLOSE>0);
DRAWICON(买,DEA,1);
卖:=(穿头破脚 AND CLOSE<OPEN);
DRAWICON( 卖,DEA,2),COLORBLUE;
揉搓:REF(V,1)>REF(V,2)*2 AND REF(C,1)>REF(O,1) AND REF(H,1)-REF(C,1)>(REF(C,1)-REF(L,1))
AND MIN(C,O)-L>(H-MIN(C,O)),NODRAW,COLORMAGENTA;
STICKLINE(揉搓>0 AND 揉搓>=REF(揉搓,1),0,揉搓,8,0),COLORMAGENTA;
搓揉2:=(REF(H,1)-MAX(REF(C,1),REF(O,1)))/(REF(H,1)-REF(L,1))>0.7 AND (MIN(O,C)-L)/(H-L)>0.7;
STICKLINE(搓揉2>0 AND 搓揉2>=REF(搓揉2,1),0,搓揉2,8,0),COLORLIMAGENTA;
DRAWICON(搓揉2,DEA,1);
DRAWICON(揉搓,DEA,1);
AA1:=CLOSE/REF(CLOSE,1)>=1.09;
AB:=VOL/REF(VOL,1);
缩停:AA1 AND AB<1 AND CLOSE>OPEN,COLORGREEN,NODRAW;
STICKLINE(缩停>0 AND 缩停>=REF(缩停,1),0,缩停,8,0),COLORGREEN;
DRAWICON(缩停,DEA,1);
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|站点首页|手机版|小黑屋|帮助中心|桂ICP备14001964号

GMT+8, 2024-11-28 01:07 , Processed in 0.130896 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表