龙听期货论坛's Archiver

龙听 发表于 2018-12-24 13:39

大智慧子秦自用指标第二季[大智慧公式]

[p=30, 2, left][b]相关标签: 自用绝密指标 公式 、 mt4自用指标 、 发个自用分时指标 、 自用加密 100% 指标 、 大智慧 自用加密指标 、 自用 最好 指标 公式 、 自用二代e90 、 刚愎自用 、 刚愎自用的意思 、[/b][/p]

[p=30, 2, left]大家一起分享的是“子秦自用指标第二季”——多功能版“全能主图”,可能也是最后一季了,希望能给股友们带来些许帮助。这个主图是我用

一年时间来修补和加工而成,集合了20个大小指标吧。几个大指标为“优化布林线”、“仿飞狐均线系统”、“多空概率”、“半自动画线”和“星级买点”(星级买点是我

用7、8个指标精炼出来的买点提示,用6色五角星来细化买点的等级,用5天盈利3%的大智慧系统测试结果为:2009年1月1日-2009年12月31日成功率是80%以上,2010年1月1日

到现在,成功率是70%左右,故只能作为参考)。这个主图指标的最大特色个人认为比较全面,几个主要指标都可自由切换而不影响整体的显示,各提示图标和指标线的色彩我

也重点加工过,使整体画面简洁明了、较有协调感,长时间看也不会让人眼花。由于源码过大,我就不贴了,直接发送源码文件(如果系统跑的慢的朋友可选择“布林线B”进

行下载,那是简化后的,不过只有关键的“优化布林线”和“星级买点”,没有切换功能),关于指标用法和说明,我将通过下面的贴图来简单介绍,具体可参考指标里做好

的“指标用法注解”。最后再次感谢那些编写、提供源码的老师们,希望朋友们能再多多完善这个指标,上传上来供大家分享!
注:指标里只有财务信息和半自动画线用到所谓的未来函数,其他均无任何影响,请放心使用!另我上传的源码文件绝不设置密码、时间限制等![/p][p=30, 2, left]

[b]全能主图[/b][/p]
[p=30, 2, left][b][code]
{参数自己设置一下}
{-------可以调节均线条数}
wx:=VARP( 10, 0);
M1:MA(CLOSE,P1)*if(n<1,wx,1),precis2,COLORAF61FE;
M2:MA(CLOSE,P2)*if(n<2,wx,1),precis2,COLORFF6AB1;
M3:MA(CLOSE,P3)*if(n<3,wx,1),precis2,COLORFF9F80;
M4:MA(CLOSE,P4)*if(n<4,wx,1),precis2,COLOR6FFF6F;
{财务信息}
zg:=FINANCE2(35);{总股}
lta:=FINANCE2(37);{流通A}
sy:=FINANCE2(3);{收益}
sl:=DYNAINFO(39);{市盈率}
wf:=FINANCE2(8);{未分}
gj:=FINANCE2(7);{公积};
jz:=FINANCE2(4);{净资}
cw:='总股:'+zg+' 流通A:'+lta+' 收益:'+sy+' 市盈率:'+sl+' 未分:'+wf+' 公积:'+gj+' 净资:'+jz;
DRAWTEXTABS(5,24,cw),COLORYELLOW;
DRAWTEXTABS(20,8,STKLABEL+' '+STKNAME+' '+BKNAME),COLORYELLOW;
{大盘对比}
大盘涨跌:=(INDEXC/ref(INDEXC,1)-1)*100;
个股涨跌:=(c/ref(c,1)-1)*100;
STICKLINE(大盘涨跌<=0 and 个股涨跌>0 and c>o and c<h,h,c,0.1,0),LAYER3,COLORYELLOW;
STICKLINE(大盘涨跌<=0 and 个股涨跌>0 and c>o and c=h,c,c,6,0),LAYER3,COLORYELLOW;
STICKLINE(大盘涨跌<=0 and 个股涨跌>0 and c<o and c>l,l,c,0.1,0),LAYER3,COLORYELLOW;
STICKLINE(大盘涨跌<=0 and 个股涨跌>0 and c<o and c=l,c,c,6,0),LAYER3,COLORYELLOW;
STICKLINE(大盘涨跌>0 and 个股涨跌<=0 and c<o and c>l,l,c,0.1,0),LAYER3,COLORgreen;
STICKLINE(大盘涨跌>0 and 个股涨跌<=0 and c<o and c=l,c,c,6,0),LAYER3,COLORgreen;
STICKLINE(大盘涨跌>0 and 个股涨跌<=0 and c>o and c<h,h,c,0.1,0),LAYER3,COLORgreen;
STICKLINE(大盘涨跌>0 and 个股涨跌<=0 and c>o and c=h,c,c,6,0),LAYER3,COLORgreen;


{布林线-可切换显示}
BBI:="BBI"(3,6,12,24);
BI:=MA(CLOSE,20);
BI1:=100*(CLOSE-BI)/STD(CLOSE,20)*BOLL线;
BI2:=EMA(BI1,10)*BOLL线; {文章来至程序化交易网 cxh99.com}
中轴线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
partline(中轴线,BI1>BI2 AND BI1<-100,rgb(255,172,172),BI1>BI2 AND BI1>=-100 AND BI1<=170,rgb(255,95,95),BI1>BI2 AND BI1>=170,rgb(255,47,47),BI1<BI2 AND BI1>0,rgb(30,86,255),BI1<BI2 AND BI1<=0,rgb(2,129,255)),precis2,LINETHICK2,LAYER2,COLORWHITE;
压力线:if(BBI+3*STD(BBI,10)*BOLL线>0,BBI+3*STD(BBI,10)*BOLL线,0),precis2,LAYER2,COLORB7B7B7;
支撑线:if(BBI-3*STD(BBI,10)*BOLL线>0,BBI-3*STD(BBI,10)*BOLL线,0),precis2,LAYER2,COLORB7B7B7;
安全线:=MA(CLOSE,30);
{神奇主图}
操作:=MA((LOW+HIGH+CLOSE)/3,5);
拉升:=HHV(操作,13);
庄压:=HHV(MA(H,13),13);
支撑:=LLV(操作,13);
partline(安全线,操作=拉升 and 拉升>ref(拉升,1) and 庄压>ref(庄压,1),rgb(255,70,70),操作=支撑,rgb(47,151,255),庄压>ref(庄压,1),rgb(255,163,75),庄压<=ref(庄压,1),rgb(202,202,202),操作<ref(操作,1) and 庄压=ref(庄压,1) and 拉升=ref(庄压,1),rgb(30,86,255)),precis2,LAYER2,DOTLINE,colorwhite;


{神偷富贵}
V1:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*300;
VARQS3:=MA(V1,17)+MA(V1,17)-ref(MA(V1,17),1);
VARQS4:=IF(MA(V1,10)<VARQS3,VARQS3,MA(V1,10));
行情转折平衡线:=VARQS4-(EMA(V1,3)-VARQS4)*1.02;
V2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VARA:=ref(LOW,1);
VARB:=(SMA(ABS(LOW-VARA),3,1))/(SMA(MAX(LOW-VARA,0),3,1))*100;
VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);
VARD:=LLV(LOW,13);
VARE:=HHV(VARC,13);
VARF:=IF(MA(CLOSE,34),1,0);
VARG:=(EMA(IF(LOW<=VARD,(VARC+VARE*2)/2,0),3))/(618)*VARF;


{买点提示}
快:=COUNT(CLOSE>ref(CLOSE,2),4)/4*100;
慢:=COUNT(CLOSE>ref(CLOSE,2),6)/6*100;
Var1:=LLV(LOW,5);
Var2:=HHV(HIGH,5);
快线:= EMA((CLOSE-Var1)/(Var2-Var1)*100,4) ;
慢线:= EMA(0.667*ref(快线,1)+0.333*快线,2);
JC:=(CROSS(快,1) AND 慢<=40) OR (CROSS(慢,20) AND 快<=50);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,3)-LLV(LOW,3))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
快进:=CROSS(快线,慢线) AND 快线<30;
买1:=快=0 AND 慢>20 and cross(v1,ref(v1,1));
买2:=快=0 AND 慢>20 and cross(ref(行情转折平衡线,1),行情转折平衡线);
买3:=快进 and VARG>15;
买4:=快进 and cross(varg<ref(varg,1),0.5);
买5:=快进 and 行情转折平衡线<ref(行情转折平衡线,1) and ref(行情转折平衡线,1)>=30;
关注1:=快=0 AND 慢=0;
关注2:=V2<=3 or V2<=VARG;
STICKLINE(关注1 OR 关注2,CLOSE,OPEN,5,0),COLORWHITE;
一星买点:=买1 or 买2;
二星买点:=快=0 AND BETWEEN(慢,1,20) and cross(v1,ref(v1,1)) and cross(ref(行情转折平衡线,1),行情转折平衡线);
三星买点:=FILTER(JC,3);
四星买点:=买3 or 买4 or 买5;
五星买点:=ref(J,1)<0 AND J>0;
六星买点:=cross(快线,慢线) and 慢线<40 and ref(J,1)<0 AND J>0;
{图标提示}
DRAWTEXT(一星买点,h*1.02,'★'),COLORE1E1E1,ALIGN1;
DRAWTEXT(二星买点,h*1.03,'★'),COLORDBFF4A,ALIGN1;
DRAWTEXT(三星买点,h*1.04,'★'),COLOR4AFF61,ALIGN1;
DRAWTEXT(四星买点,l*0.99,'★'),COLOR4AFFFB,ALIGN1;
DRAWTEXT(五星买点,l*0.98,'★'),COLOR4AA9FF,ALIGN1; {内容来至程序化交易网 CXH99.COM}
DRAWTEXT(六星买点,l*0.97,'★'),COLOR4A58FF,ALIGN1;
{正反弦}
Vaa1:=BARSCOUNT(CLOSE)*3.142/60;
A2:=SIN(Vaa1*8)*100;
A3:=COS(Vaa1*8)*100;
{极限}
极点:=A2>98 OR A2<-99 OR A3>98 OR A3<-99;
STICKLINE( 快线>77 AND 极点,CLOSE,OPEN,5,0),COLOR5D5D5D;
关注3:=CROSS(COUNT(关注1,6)=6,0.8);
进仓:=快线<20 AND 极点;
STICKLINE(关注3 OR 进仓,CLOSE,OPEN,5,0),COLOR1FB6EF;
{追涨}
VarI:=CLOSE>ref(CLOSE,1);
追1:=CLOSE/ref(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND VarI>0;
VarII:=CLOSE/ref(CLOSE,1)>1.048 AND CLOSE=HIGH AND BETWEEN(FORCAST(VOL,4),0.2*FORCAST(VOL,12),2.1*FORCAST(VOL,12));
追2:=FILTER(VarII,28);
追:=追1 OR 追2;
STICKLINE(追,CLOSE,OPEN,3,0),COLOR7979FF;
{缺口}
DRAWTEXT(L>ref(H,1),l,'→'),ALIGN1,LINETHICK5,LAYER7,COLOR9B9BFF;
DRAWTEXT(ref(L,1)>H,ref(L,1),'←'),ALIGN2,LINETHICK5,LAYER7,COLOR61FE78;
{多空概率-可切换显示}
MA20:=MA(C,20);
多空线:if(MIN(MA20*1.05,安全线*1.1)*多空箱体>0,MIN(MA20*1.05,安全线*1.1)*多空箱体,M4),DOTLINE,PRECIS2,COLORff89b2;
顶:if(HHV((HIGH+LOW+OPEN+2*CLOSE)/5*2-L,5)*多空箱体>0,HHV((HIGH+LOW+OPEN+2*CLOSE)/5*2-L,5)*多空箱体,M4),precis2,COLOR5B5BFF;
底:if(LLV((HIGH+LOW+OPEN+2*CLOSE)/5*2-H,8)*多空箱体>0,LLV((HIGH+LOW+OPEN+2*CLOSE)/5*2-H,8)*多空箱体,M4),precis2,COLOR6FFF6F;
{定点画线-可切换显示}
起始日:=filter(backset(BARSTATUS=2,起始点),起始点);
中心日:=filter(backset(BARSTATUS=2,中心点),中心点);
结束日:=filter(backset(BARSTATUS=2,结束点),结束点);
高二:=filter(backset(BARSTATUS=2,高2),高2);
低二:=filter(backset(BARSTATUS=2,低2),低2);
VERTLINE(起始日,1),LAYER0,coloryelLOW;
VERTLINE(中心日,1),LAYER0,colorred;
VERTLINE(结束日,1),LAYER0,colorgreen;
VERTLINE(高二,1),LAYER0,COLORFFBB77;
VERTLINE(低二,1),LAYER0,COLORBA75FF;
DRAWLINE(起始日,L,中心日,H,1),LINETHICK2,LAYER0,COLORD5D5D5;
DRAWLINE(中心日,H,结束日,L,1),LINETHICK2,LAYER0,COLORD5D5D5;
DRAWLINE(起始日,L,结束日,L,1),LINETHICK2,LAYER0,COLORD5D5D5;
DRAWLINE(起始日,H,高二,H,1),LINETHICK2,LAYER0,COLORFFBB77; {本文来至程序化交易网 cxh99.com}
DRAWLINE(结束日,L,低二,L,1),LINETHICK2,LAYER0,COLORBA75FF;
天数:IF(结束点>0,起始点-结束点+1,起始点-中心点+1),pRECIS0,LINETHICK0,colorwhite;

{布林线B}
{财务信息提取}
zg:=FINANCE2(35);{总股}
lta:=FINANCE2(37);{流通A}
sy:=FINANCE2(3);{收益}
sl:=DYNAINFO(39);{市盈率}
wf:=FINANCE2(8);{未分}
gj:=FINANCE2(7);{公积};
jz:=FINANCE2(4);{净资}
cw:='总股:'+zg+' 流通A:'+lta+' 收益:'+sy+' 市盈率:'+sl+' 未分:'+wf+' 公积:'+gj+' 净资:'+jz;
DRAWTEXTABS(5,24,cw),COLORYELLOW;
DRAWTEXTABS(20,8,STKLABEL+' '+STKNAME+' '+BKNAME),COLORYELLOW;
{大盘对比}
大盘涨跌:=(INDEXC/ref(INDEXC,1)-1)*100;
个股涨跌:=(c/ref(c,1)-1)*100;
STICKLINE(大盘涨跌<=0 and 个股涨跌>0 and c>o and c<h,h,c,0.1,0),LAYER3,COLORYELLOW;
STICKLINE(大盘涨跌<=0 and 个股涨跌>0 and c>o and c=h,c,c,6,0),LAYER3,COLORYELLOW;
STICKLINE(大盘涨跌<=0 and 个股涨跌>0 and c<o and c>l,l,c,0.1,0),LAYER3,COLORYELLOW;
STICKLINE(大盘涨跌<=0 and 个股涨跌>0 and c<o and c=l,c,c,6,0),LAYER3,COLORYELLOW;
STICKLINE(大盘涨跌>0 and 个股涨跌<=0 and c<o and c>l,l,c,0.1,0),LAYER3,COLORgreen;
STICKLINE(大盘涨跌>0 and 个股涨跌<=0 and c<o and c=l,c,c,6,0),LAYER3,COLORgreen;
STICKLINE(大盘涨跌>0 and 个股涨跌<=0 and c>o and c<h,h,c,0.1,0),LAYER3,COLORgreen;
STICKLINE(大盘涨跌>0 and 个股涨跌<=0 and c>o and c=h,c,c,6,0),LAYER3,COLORgreen;
{布林线提取}
BBI:="BBI"(3,6,12,24);
BI:=MA(CLOSE,20);
BI1:=100*(CLOSE-BI)/STD(CLOSE,20);
BI2:=EMA(BI1,10);
中轴线:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
partline(中轴线,BI1>BI2 AND BI1<-100,rgb(255,172,172),BI1>BI2 AND BI1>=-100 AND BI1<=170,rgb(255,95,95),BI1>BI2 AND BI1>=170,rgb(255,47,47),BI1<BI2 AND BI1>0,rgb(30,86,255),BI1<BI2 AND BI1<=0,rgb(2,129,255)),precis2,LINETHICK2,LAYER2,COLORWHITE;
压力线: BBI+3*STD(BBI,10),precis2,LAYER2,COLORB7B7B7;
支撑线: BBI-3*STD(BBI,10),precis2,LAYER2,COLORB7B7B7;
安全线:=MA(CLOSE,30);
{神奇主图}
操作:=MA((LOW+HIGH+CLOSE)/3,5);
拉升:=HHV(操作,13);
庄压:=HHV(MA(H,13),13);
支撑:=LLV(操作,13);
partline(安全线,操作=拉升 and 拉升>ref(拉升,1) and 庄压>ref(庄压,1),rgb(255,70,70),操作=支撑,rgb(47,151,255),庄压>ref(庄压,1),rgb(255,163,75),庄压<=ref(庄压,1),rgb(202,202,202),操作<ref(操作,1) and 庄压=ref(庄压,1) and 拉升=ref(庄压,1),rgb(30,86,255)),precis2,LAYER2,DOTLINE,colorwhite;
{神偷富贵}
V1:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*300;
VARQS3:=MA(V1,17)+MA(V1,17)-ref(MA(V1,17),1);
VARQS4:=IF(MA(V1,10)<VARQS3,VARQS3,MA(V1,10));
行情转折平衡线:=VARQS4-(EMA(V1,3)-VARQS4)*1.02;
V2:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
VARA:=ref(LOW,1);
VARB:=(SMA(ABS(LOW-VARA),3,1))/(SMA(MAX(LOW-VARA,0),3,1))*100;
VARC:=EMA(IF(CLOSE*1.3,VARB*10,VARB/10),3);
VARD:=LLV(LOW,13);
VARE:=HHV(VARC,13);
VARF:=IF(MA(CLOSE,34),1,0);
VARG:=(EMA(IF(LOW<=VARD,(VARC+VARE*2)/2,0),3))/(618)*VARF;
{买点提示}
快:=COUNT(CLOSE>ref(CLOSE,2),4)/4*100;
慢:=COUNT(CLOSE>ref(CLOSE,2),6)/6*100;
Var1:=LLV(LOW,5);
Var2:=HHV(HIGH,5);
快线:= EMA((CLOSE-Var1)/(Var2-Var1)*100,4) ;
慢线:= EMA(0.667*ref(快线,1)+0.333*快线,2);
JC:=(CROSS(快,1) AND 慢<=40) OR (CROSS(慢,20) AND 快<=50);
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,3)-LLV(LOW,3))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
快进:=CROSS(快线,慢线) AND 快线<30;
买1:=快=0 AND 慢>20 and cross(v1,ref(v1,1));
买2:=快=0 AND 慢>20 and cross(ref(行情转折平衡线,1),行情转折平衡线);
买3:=快进 and VARG>15;
买4:=快进 and cross(varg<ref(varg,1),0.5);
买5:=快进 and 行情转折平衡线<ref(行情转折平衡线,1) and ref(行情转折平衡线,1)>=30;
关注1:=快=0 AND 慢=0;
关注2:=V2<=3 or V2<=VARG;
STICKLINE(关注1 OR 关注2,CLOSE,OPEN,5,0),COLORWHITE;
一星买点:买1 or 买2,LINETHICK0,precis0,COLORE1E1E1;
二星买点:快=0 AND BETWEEN(慢,1,20) and cross(v1,ref(v1,1)) and cross(ref(行情转折平衡线,1),行情转折平衡线),LINETHICK0,precis0,COLORDBFF4A;
三星买点:FILTER(JC,3),LINETHICK0,precis0,COLOR4AFF61;
四星买点:买3 or 买4 or 买5,LINETHICK0,precis0,COLOR4AFFFB;
五星买点:ref(J,1)<0 AND J>0,LINETHICK0,precis0,COLOR4AA9FF;
六星买点:cross(快线,慢线) and 慢线<40 and ref(J,1)<0 AND J>0,LINETHICK0,precis0,COLOR4A58FF;
{图标提示}
DRAWTEXT(一星买点,h*1.02,'★'),COLORE1E1E1,ALIGN1;
DRAWTEXT(二星买点,h*1.03,'★'),COLORDBFF4A,ALIGN1;
DRAWTEXT(三星买点,h*1.04,'★'),COLOR4AFF61,ALIGN1;
DRAWTEXT(四星买点,l*0.99,'★'),COLOR4AFFFB,ALIGN1;
DRAWTEXT(五星买点,l*0.98,'★'),COLOR4AA9FF,ALIGN1;
DRAWTEXT(六星买点,l*0.97,'★'),COLOR4A58FF,ALIGN1;
{正反弦}
Vaa1:=BARSCOUNT(CLOSE)*3.142/60;
A2:=SIN(Vaa1*8)*100;
A3:=COS(Vaa1*8)*100;
{极限}
极点:=A2>98 OR A2<-99 OR A3>98 OR A3<-99;
STICKLINE( 快线>77 AND 极点,CLOSE,OPEN,5,0),COLOR5D5D5D;
关注3:=CROSS(COUNT(关注1,6)=6,0.8);
进仓:=快线<20 AND 极点;
STICKLINE(关注3 OR 进仓,CLOSE,OPEN,5,0),COLOR1FB6EF;
{追涨}
VarI:=CLOSE>ref(CLOSE,1);
VarII:=CLOSE/ref(CLOSE,1)>1.050 AND HIGH/CLOSE<1.010 AND VarI>0;
STICKLINE(VarII,CLOSE,OPEN,3,0),COLOR7979FF;
[/code]
[/b][/p]

页: [1]