• 18976542384

    工作时间

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

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

  • 手机版二维码

    手机快速找资源

  • 扫描二维码

    加入官方qq群

[源码] 2023买卖顺应趋势 炒股轻而易举《通达信+指标+公式+副图+源码》

5
回复
205
查看
[复制链接]

110

主题

16

回帖

628

积分

高级会员

Rank: 4

积分
628
发表于 2023-9-16 09:31:52 | 显示全部楼层 |阅读模式
彩虹桥-投资充电站
副图公式源码支持 手机/电脑



顶部:=BBI+3*STD(BBI,13),COLOR004AFF;
底部:=BBI-3*STD(BBI,13),COLOR67FF00;
DRAWBAND(BBI,RGB(97,95,00),顶部,RGB(97,95,00));
DRAWBAND(BBI,RGB(25,75,150),底部,RGB(25,75,250));
STICKLINE(C>REF(C,1),H,L,0,1 ),COLORRED;
STICKLINE(C>REF(C,1),O,C,3,0 ),COLOR000055;
STICKLINE(C>REF(C,1),O,C,2.7,0 ),COLOREEEEEE;
STICKLINE(C>REF(C,1),O,C,2.1,0 ),COLOR000099;
STICKLINE(C>REF(C,1),O,C,1.5,0 ),COLOR0000BB;
STICKLINE(C>REF(C,1),O,C,0.9,0 ),COLOR0000DD;
STICKLINE(C>REF(C,1),O,C,0.3,0 ),COLOR0000FF;
STICKLINE(C=REF(C,1),H,L,0,1 ),COLORWHITE;
STICKLINE(C=REF(C,1),O,C,3,0 ),COLOR555555;
STICKLINE(C=REF(C,1),O,C,2.7,0 ),COLOR777777;
STICKLINE(C=REF(C,1),O,C,2.1,0 ),COLOR999999;
STICKLINE(C=REF(C,1),O,C,1.5,0 ),COLORBBBBBB;
STICKLINE(C=REF(C,1),O,C,0.9,0 ),COLORDDDDDD;
STICKLINE(C=REF(C,1),O,C,0.3,0 ),COLORFFFFFF;
STICKLINE(C<REF(C,1),H,L,0,1 ),COLORCYAN;
STICKLINE(C<REF(C,1),O,C,3,0 ),COLOR990000;
STICKLINE(C<REF(C,1),O,C,2.7,0 ),COLORCC0000;
STICKLINE(C<REF(C,1),O,C,2.1,0 ),COLORFF4400;
STICKLINE(C<REF(C,1),O,C,1.5,0 ),COLORFF8800;
STICKLINE(C<REF(C,1),O,C,0.9,0 ),COLORFFCC00;
STICKLINE(C<REF(C,1),O,C,0.3,0 ),COLORCYAN;
GUA1:=H<REF(H,1) AND L<REF(L,1);
GUA2:=H<REF(H,1) AND L>REF(L,1);
GUA3:=H>REF(H,1) AND L<REF(L,1);
GUA4:=H>REF(H,1) AND L>REF(L,1);
GUA5:=REF(H,2) <H AND REF(L,2) <L AND REF(H,2) >REF(H,1) AND REF(L,2) <REF(L,1);
GUB1:=COUNT(GUA1,6)>=3 AND COUNT(GUA2 OR GUA3,5)=0 AND LLVBARS(L,6) =1 AND HHVBARS(H,6) >=5 AND GUA4;
GUB2:=COUNT(GUA1,7)>=3 AND COUNT(GUA2 OR GUA3,6)=1 AND LLVBARS(L,7) =2 AND HHVBARS(H,7) >=6 AND GUA5;
GUB3:=COUNT(GUA1,7)>=3 AND COUNT(GUA2 OR GUA3,6)=1 AND LLVBARS(L,7) =1 AND HHVBARS(H,7) >=6 AND GUA4;
GUB4:=COUNT(GUA1,8)>=3 AND COUNT(GUA2 OR GUA3,7)<=2 AND LLVBARS(L,8) =2 AND HHVBARS(H,8) >=7 AND GUA5;
GUB5:=COUNT(GUA1,8)>=3 AND COUNT(GUA2 OR GUA3,7)<=2 AND LLVBARS(L,8) =1 AND HHVBARS(H,8) >=7 AND GUA4;
GUB6:=COUNT(GUA1,9)>=3 AND COUNT(GUA2 OR GUA3,8)<=3 AND LLVBARS(L,9) =2 AND HHVBARS(H,9) >=8 AND GUA5;
GUB7:=COUNT(GUA1,9)>=3 AND COUNT(GUA2 OR GUA3,8)<=3 AND LLVBARS(L,9) =1 AND HHVBARS(H,9) >=8 AND GUA4;
GUB8:=COUNT(GUA1,10)>=3 AND COUNT(GUA2 OR GUA3,9)<=4 AND LLVBARS(L,10) =2 AND HHVBARS(H,10) >=9 AND GUA5;
GUB9:=COUNT(GUA1,10)>=3 AND COUNT(GUA2 OR GUA3,9)<=4 AND LLVBARS(L,10) =1 AND HHVBARS(H,10) >=9 AND GUA4;
GUB10:=COUNT(GUA1,11)>=3 AND COUNT(GUA2 OR GUA3,10)<=5 AND LLVBARS(L,11) =2 AND HHVBARS(H,11) >=10 AND GUA5;
选股:=GUB1 OR GUB2 OR GUB3 OR GUB4 OR GUB5 OR GUB6 OR GUB7 OR GUB8 OR GUB9 OR GUB10;
DRAWTEXT(FILTER(选股=1,5),L*0.97,'买');
HGUA1:=H>REF(H,1) AND L>REF(L,1);
HGUA2:=H<REF(H,1) AND L>REF(L,1);
HGUA3:=H>REF(H,1) AND L<REF(L,1);
HGUA4:=H<REF(H,1) AND L<REF(L,1);
HGUA5:=REF(H,2) >H AND REF(L,2) >L AND REF(H,2) >REF(H,1) AND REF(L,2) <REF(L,1);
HGUB1:=COUNT(HGUA1,6)>=3 AND COUNT(HGUA2 OR HGUA3,5)=0 AND HHVBARS(H,6) =1 AND LLVBARS(L,6) >=5 AND HGUA4;
HGUB2:=COUNT(HGUA1,7)>=3 AND COUNT(HGUA2 OR HGUA3,6)=1 AND HHVBARS(H,7) =2 AND LLVBARS(L,7) >=6 AND HGUA5;
HGUB3:=COUNT(HGUA1,7)>=3 AND COUNT(HGUA2 OR HGUA3,6)=1 AND HHVBARS(H,7) =1 AND LLVBARS(L,7) >=6 AND HGUA4;
HGUB4:=COUNT(HGUA1,8)>=3 AND COUNT(HGUA2 OR HGUA3,7)<=2 AND HHVBARS(H,8) =2 AND LLVBARS(L,8) >=7 AND HGUA5;
HGUB5:=COUNT(HGUA1,8)>=3 AND COUNT(HGUA2 OR HGUA3,7)<=2 AND HHVBARS(H,8) =1 AND LLVBARS(L,8) >=7 AND HGUA4;
HGUB6:=COUNT(HGUA1,9)>=3 AND COUNT(HGUA2 OR HGUA3,8)<=3 AND HHVBARS(H,9) =2 AND LLVBARS(L,9) >=8 AND HGUA5;
HGUB7:=COUNT(HGUA1,9)>=3 AND COUNT(HGUA2 OR HGUA3,8)<=3 AND HHVBARS(H,9) =1 AND LLVBARS(L,9) >=8 AND HGUA4;
HGUB8:=COUNT(HGUA1,10)>=3 AND COUNT(HGUA2 OR HGUA3,9)<=4 AND HHVBARS(H,10) =2 AND LLVBARS(L,10) >=9 AND HGUA5;
HGUB9:=COUNT(HGUA1,10)>=3 AND COUNT(HGUA2 OR HGUA3,9)<=4 AND HHVBARS(H,10) =1 AND LLVBARS(L,10) >=9 AND HGUA4;
HGUB10:=COUNT(HGUA1,11)>=3 AND COUNT(HGUA2 OR HGUA3,10)<=5 AND HHVBARS(H,11) =2 AND LLVBARS(L,11) >=10 AND HGUA5;
H选股:=HGUB1 OR HGUB2 OR HGUB3 OR HGUB4 OR HGUB5 OR HGUB6 OR HGUB7 OR HGUB8 OR HGUB9 OR HGUB10;
DRAWTEXT(FILTER(H选股=1,3),H*1.02,'卖');

选股公式源码



{选股公式:买}
GUA1:=H<REF(H,1) AND L<REF(L,1);
GUA2:=H<REF(H,1) AND L>REF(L,1);
GUA3:=H>REF(H,1) AND L<REF(L,1);
GUA4:=H>REF(H,1) AND L>REF(L,1);
GUA5:=REF(H,2) <H AND REF(L,2) <L AND REF(H,2) >REF(H,1) AND REF(L,2) <REF(L,1);
GUB1:=COUNT(GUA1,6)>=3 AND COUNT(GUA2 OR GUA3,5)=0 AND LLVBARS(L,6) =1 AND HHVBARS(H,6) >=5 AND GUA4;
GUB2:=COUNT(GUA1,7)>=3 AND COUNT(GUA2 OR GUA3,6)=1 AND LLVBARS(L,7) =2 AND HHVBARS(H,7) >=6 AND GUA5;
GUB3:=COUNT(GUA1,7)>=3 AND COUNT(GUA2 OR GUA3,6)=1 AND LLVBARS(L,7) =1 AND HHVBARS(H,7) >=6 AND GUA4;
GUB4:=COUNT(GUA1,8)>=3 AND COUNT(GUA2 OR GUA3,7)<=2 AND LLVBARS(L,8) =2 AND HHVBARS(H,8) >=7 AND GUA5;
GUB5:=COUNT(GUA1,8)>=3 AND COUNT(GUA2 OR GUA3,7)<=2 AND LLVBARS(L,8) =1 AND HHVBARS(H,8) >=7 AND GUA4;
GUB6:=COUNT(GUA1,9)>=3 AND COUNT(GUA2 OR GUA3,8)<=3 AND LLVBARS(L,9) =2 AND HHVBARS(H,9) >=8 AND GUA5;
GUB7:=COUNT(GUA1,9)>=3 AND COUNT(GUA2 OR GUA3,8)<=3 AND LLVBARS(L,9) =1 AND HHVBARS(H,9) >=8 AND GUA4;
GUB8:=COUNT(GUA1,10)>=3 AND COUNT(GUA2 OR GUA3,9)<=4 AND LLVBARS(L,10) =2 AND HHVBARS(H,10) >=9 AND GUA5;
GUB9:=COUNT(GUA1,10)>=3 AND COUNT(GUA2 OR GUA3,9)<=4 AND LLVBARS(L,10) =1 AND HHVBARS(H,10) >=9 AND GUA4;
GUB10:=COUNT(GUA1,11)>=3 AND COUNT(GUA2 OR GUA3,10)<=5 AND LLVBARS(L,11) =2 AND HHVBARS(H,11) >=10 AND GUA5;
选股:=GUB1 OR GUB2 OR GUB3 OR GUB4 OR GUB5 OR GUB6 OR GUB7 OR GUB8 OR GUB9 OR GUB10;
买:FILTER(选股=1,5);
{卖出公式:卖}
HGUA1:=H>REF(H,1) AND L>REF(L,1);
HGUA2:=H<REF(H,1) AND L>REF(L,1);
HGUA3:=H>REF(H,1) AND L<REF(L,1);
HGUA4:=H<REF(H,1) AND L<REF(L,1);
HGUA5:=REF(H,2) >H AND REF(L,2) >L AND REF(H,2) >REF(H,1) AND REF(L,2) <REF(L,1);
HGUB1:=COUNT(HGUA1,6)>=3 AND COUNT(HGUA2 OR HGUA3,5)=0 AND HHVBARS(H,6) =1 AND LLVBARS(L,6) >=5 AND HGUA4;
HGUB2:=COUNT(HGUA1,7)>=3 AND COUNT(HGUA2 OR HGUA3,6)=1 AND HHVBARS(H,7) =2 AND LLVBARS(L,7) >=6 AND HGUA5;
HGUB3:=COUNT(HGUA1,7)>=3 AND COUNT(HGUA2 OR HGUA3,6)=1 AND HHVBARS(H,7) =1 AND LLVBARS(L,7) >=6 AND HGUA4;
HGUB4:=COUNT(HGUA1,8)>=3 AND COUNT(HGUA2 OR HGUA3,7)<=2 AND HHVBARS(H,8) =2 AND LLVBARS(L,8) >=7 AND HGUA5;
HGUB5:=COUNT(HGUA1,8)>=3 AND COUNT(HGUA2 OR HGUA3,7)<=2 AND HHVBARS(H,8) =1 AND LLVBARS(L,8) >=7 AND HGUA4;
HGUB6:=COUNT(HGUA1,9)>=3 AND COUNT(HGUA2 OR HGUA3,8)<=3 AND HHVBARS(H,9) =2 AND LLVBARS(L,9) >=8 AND HGUA5;
HGUB7:=COUNT(HGUA1,9)>=3 AND COUNT(HGUA2 OR HGUA3,8)<=3 AND HHVBARS(H,9) =1 AND LLVBARS(L,9) >=8 AND HGUA4;
HGUB8:=COUNT(HGUA1,10)>=3 AND COUNT(HGUA2 OR HGUA3,9)<=4 AND HHVBARS(H,10) =2 AND LLVBARS(L,10) >=9 AND HGUA5;
HGUB9:=COUNT(HGUA1,10)>=3 AND COUNT(HGUA2 OR HGUA3,9)<=4 AND HHVBARS(H,10) =1 AND LLVBARS(L,10) >=9 AND HGUA4;
HGUB10:=COUNT(HGUA1,11)>=3 AND COUNT(HGUA2 OR HGUA3,10)<=5 AND HHVBARS(H,11) =2 AND LLVBARS(L,11) >=10 AND HGUA5;
H选股:=HGUB1 OR HGUB2 OR HGUB3 OR HGUB4 OR HGUB5 OR HGUB6 OR HGUB7 OR HGUB8 OR HGUB9 OR HGUB10;
卖:FILTER(H选股=1,3);
回复

使用道具 举报

0

主题

5

回帖

17

积分

新手上路

Rank: 1

积分
17
发表于 2023-12-26 10:02:02 | 显示全部楼层
谢谢了呀,辛苦了呀,支持呀!
回复

使用道具 举报

0

主题

13

回帖

33

积分

新手上路

Rank: 1

积分
33
发表于 2024-1-21 09:27:10 | 显示全部楼层
过来看看的
回复

使用道具 举报

0

主题

15

回帖

42

积分

新手上路

Rank: 1

积分
42
发表于 2024-2-13 15:00:31 | 显示全部楼层
好贴不能沉!
回复

使用道具 举报

3

主题

12

回帖

56

积分

注册会员

Rank: 2

积分
56
发表于 2024-2-17 13:35:22 | 显示全部楼层
支持一下:lol
回复

使用道具 举报

0

主题

5

回帖

19

积分

新手上路

Rank: 1

积分
19
发表于 2024-3-15 17:52:53 | 显示全部楼层
好人还是很多的!
回复

使用道具 举报

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

本版积分规则

全国统一客服电话
18976542384

24x7小时免费咨询

  • 官方在线客服

    QQ客服:股海浪子

    点击交谈

    QQ客服:beyond

    点击交谈

    QQ客服:明月

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

  • 添加客服微信

    可领取网站任一指标一个

  • 加入指标qq分享群

    免费领取资源

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