• 18976542384

    工作时间

    周一至周五:9:00-21:00

    周末及节日:9:00-18:00

  • 手机版二维码

    手机快速找资源

  • 扫描二维码

    加入官方qq群

[源码] 通达信量化辨股与评分指标公式

13
回复
1877
查看
[复制链接]

88

主题

6

回帖

476

积分

中级会员

Rank: 3Rank: 3

积分
476
发表于 2023-5-4 23:40:16 | 显示全部楼层 |阅读模式
A1:=MA(MAX(HHV(H,13),C),2);

A2:=MA(MAX(HHV(H,5),A1),2);

A3:=MA(MAX(HHV(H,3),A2),2);

A4:=MA(MIN(LLV(A3,13),A3),2);

A5:=MA(MIN(LLV(L,13),A4),2);

A6:=(A1+A4+A5)/3;

中线:EMA(SLOPE(MA(C,2),21)*20+MA(C,2),55),COLORGREEN,LINETHICK3;

长线:MA(中线,20);

AC:=IF(C>中线,C*0.98,L),COLORYELLOW;

短A:MA(AC,5);

A8:=IF(C>中线,A1,中线*1.02);

A9:=IF(C>中线,A2,中线*1.02);

A10:=IF(C>中线,A3,中线*1.02);

A11:=(A8+A9+A10)/3;

A12:=MA(A11,10);

短B:MA(短A,5),COLORYELLOW;

DRAWTEXT(CROSS(C,短B),短B,''),COLORRED;

DRAWTEXT(CROSS(C,中线),中线,''),COLORRED;

DRAWTEXT(CROSS(C,长线),长线,''),COLORRED;

DRAWRECTREL(200,10,800,990,90);

DRAWRECTREL(500,100,501,990,60);

DRAWRECTREL(200,100,800,100,60);

DRAWRECTREL(200,200,800,200,60);

DRAWRECTREL(200,300,800,300,60);

DRAWRECTREL(200,400,800,400,60);

DRAWRECTREL(200,500,800,500,60);

DRAWRECTREL(200,600,800,600,60);

DRAWRECTREL(200,700,800,700,60);

DRAWRECTREL(200,800,800,800,60);

DRAWRECTREL(200,900,800,900,60);

DRAWTEXT_FIX(1,0.53,0.05,1,'量 化 辨 股'),COLORYELLOW;

DRAWTEXT_FIX(1,0.35,0.15,1,'买 入 条 件'),COLORYELLOW;

DRAWTEXT_FIX(1,0.65,0.15,1,'卖 出 理 由'),COLORYELLOW;

DRAWTEXT_FIX(1,0.285,0.25,1,'股价上穿短B'),COLORYELLOW;

DRAWTEXT_FIX(1,0.29,0.35,1,'股价上穿中线'),COLORYELLOW;

DRAWTEXT_FIX(1,0.29,0.45,1,'股价上穿长线'),COLORYELLOW;

DRAWTEXT_FIX(1,0.322,0.55,1,'股价收阳且小于3点'),COLORYELLOW;

DRAWTEXT_FIX(1,0.288,0.65,1,'量大于昨同期'),COLORYELLOW;

DRAWTEXT_FIX(1,0.292,0.75,1,'乖离率小于1.2'),COLORYELLOW;

DRAWTEXT_FIX(1,0.26,0.95,1,'买入评分'),COLORYELLOW;

DRAWTEXT_FIX(1,0.58,0.25,1,'股价下穿短A'),COLORGREEN;

DRAWTEXT_FIX(1,0.585,0.35,1,'股价下穿中线'),COLORGREEN;

DRAWTEXT_FIX(1,0.585,0.45,1,'股价下穿长线'),COLORGREEN;

DRAWTEXT_FIX(1,0.61,0.55,1,'股价收阴且小于-2'),COLORGREEN;

DRAWTEXT_FIX(1,0.585,0.65,1,'量小于昨同期'),COLORGREEN;

DRAWTEXT_FIX(1,0.59,0.75,1,'乖离率大于1.2'),COLORGREEN;

DRAWTEXT_FIX(1,0.56,0.95,1,'卖出评分'),COLORGREEN;

T1:=CROSS(C,短B)AND EXIST(CROSS(中线,C),5);DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.48,0.25,1,T1);

T2:=CROSS(C,中线);DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.48,0.35,1,T2);

T3:=CROSS(C,长线);DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.48,0.45,1,T3);

T4:=C>REF(C,1) AND C/REF(C,1)< 1.031;

DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.48,0.55,1,T4);

T5:=V>REF(V,1)*FROMOPEN/240;

DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.48,0.65,1,T5);

T6:=C/中线< 1.21;

DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.48,0.75,1,T6);

买入评分:=T1+T2+T3+T4+T5+T6;

STICKLINE(CURRBARSCOUNT=1 AND C>REF(C,1),C,中线,3,1),COLORRED;

STICKLINE(CURRBARSCOUNT=1 AND C>REF(C,1),长线,中线,2,0),COLORYELLOW;

DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.48,0.95,1,买入评分);

DRAWRECTREL(930,500,970,990,0);

DRAWRECTREL(930,CONST(990-买入评分*100),970,990,95);

DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.95,0.95,1,买入评分),COLORRED;

DRAWTEXT_FIX(1,0.98,0.75,1,'买入评分'),COLORYELLOW;

T7:=CROSS(短A,C);DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.78,0.25,1,T7);

T8:=CROSS(中线,C);DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.78,0.35,1,T8);

T9:=CROSS(中线,C);DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.78,0.45,1,T9);

T10:=C/REF(C,1)< 0.98;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.78,0.55,1,T10);

T11:=V< REF(V,1)*FROMOPEN/240;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.78,0.65,1,T11);

T12:=C/中线>1.2;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.78,0.75,1,T12);

卖出评分:=T7+T8+T9+T10+T11+T12;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.78,0.95,1,卖出评分);

量比前1:=V/(REF(V,1)*FROMOPEN/240);

DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.35,0.65,1,量比前1);



回复

使用道具 举报

0

主题

7

回帖

25

积分

新手上路

Rank: 1

积分
25
发表于 2023-5-5 09:19:27 | 显示全部楼层
有道理。。。
回复

使用道具 举报

1

主题

9

回帖

34

积分

新手上路

Rank: 1

积分
34
发表于 2023-5-7 04:52:42 | 显示全部楼层
好人还是很多的!
回复

使用道具 举报

0

主题

6

回帖

22

积分

新手上路

Rank: 1

积分
22
发表于 2023-7-8 00:12:52 | 显示全部楼层
good!vevy good!
回复

使用道具 举报

0

主题

7

回帖

29

积分

新手上路

Rank: 1

积分
29
发表于 2023-7-11 16:55:33 | 显示全部楼层
不知该说些什么。。。。。。就是谢谢
回复

使用道具 举报

0

主题

7

回帖

26

积分

新手上路

Rank: 1

积分
26
发表于 2023-8-3 08:48:33 | 显示全部楼层
厉害了!
回复

使用道具 举报

0

主题

6

回帖

23

积分

新手上路

Rank: 1

积分
23
发表于 2023-8-22 19:03:46 | 显示全部楼层
感谢感谢!楼主功德无量,哈哈!
回复

使用道具 举报

25

主题

12

回帖

159

积分

注册会员

Rank: 2

积分
159
发表于 2023-9-5 16:19:54 | 显示全部楼层
好人一生平安!
回复

使用道具 举报

0

主题

3

回帖

15

积分

新手上路

Rank: 1

积分
15
发表于 2023-9-18 17:29:27 | 显示全部楼层
厉害了!
回复

使用道具 举报

0

主题

5

回帖

21

积分

新手上路

Rank: 1

积分
21
发表于 2023-11-6 05:59:28 | 显示全部楼层
感谢感谢!楼主功德无量,哈哈!
回复

使用道具 举报

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

本版积分规则

全国统一客服电话
18976542384

24x7小时免费咨询

  • 官方在线客服

    QQ客服:股海浪子

    点击交谈

    QQ客服:beyond

    点击交谈

    QQ客服:明月

    点击交谈
  • 广东省深圳市福田区深南大道2012号

  • 添加客服微信

    可领取网站任一指标一个

  • 加入指标qq分享群

    免费领取资源

Powered by Discuz!X3.4 ©2001-2013 Comsenz Inc.彩虹桥投资充电站( 粤ICP备19084539号 )|网站地图