发新话题

回复 楼主 @哈哈大王二 的帖子

@哈哈大王二

MA5:=MA(CLOSE,7);
MA20:=MA(CLOSE,20);
MA90:=MA(CLOSE,90);
Y1:=BARSLAST(CROSS(MA5,MA20));
Y2:=Y1 AND BARSLAST(CROSS(MA5,MA90));


多盈:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25);
HH:=(20*HIGH+19*REF(HIGH,1)+18*REF(HIGH,2)+17*REF(HIGH,3)+16*REF(HIGH,4)+15*REF(HIGH,5)+14*REF(HIGH,6)+13*REF(HIGH,7)+12*REF(HIGH,8)+11*REF(HIGH,9)+10*REF(HIGH,10)+9*REF(HIGH,11)+8*REF(HIGH,12)+7*REF(HIGH,13)+6*REF(HIGH,14)+5*REF(HIGH,15)+4*REF(HIGH,16)+3*REF(HIGH,17)+2*REF(HIGH,18)+REF(HIGH,20))/210;
LL:=(20*LOW+19*REF(LOW,1)+18*REF(LOW,2)+17*REF(LOW,3)+16*REF(LOW,4)+15*REF(LOW,5)+14*REF(LOW,6)+13*REF(LOW,7)+12*REF(LOW,8)+11*REF(LOW,9)+10*REF(LOW,10)+9*REF(LOW,11)+8*REF(LOW,12)+7*REF(LOW,13)+6*REF(LOW,14)+5*REF(LOW,15)+4*REF(LOW,16)+3*REF(LOW,17)+2*REF(LOW,18)+REF(LOW,20))/210;
D90H:=EMA(HH,90);
D90L:=EMA(LL,90);
DGH:=(20*HIGH+19*REF(HIGH,1)+18*REF(HIGH,2)+17*REF(HIGH,3)+16*REF(HIGH,4)+15*REF(HIGH,5)+14*REF(HIGH,6)+13*REF(HIGH,7)+12*REF(HIGH,8)+11*REF(HIGH,9)+10*REF(HIGH,10)+9*REF(HIGH,11)+8*REF(HIGH,12)+7*REF(HIGH,13)+6*REF(HIGH,14)+5*REF(HIGH,15)+4*REF(HIGH,16)+3*REF(HIGH,17)+2*REF(HIGH,18)+REF(HIGH,20))/210;
DDL:=(20*LOW+19*REF(LOW,1)+18*REF(LOW,2)+17*REF(LOW,3)+16*REF(LOW,4)+15*REF(LOW,5)+14*REF(LOW,6)+13*REF(LOW,7)+12*REF(LOW,8)+11*REF(LOW,9)+10*REF(LOW,10)+9*REF(LOW,11)+8*REF(LOW,12)+7*REF(LOW,13)+6*REF(LOW,14)+5*REF(LOW,15)+4*REF(LOW,16)+3*REF(LOW,17)+2*REF(LOW,18)+REF(LOW,20))/210;
D90C:=D90H-D90L;
D90D:=D90H+D90C*2;
D90T:=D90L-D90C*2;
G0:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25);
D0:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1;
DTD:=D0>=D90T AND G0>=D90D;
KTD:=G0<=D90D AND D0<=D90T;
ZDD:=D0>=D90T AND G0<=D90D;

空盈:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1;



白色点多定位1:=LOW<空盈 AND HIGH>空盈;

白色点多定位2:=HIGH<空盈;

多头多定位:=CROSS(空盈,LOW) AND DTD=1;
多头平定位:=CROSS(HIGH,多盈) AND DTD=1 AND ZDD=0;

空头平定位:=CROSS(空盈,LOW) AND KTD=1 AND ZDD=0;
震荡多定位:=CROSS(空盈,LOW) AND ZDD=1;


MM1:=空头平定位=1;
MM2:=多头多定位=1 OR 震荡多定位=1;
MM3:=白色点多定位2=1;
冠买:=MM1 OR MM2 OR MM3;
冠买点:=冠买 AND Y2 AND MA90<MA20;

高级买点:COUNT(冠买点,20)>=2 AND 冠买 AND 空盈>HIGH;
  • 2018-1-15 10:43 理想币 +10 任刚: 赠人玫瑰之手,经久犹有余香!
  • 2018-1-15 10:43 共享币 +5 任刚: 赠人玫瑰之手,经久犹有余香!
发消息 加好友
积分
57911 
理想币
42152 个 
彩币
5486 个 
共享币
485909 个 
注册时间
2016-8-18 

复制

回复 楼主 @哈哈大王二 的帖子

@哈哈大王二
MA5:=MA(CLOSE,7);
MA20:=MA(CLOSE,20);
MA90:=MA(CLOSE,90);
Y1:=BARSLAST(CROSS(MA5,MA20));
Y2:=Y1 AND BARSLAST(CROSS(MA5,MA90));


多盈:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25);
HH:=(20*HIGH+19*REF(HIGH,1)+18*REF(HIGH,2)+17*REF(HIGH,3)+16*REF(HIGH,4)+15*REF(HIGH,5)+14*REF(HIGH,6)+13*REF(HIGH,7)+12*REF(HIGH,8)+11*REF(HIGH,9)+10*REF(HIGH,10)+9*REF(HIGH,11)+8*REF(HIGH,12)+7*REF(HIGH,13)+6*REF(HIGH,14)+5*REF(HIGH,15)+4*REF(HIGH,16)+3*REF(HIGH,17)+2*REF(HIGH,18)+REF(HIGH,20))/210;
LL:=(20*LOW+19*REF(LOW,1)+18*REF(LOW,2)+17*REF(LOW,3)+16*REF(LOW,4)+15*REF(LOW,5)+14*REF(LOW,6)+13*REF(LOW,7)+12*REF(LOW,8)+11*REF(LOW,9)+10*REF(LOW,10)+9*REF(LOW,11)+8*REF(LOW,12)+7*REF(LOW,13)+6*REF(LOW,14)+5*REF(LOW,15)+4*REF(LOW,16)+3*REF(LOW,17)+2*REF(LOW,18)+REF(LOW,20))/210;
D90H:=EMA(HH,90);
D90L:=EMA(LL,90);
DGH:=(20*HIGH+19*REF(HIGH,1)+18*REF(HIGH,2)+17*REF(HIGH,3)+16*REF(HIGH,4)+15*REF(HIGH,5)+14*REF(HIGH,6)+13*REF(HIGH,7)+12*REF(HIGH,8)+11*REF(HIGH,9)+10*REF(HIGH,10)+9*REF(HIGH,11)+8*REF(HIGH,12)+7*REF(HIGH,13)+6*REF(HIGH,14)+5*REF(HIGH,15)+4*REF(HIGH,16)+3*REF(HIGH,17)+2*REF(HIGH,18)+REF(HIGH,20))/210;
DDL:=(20*LOW+19*REF(LOW,1)+18*REF(LOW,2)+17*REF(LOW,3)+16*REF(LOW,4)+15*REF(LOW,5)+14*REF(LOW,6)+13*REF(LOW,7)+12*REF(LOW,8)+11*REF(LOW,9)+10*REF(LOW,10)+9*REF(LOW,11)+8*REF(LOW,12)+7*REF(LOW,13)+6*REF(LOW,14)+5*REF(LOW,15)+4*REF(LOW,16)+3*REF(LOW,17)+2*REF(LOW,18)+REF(LOW,20))/210;
D90C:=D90H-D90L;
D90D:=D90H+D90C*2;
D90T:=D90L-D90C*2;
G0:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25);
D0:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1;
DTD:=D0>=D90T AND G0>=D90D;
KTD:=G0<=D90D AND D0<=D90T;
ZDD:=D0>=D90T AND G0<=D90D;

空盈:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1;



白色点多定位1:=LOW<空盈 AND HIGH>空盈;

白色点多定位2:=HIGH<空盈;

多头多定位:=CROSS(空盈,LOW) AND DTD=1;
多头平定位:=CROSS(HIGH,多盈) AND DTD=1 AND ZDD=0;

空头平定位:=CROSS(空盈,LOW) AND KTD=1 AND ZDD=0;
震荡多定位:=CROSS(空盈,LOW) AND ZDD=1;


MM1:=空头平定位=1;
MM2:=多头多定位=1 OR 震荡多定位=1;
MM3:=白色点多定位2=1;
冠买:=MM1 OR MM2 OR MM3;
冠买点:=冠买 AND Y2 AND MA90<MA20;

超级买点:COUNT(冠买点,20)>3 AND 冠买 AND 空盈>HIGH;
  • 2018-1-15 10:42 理想币 +10 任刚: 赠人玫瑰之手,经久犹有余香!
  • 2018-1-15 10:42 共享币 +5 任刚: 赠人玫瑰之手,经久犹有余香!
发消息 加好友
积分
57911 
理想币
42152 个 
彩币
5486 个 
共享币
485909 个 
注册时间
2016-8-18 

复制

TDXSTEP142:=DRAWGBK(CURRBARSCOUNT=1,RGB(110,108,108),RGB(88,30,0),0,1,0),COLORYELLOW,LINETHICK2;
MA5:=MA(CLOSE,7);
MA20:=MA(CLOSE,20);
MA90:=MA(CLOSE,90);
Y1:=BARSLAST(CROSS(MA5,MA20));
Y2:=Y1 AND BARSLAST(CROSS(MA5,MA90));
大涨开始:=CROSS(MA20,MA90);
多:=MA20>MA90;
多盈:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25);
HH:=(20*HIGH+19*REF(HIGH,1)+18*REF(HIGH,2)+17*REF(HIGH,3)+16*REF(HIGH,4)+15*REF(HIGH,5)+14*REF(HIGH,6)+13*REF(HIGH,7)+12*REF(HIGH,8)+11*REF(HIGH,9)+10*REF(HIGH,10)+9*REF(HIGH,11)+8*REF(HIGH,12)+7*REF(HIGH,13)+6*REF(HIGH,14)+5*REF(HIGH,15)+4*REF(HIGH,16)+3*REF(HIGH,17)+2*REF(HIGH,18)+REF(HIGH,20))/210;
LL:=(20*LOW+19*REF(LOW,1)+18*REF(LOW,2)+17*REF(LOW,3)+16*REF(LOW,4)+15*REF(LOW,5)+14*REF(LOW,6)+13*REF(LOW,7)+12*REF(LOW,8)+11*REF(LOW,9)+10*REF(LOW,10)+9*REF(LOW,11)+8*REF(LOW,12)+7*REF(LOW,13)+6*REF(LOW,14)+5*REF(LOW,15)+4*REF(LOW,16)+3*REF(LOW,17)+2*REF(LOW,18)+REF(LOW,20))/210;
D90H:=EMA(HH,90);
D90L:=EMA(LL,90);
DGH:=(20*HIGH+19*REF(HIGH,1)+18*REF(HIGH,2)+17*REF(HIGH,3)+16*REF(HIGH,4)+15*REF(HIGH,5)+14*REF(HIGH,6)+13*REF(HIGH,7)+12*REF(HIGH,8)+11*REF(HIGH,9)+10*REF(HIGH,10)+9*REF(HIGH,11)+8*REF(HIGH,12)+7*REF(HIGH,13)+6*REF(HIGH,14)+5*REF(HIGH,15)+4*REF(HIGH,16)+3*REF(HIGH,17)+2*REF(HIGH,18)+REF(HIGH,20))/210;
DDL:=(20*LOW+19*REF(LOW,1)+18*REF(LOW,2)+17*REF(LOW,3)+16*REF(LOW,4)+15*REF(LOW,5)+14*REF(LOW,6)+13*REF(LOW,7)+12*REF(LOW,8)+11*REF(LOW,9)+10*REF(LOW,10)+9*REF(LOW,11)+8*REF(LOW,12)+7*REF(LOW,13)+6*REF(LOW,14)+5*REF(LOW,15)+4*REF(LOW,16)+3*REF(LOW,17)+2*REF(LOW,18)+REF(LOW,20))/210;
D90C:=D90H-D90L;
D90D:=D90H+D90C*2;
D90T:=D90L-D90C*2;
G0:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25);
D0:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1;
DTD:=D0>=D90T AND G0>=D90D;
KTD:=G0<=D90D AND D0<=D90T;
ZDD:=D0>=D90T AND G0<=D90D;
BDD0:=(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*3+XMA(XMA(HIGH,60),60);
BDT0:=XMA(XMA(LOW,60),60)-(XMA(XMA(HIGH,60),60)-XMA(XMA(LOW,60),60))*3;
空盈:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1;
HD:=DRAWLINE(HIGH>=HHV(HIGH,20),HIGH,LOW<=LLV(LOW,20),HHV(HIGH,4),1);
HK:=DRAWLINE(LOW<=LLV(LOW,20),LOW,HIGH>=HHV(HIGH,20),LLV(LOW,4),1);
BSB:=EMA((CLOSE+HIGH+LOW)/3,3);
BSM:=EMA(SLOPE((CLOSE+HIGH+LOW)/3,24)*20+(CLOSE+HIGH+LOW)/3,48);
白色点多定位1:=LOW<空盈 AND HIGH>空盈;
白色点空定位1:=HIGH>多盈 AND LOW<多盈;
白色点多定位2:=HIGH<空盈;
白色点空定位2:=LOW>多盈;
多头多定位:=CROSS(空盈,LOW) AND DTD=1;
多头平定位:=CROSS(HIGH,多盈) AND DTD=1 AND ZDD=0;
空头空定位:=CROSS(HIGH,多盈) AND KTD=1;
空头平定位:=CROSS(空盈,LOW) AND KTD=1 AND ZDD=0;
震荡多定位:=CROSS(空盈,LOW) AND ZDD=1;
震荡空定位:=CROSS(HIGH,多盈) AND ZDD=1;
短顶:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*2+XMA(XMA(HIGH,25),25);
短底:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*2;
短线高盘:=(HIGH-短底)/(短顶-短底)*100000;
短线低盘:=(LOW-短底)/(短顶-短底)*100000;
空损Q:=110000;
多损Q:=(-10000);
MM1:=空头平定位=1;
MM2:=多头多定位=1 OR 震荡多定位=1;
MM3:=白色点多定位2=1;
冠买:=MM1 OR MM2 OR MM3;
冠买点:=冠买 AND Y2 AND MA90<MA20;
加强:=COUNT(冠买点,20)>=2 AND 冠买;
高级买点:=COUNT(冠买点,20)>=2 AND 冠买 AND 空盈>HIGH,COLORYELLOW,LINETHICK3;
超级买点:=COUNT(冠买点,20)>3 AND 冠买 AND 空盈>HIGH,COLORMAGENTA,LINETHICK3;
终极买点:=MA5>MA20 AND 冠买,COLORRED,LINETHICK3;

XG:高级买点 OR 超级买点 OR 终极买点;

这三个都出信号,如果要单独的,最后一句可以改成 xg:高级买点;    xg:超级买点;  xg:终极买点;
  • 2018-1-15 10:42 理想币 +10 任刚: 赠人玫瑰之手,经久犹有余香!
  • 2018-1-15 10:42 共享币 +5 任刚: 赠人玫瑰之手,经久犹有余香!
发消息 加好友
积分
4670 
理想币
1712 个 
彩币
100 个 
共享币
1518 个 
注册时间
2017-2-5 

复制

回复 楼主 @哈哈大王二 的帖子

@哈哈大王二
MA5:=MA(CLOSE,7);
MA20:=MA(CLOSE,20);



多盈:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25);
HH:=(20*HIGH+19*REF(HIGH,1)+18*REF(HIGH,2)+17*REF(HIGH,3)+16*REF(HIGH,4)+15*REF(HIGH,5)+14*REF(HIGH,6)+13*REF(HIGH,7)+12*REF(HIGH,8)+11*REF(HIGH,9)+10*REF(HIGH,10)+9*REF(HIGH,11)+8*REF(HIGH,12)+7*REF(HIGH,13)+6*REF(HIGH,14)+5*REF(HIGH,15)+4*REF(HIGH,16)+3*REF(HIGH,17)+2*REF(HIGH,18)+REF(HIGH,20))/210;
LL:=(20*LOW+19*REF(LOW,1)+18*REF(LOW,2)+17*REF(LOW,3)+16*REF(LOW,4)+15*REF(LOW,5)+14*REF(LOW,6)+13*REF(LOW,7)+12*REF(LOW,8)+11*REF(LOW,9)+10*REF(LOW,10)+9*REF(LOW,11)+8*REF(LOW,12)+7*REF(LOW,13)+6*REF(LOW,14)+5*REF(LOW,15)+4*REF(LOW,16)+3*REF(LOW,17)+2*REF(LOW,18)+REF(LOW,20))/210;
D90H:=EMA(HH,90);
D90L:=EMA(LL,90);
DGH:=(20*HIGH+19*REF(HIGH,1)+18*REF(HIGH,2)+17*REF(HIGH,3)+16*REF(HIGH,4)+15*REF(HIGH,5)+14*REF(HIGH,6)+13*REF(HIGH,7)+12*REF(HIGH,8)+11*REF(HIGH,9)+10*REF(HIGH,10)+9*REF(HIGH,11)+8*REF(HIGH,12)+7*REF(HIGH,13)+6*REF(HIGH,14)+5*REF(HIGH,15)+4*REF(HIGH,16)+3*REF(HIGH,17)+2*REF(HIGH,18)+REF(HIGH,20))/210;
DDL:=(20*LOW+19*REF(LOW,1)+18*REF(LOW,2)+17*REF(LOW,3)+16*REF(LOW,4)+15*REF(LOW,5)+14*REF(LOW,6)+13*REF(LOW,7)+12*REF(LOW,8)+11*REF(LOW,9)+10*REF(LOW,10)+9*REF(LOW,11)+8*REF(LOW,12)+7*REF(LOW,13)+6*REF(LOW,14)+5*REF(LOW,15)+4*REF(LOW,16)+3*REF(LOW,17)+2*REF(LOW,18)+REF(LOW,20))/210;
D90C:=D90H-D90L;
D90D:=D90H+D90C*2;
D90T:=D90L-D90C*2;
G0:=(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1+XMA(XMA(HIGH,25),25);
D0:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1;
DTD:=D0>=D90T AND G0>=D90D;
KTD:=G0<=D90D AND D0<=D90T;
ZDD:=D0>=D90T AND G0<=D90D;

空盈:=XMA(XMA(LOW,25),25)-(XMA(XMA(HIGH,25),25)-XMA(XMA(LOW,25),25))*1;



白色点多定位1:=LOW<空盈 AND HIGH>空盈;

白色点多定位2:=HIGH<空盈;

多头多定位:=CROSS(空盈,LOW) AND DTD=1;
多头平定位:=CROSS(HIGH,多盈) AND DTD=1 AND ZDD=0;

空头平定位:=CROSS(空盈,LOW) AND KTD=1 AND ZDD=0;
震荡多定位:=CROSS(空盈,LOW) AND ZDD=1;


MM1:=空头平定位=1;
MM2:=多头多定位=1 OR 震荡多定位=1;
MM3:=白色点多定位2=1;
冠买:=MM1 OR MM2 OR MM3;


终极买点:MA5>MA20 AND 冠买;
  • 2018-1-15 10:42 理想币 +10 任刚: 赠人玫瑰之手,经久犹有余香!
  • 2018-1-15 10:42 共享币 +5 任刚: 赠人玫瑰之手,经久犹有余香!
发消息 加好友
积分
57911 
理想币
42152 个 
彩币
5486 个 
共享币
485909 个 
注册时间
2016-8-18 

复制

谢谢老师
发消息 加好友
积分
476 
理想币
3 个 
彩币
1 个 
共享币
181 个 
注册时间
2007-5-31 

复制

为什么你的MA5:=MA(CLOSE,7);
而不是MA5:=MA(CLOSE,5);?
发消息 加好友
积分
481 
理想币
1 个 
彩币
0 个 
共享币
32 个 
注册时间
2017-11-26 

复制

注意未来函数
发消息 加好友
积分
450 
理想币
248 个 
彩币
0 个 
共享币
50 个 
注册时间
2017-12-2 

复制

发新话题
理想论坛 » 指标编写互助答疑区 » 请高手在高级买点 超级买点 终极买点三个地方各做一个选股公式
指标编写互助答疑区:积分规则

快速回复主题

选项

发帖请务遵守本站的相关规则,所有发表(包括转发)政治、色情非法信息者本站将实时提供发贴者个人信息给公安局,追究责任,特此申明!
具体规则请参见 理想论坛会员守则》 《净化论坛环境,打击恶意灌水》。

您需要登录后才可以发帖

[完成后可按 Ctrl+Enter 发布]

理想论坛上的网友发表的帖子纯属个人意见,理想论坛不负任何责任!广告赞助商内容与本站无关!免责声明
理想论坛值班电话[9:30~18:30]: ☎ 400 016 5518-1 ☎ 010-5366 3090 ☎ 186 4906 9487(广告)187 1028 6081(广告)
找回密码 软件区:1006648222 百宝箱: 1006267111 广告: 1006269111 广告: 3145821447
诚信档案编号:CX20150604010215010383 信誉编号:TL852015042710940
工业和信息化部信息备案: 京ICP备15035364号 京ICP证151057号
关闭底部 打开底部 回顶部 到页底 理想论坛微信号:lixiang55188 扫描下载理想选股App
关闭
关闭