找回密码
 立即注册

QQ登录

只需一步,快速开始

广告载入中...
查看: 1922|回复: 21

将下面公式做个选股公式

[复制链接]
发表于 2014-5-8 15:07 | 显示全部楼层 |阅读模式
悬赏10威望未解决
DRAWGBK(C>O,RGB(60,0,0),RGB(0,0,0),1,2,1);
DRAWTEXT_FIX(1,0.88,5,0,'~☆~隆逸优化作品~☆~'),COLORRED;
HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,COLORBLUE,LINETHICK1;
LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210,COLORBLUE,LINETHICK1;
D90H:=EMA(HH,90),COLORRED,LINETHICK1;
D90L:=EMA(LL,90),COLORRED,LINETHICK1;
DGH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,COLORBLUE,LINETHICK1;DDL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210,COLORBLUE,LINETHICK1;
D90C:=D90H-D90L;D90D:=D90H+D90C*2,COLORRED,LINETHICK1;
D90T:=D90L-D90C*2,COLORRED,LINETHICK1;
G0:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),LINETHICK1,COLORWHITE;
D0:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,LINETHICK1,COLORWHITE;
DTD:=D0>=D90T AND G0>=D90D;
KTD:=G0<=D90D AND D0<=D90T;
ZDD:=D0>=D90T AND G0<=D90D;
BDD0:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3+XMA(XMA(H,60),60),LINETHICK2,COLORGREEN;
BDT0:=XMA(XMA(L,60),60)-(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3,LINETHICK2,COLORGREEN;
ZK1:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25),DOTLINE,COLORBLUE;
ZD1:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1,DOTLINE,COLORRED,LINETHICK2;
ZK2:=EMA(ZK1,25);
ZD2:=EMA(ZD1,25),LINETHICK2;
GF:=ZD1>ZD2 AND L<ZD1 AND C<O;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000),COLOR00AAAA,LINETHICK;
V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);
V5:=SMA(V2*240/FROMOPEN*0.9,5,1);
V10:=SMA(V5,5,1);
V20:=SMA(V10,5,1);
TT:=(V2*1.01-REF(V2,1));
TT2:=(REF(V2*1.01,1)-REF(V2,2));
YY:=TT>3*ABS(TT2);
TT1:=EMA(V2,15);
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
N:=10;
P:=3;
UPR:=BBI+P*STD(BBI,N);
DWN:=BBI-P*STD(BBI,N);
XF:=L<DWN;
开口值:=ZD1-ZD2;
强势区域:EVERY(开口值>REF(开口值,1),5);
DRAWBAND(强势区域,120,0,RGB(36,136,36));
潜伏:=GF AND XF;
进:=ZIG(3,5)>REF(ZIG(3,5),1) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3) AND REF(潜伏,1);
进2:=TT>0 AND CROSS(TT,TT1) AND YY AND REF(潜伏,1);
STICKLINE(潜伏=1,0,4,0.5,0),COLORGREEN;
DRAWTEXT(潜伏=1,4,' 潜伏'),COLORGREEN;
STICKLINE(进=1 OR 进2=1,0,6,0.5,0),COLORRED;
DRAWTEXT(进=1 OR 进2=1,5,' 进场'),COLORRED;
UU:=BARSLAST(CROSS(ZD1,ZD2))<30;
时来运转:=进 AND UU;
时来运转2:=进2 AND UU;
STICKLINE(时来运转=1 OR 时来运转2=1,0,3,3,0),COLORYELLOW;
DRAWTEXT(时来运转=1 OR 时来运转2=1,3,' 时来运转'),COLORYELLOW;
GF2:= L<ZD1 AND ZD1<ZD2;
V型反转:REF(GF2,1) AND C>O AND C/REF(C,1)>1.04 AND TT>0 AND CROSS(TT,TT1) AND YY;
STICKLINE(V型反转=1,0,3,1,0),COLORYELLOW;
DRAWTEXT(V型反转=1,4,' V型反转'),COLORGREEN;
将时来运转和潜伏这两个条件做成选股公式。

发表于 2014-5-8 15:36 | 显示全部楼层
东方财富和大智慧都不能测试通过

回复

使用道具 举报

发表于 2014-5-8 15:39 | 显示全部楼层
帮你顶,请高手帮忙
回复

使用道具 举报

发表于 2014-5-8 15:47 | 显示全部楼层
学习学习,楼主辛苦了。感谢楼主分享!!!
回复

使用道具 举报

发表于 2014-5-8 15:49 | 显示全部楼层
谢谢分享
回复

使用道具 举报

发表于 2014-5-8 16:06 | 显示全部楼层
谢谢分享,
回复

使用道具 举报

发表于 2014-5-8 16:06 | 显示全部楼层
谢谢分享,
回复

使用道具 举报

发表于 2014-5-8 16:21 | 显示全部楼层
将时来运转和潜伏这两个条件做成选股公式。
回复

使用道具 举报

发表于 2014-5-8 16:27 | 显示全部楼层
感谢楼主分享
回复

使用道具 举报

发表于 2014-5-12 12:19 | 显示全部楼层
怎么没有高人改啊
回复

使用道具 举报

发表于 2014-6-13 15:19 | 显示全部楼层
{潜伏和时来运转选股公式}
{QQ:70745373,太阳神恭祝各位炒股愉快}
{适用于通达信,已经验证通过}


{DRAWGBK(C>O,RGB(60,0,0),RGB(0,0,0),1,2,1);}
HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210;
LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210;
D90H:=EMA(HH,90);
D90L:=EMA(LL,90);
DGH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210;
DDL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210;
D90C:=D90H-D90L;
D90D:=D90H+D90C*2;
D90T:=D90L-D90C*2;
G0:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25);
D0:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1;
DTD:=D0>=D90T AND G0>=D90D;
KTD:=G0<=D90D AND D0<=D90T;
ZDD:=D0>=D90T AND G0<=D90D;
BDD0:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3+XMA(XMA(H,60),60);
BDT0:=XMA(XMA(L,60),60)-(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3;
ZK1:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25);
ZD1:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1;
ZK2:=EMA(ZK1,25);
ZD2:=EMA(ZD1,25);
GF:=ZD1>ZD2 AND L<ZD1 AND C<O;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000);
V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);
V5:=SMA(V2*240/FROMOPEN*0.9,5,1);
V10:=SMA(V5,5,1);
V20:=SMA(V10,5,1);
TT:=(V2*1.01-REF(V2,1));
TT2:=(REF(V2*1.01,1)-REF(V2,2));
YY:=TT>3*ABS(TT2);
TT1:=EMA(V2,15);
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
N:=10;
P:=3;
UPR:=BBI+P*STD(BBI,N);
DWN:=BBI-P*STD(BBI,N);
XF:=L<DWN;
开口值:=ZD1-ZD2;
{强势区域:EVERY(开口值>REF(开口值,1),5);
DRAWBAND(强势区域,120,0,RGB(36,136,36));}
潜伏:=GF AND XF;
进:=ZIG(3,5)>REF(ZIG(3,5),1) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3) AND REF(潜伏,1);
进2:=TT>0 AND CROSS(TT,TT1) AND YY AND REF(潜伏,1);
{STICKLINE(潜伏=1,0,4,0.5,0),COLORGREEN;
DRAWTEXT(潜伏=1,4,' 潜伏'),COLORGREEN;
STICKLINE(进=1 OR 进2=1,0,6,0.5,0),COLORRED;
DRAWTEXT(进=1 OR 进2=1,5,' 进场'),COLORRED;}
UU:=BARSLAST(CROSS(ZD1,ZD2))<30;
时来运转:=进 AND UU;
时来运转2:=进2 AND UU;
选股:潜伏 AND 时来运转;

{STICKLINE(时来运转=1 OR 时来运转2=1,0,3,3,0),COLORYELLOW;
DRAWTEXT(时来运转=1 OR 时来运转2=1,3,' 时来运转'),COLORYELLOW;
GF2:= L<ZD1 AND ZD1<ZD2;
V型反转:REF(GF2,1) AND C>O AND C/REF(C,1)>1.04 AND TT>0 AND CROSS(TT,TT1) AND YY;
STICKLINE(V型反转=1,0,3,1,0),COLORYELLOW;
DRAWTEXT(V型反转=1,4,' V型反转'),COLORGREEN;};
回复

使用道具 举报

发表于 2014-6-13 15:21 | 显示全部楼层
追问一下楼主:这个公式有用吗?
我希望楼主放弃原来的炒股的技术,专心学习王子的理论吧! 如果觉得还可以使用,请给评分!
回复

使用道具 举报

发表于 2014-6-13 15:27 | 显示全部楼层
{潜伏和时来运转选股公式}
{QQ:70745373,太阳神恭祝各位炒股愉快}
{适用于通达信,已经验证通过}


{DRAWGBK(C>O,RGB(60,0,0),RGB(0,0,0),1,2,1);}
HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210;
LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210;
D90H:=EMA(HH,90);
D90L:=EMA(LL,90);
DGH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210;
DDL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210;
D90C:=D90H-D90L;
D90D:=D90H+D90C*2;
D90T:=D90L-D90C*2;
G0:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25);
D0:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1;
DTD:=D0>=D90T AND G0>=D90D;
KTD:=G0<=D90D AND D0<=D90T;
ZDD:=D0>=D90T AND G0<=D90D;
BDD0:=(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3+XMA(XMA(H,60),60);
BDT0:=XMA(XMA(L,60),60)-(XMA(XMA(H,60),60)-XMA(XMA(L,60),60))*3;
ZK1:=(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1+XMA(XMA(H,25),25);
ZD1:=XMA(XMA(L,25),25)-(XMA(XMA(H,25),25)-XMA(XMA(L,25),25))*1;
ZK2:=EMA(ZK1,25);
ZD2:=EMA(ZD1,25);
GF:=ZD1>ZD2 AND L<ZD1 AND C<O;
JJ:=(HIGH+LOW+CLOSE)/3;
QJ0:=VOL/IF(HIGH=LOW,4,HIGH-LOW);
QJ1:=IF(CAPITAL=0,QJ0*(JJ-MIN(CLOSE,OPEN)),QJ0*IF(HIGH=LOW,1,(MIN(OPEN,CLOSE)-LOW)));
QJ2:=IF(CAPITAL=0,QJ0*(MIN(OPEN,CLOSE)-LOW),QJ0*IF(HIGH=LOW,1,(JJ-MIN(CLOSE,OPEN))));
QJ3:=IF(CAPITAL=0,QJ0*(HIGH-MAX(OPEN,CLOSE)),QJ0*IF(HIGH=LOW,1,(HIGH-MAX(OPEN,CLOSE))));
QJ4:=IF(CAPITAL=0,QJ0*(MAX(CLOSE,OPEN)-JJ),QJ0*IF(HIGH=LOW,1,(MAX(CLOSE,OPEN)-JJ)));
DDX:=((QJ1+QJ2)-(QJ3+QJ4))/IF(CAPITAL=0,1000000,10000);
V2:=SMA(IF(C>=REF(C,1),DDX,-DDX/100),2,1);
V5:=SMA(V2*240/FROMOPEN*0.9,5,1);
V10:=SMA(V5,5,1);
V20:=SMA(V10,5,1);
TT:=(V2*1.01-REF(V2,1));
TT2:=(REF(V2*1.01,1)-REF(V2,2));
YY:=TT>3*ABS(TT2);
TT1:=EMA(V2,15);
BBI:=(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4;
N:=10;
P:=3;
UPR:=BBI+P*STD(BBI,N);
DWN:=BBI-P*STD(BBI,N);
XF:=L<DWN;
开口值:=ZD1-ZD2;
{强势区域:EVERY(开口值>REF(开口值,1),5);
DRAWBAND(强势区域,120,0,RGB(36,136,36));}
潜伏:=GF AND XF;
进:=ZIG(3,5)>REF(ZIG(3,5),1) AND (REF(ZIG(3,5),1)<=REF(ZIG(3,5),2)) AND REF(ZIG(3,5),2)<=REF(ZIG(3,5),3) AND REF(潜伏,1);
进2:=TT>0 AND CROSS(TT,TT1) AND YY AND REF(潜伏,1);
{STICKLINE(潜伏=1,0,4,0.5,0),COLORGREEN;
DRAWTEXT(潜伏=1,4,' 潜伏'),COLORGREEN;
STICKLINE(进=1 OR 进2=1,0,6,0.5,0),COLORRED;
DRAWTEXT(进=1 OR 进2=1,5,' 进场'),COLORRED;}
UU:=BARSLAST(CROSS(ZD1,ZD2))<30;
时来运转:=进 AND UU;
时来运转2:=进2 AND UU;
选股:潜伏 AND 时来运转;

{STICKLINE(时来运转=1 OR 时来运转2=1,0,3,3,0),COLORYELLOW;
DRAWTEXT(时来运转=1 OR 时来运转2=1,3,' 时来运转'),COLORYELLOW;
GF2:= L<ZD1 AND ZD1<ZD2;
V型反转:REF(GF2,1) AND C>O AND C/REF(C,1)>1.04 AND TT>0 AND CROSS(TT,TT1) AND YY;
STICKLINE(V型反转=1,0,3,1,0),COLORYELLOW;
DRAWTEXT(V型反转=1,4,' V型反转'),COLORGREEN;};
回复

使用道具 举报

发表于 2014-6-13 15:29 | 显示全部楼层
我觉得这个公式要放弃,有未来函数ZIG。信号会漂移,用这个会害自己的。
回复

使用道具 举报

发表于 2014-6-13 16:05 | 显示全部楼层
{:soso_e160:}
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|股海明灯官网 ( 京ICP备18020431号 )

GMT+8, 2024-11-15 01:03 , Processed in 0.125739 second(s), Total 9, Slave 8 queries , Gzip On, MemCached On.

Powered by Discuz! X3.5

Copyright © 2001-2024 Tencent Cloud.

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