• 18976542384

    工作时间

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

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

  • 手机版二维码

    手机快速找资源

  • 扫描二维码

    加入官方qq群

[源码] 多空双通道,通道类公式,同时适用于股票和期货

8
回复
129
查看
[复制链接]

1万

主题

0

回帖

4万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
49886
发表于 2023-8-28 16:37:57 | 显示全部楼层 |阅读模式
{公式名称: 多空通道}X_1:=STRCAT(HYBLOCK,1);X_2:=STRCAT(X_1,DYBLOCK);X_3:=STRCAT(X_2,1);DRAWTEXT_FIX(ISLASTBAR,0,0,0,STRCAT(X_3,GNBLOCK)),COLORRED;短上轨:EMA(HIGH,T),COLORRED;短下轨:EMA(LOW,T),COLORGREEN;NOTEXT短下轨0:IF(CLOSE>短下轨,短下轨,DRAWNULL),COLORRED;NOTEXT短上轨0:IF(CLOSE>短上轨,短上轨,DRAWNULL),COLORRED;NOTEXT短下轨1:IF(CLOSE<短下轨,短下轨,DRAWNULL),COLORGREEN;NOTEXT短上轨1:IF(CLOSE<短上轨,短上轨,DRAWNULL),COLORGREEN;STICKLINE(CLOSE>短上轨,短上轨,短下轨,0,0),COLORRED;STICKLINE(CLOSE<短下轨,短上轨,短下轨,0,0),COLORGREEN;X_4:=短上轨-短下轨;长上轨:EMA(HIGH,TT),COLORMAGENTA;长下轨:EMA(LOW,TT),COLORBLUE;NOTEXT长上轨0:IF(CLOSE>长上轨,长上轨,DRAWNULL),COLORMAGENTA;NOTEXT长下轨0:IF(CLOSE>长下轨,长下轨,DRAWNULL),COLORMAGENTA;NOTEXT长下轨1:IF(CLOSE<长下轨,长下轨,DRAWNULL),COLORBLUE;NOTEXT长上轨1:IF(CLOSE<长上轨,长上轨,DRAWNULL),COLORBLUE;STICKLINE(CLOSE>长上轨,长上轨,长下轨,0,0),COLORMAGENTA;STICKLINE(CLOSE<长下轨,长上轨,长下轨,0,0),COLORBLUE;X_5:=长上轨-长下轨;DRAWTEXT(REF(CLOSE,3)<REF(短下轨,3) OR REF(CLOSE,3)<REF(短上轨,3) AND (REF(CLOSE,2)<REF(短下轨,2) OR REF(CLOSE,2)<REF(短上轨,2)) AND (REF(CLOSE,1)<REF(短下轨,1) OR REF(CLOSE,1)<REF(短上轨,1)) AND CLOSE>短上轨 AND 短上轨<长下轨 AND COUNT(CLOSE<短下轨,6)>0,LOW*0.96,37),COLORMAGENTA;DRAWTEXT(REF(CLOSE,3)<REF(短下轨,3) OR REF(CLOSE,3)<REF(短上轨,3) AND (REF(CLOSE,2)<REF(短下轨,2) OR REF(CLOSE,2)<REF(短上轨,2)) AND (REF(CLOSE,1)<REF(短下轨,1) OR REF(CLOSE,1)<REF(短上轨,1)) AND CLOSE>短上轨 AND CLOSE>长上轨 AND COUNT(CLOSE<短下轨,6)>0,LOW*0.96,38),COLORMAGENTA;DRAWTEXT(REF(CLOSE,3)<REF(长下轨,3) OR REF(CLOSE,3)<REF(长上轨,3) AND (REF(CLOSE,2)<REF(长下轨,2) OR REF(CLOSE,2)<REF(长上轨,2)) AND (REF(CLOSE,1)<REF(长下轨,1) OR REF(CLOSE,1)<REF(长上轨,1)) AND CLOSE>长上轨 AND CLOSE>短上轨 AND COUNT(CLOSE<长下轨,6)>0,LOW*0.96,38),COLORMAGENTA;DRAWTEXT(REF(CLOSE,3)>REF(短上轨,3) OR REF(CLOSE,3)>REF(短下轨,3) AND (REF(CLOSE,2)>REF(短上轨,2) OR REF(CLOSE,2)>REF(短下轨,2)) AND (REF(CLOSE,1)>REF(短上轨,1) OR REF(CLOSE,1)>REF(短下轨,1)) AND CLOSE<短下轨 AND 短上轨>长上轨 AND CLOSE>长下轨 AND COUNT(CLOSE>短上轨,6)>0,HIGH*1.04,39),COLORMAGENTA;DRAWTEXT(REF(CLOSE,3)>REF(短上轨,3) OR REF(CLOSE,3)>REF(短下轨,3) AND (REF(CLOSE,2)>REF(短上轨,2) OR REF(CLOSE,2)>REF(短下轨,2)) AND (REF(CLOSE,1)>REF(短上轨,1) OR REF(CLOSE,1)>REF(短下轨,1)) AND CLOSE<短下轨 AND 短下轨<长下轨 AND COUNT(CLOSE>短上轨,6)>0,HIGH*1.04,40),COLORMAGENTA;DRAWTEXT(REF(CLOSE,3)>REF(长上轨,3) OR REF(CLOSE,3)>REF(长下轨,3) AND (REF(CLOSE,2)>REF(长上轨,2) OR REF(CLOSE,2)>REF(长下轨,2)) AND (REF(CLOSE,1)>REF(长上轨,1) OR REF(CLOSE,1)>REF(长下轨,1)) AND CLOSE<长下轨 AND CLOSE<短下轨 AND COUNT(CLOSE>长上轨,6)>0,HIGH*1.04,40),COLORMAGENTA;X_6:=CLOSE>REF(CLOSE,4);X_7:=BARSLASTCOUNT(X_6);X_8:=X_7=9;X_9:=ISLASTBAR AND BETWEEN(X_7,1,8);X_10:=(BACKSET(X_8>0,9) OR BACKSET(X_9>0,X_7))*X_7;DRAWTEXT(X_10>0,HIGH*1.001,VAR2STR(X_10,0)),COLORWHITE;DRAWTEXT(X_7=9,HIGH*1.001,6),COLORMAGENTA;X_11:=CLOSE<REF(CLOSE,4);X_12:=BARSLASTCOUNT(X_11);X_13:=X_12=9;X_14:=ISLASTBAR AND BETWEEN(X_12,1,8);X_15:=(BACKSET(X_13>0,9) OR BACKSET(X_14>0,X_12))*X_12;DRAWTEXT(X_15>0,LOW*0.998,VAR2STR(X_15,0)),COLORWHITE;DRAWTEXT(X_12=9,LOW*0.998,6),COLORMAGENTA;X_16:=TOPRANGE(HIGH);X_17:=LOWRANGE(LOW);X_18:=LLVBARS(HIGH,X_16);X_19:=LLVBARS(LOW,X_16);X_20:=HHVBARS(LOW,X_17);X_21:=HHVBARS(HIGH,X_17);X_22:=HHV(LOW,X_18+1)>LLV(HIGH,X_18+1);X_23:=HHV(LOW,X_20+1)>LLV(HIGH,X_20+1);X_24:=COUNT(LOW>=REF(LOW,1),X_19)>2 AND COUNT(HIGH>=REF(HIGH,1),X_18)>2;X_25:=COUNT(HIGH<=REF(HIGH,1),X_21)>2 AND COUNT(LOW<=REF(LOW,1),X_20)>2;X_26:=X_16 AND X_22 AND X_24 AND X_19>3;X_27:=X_17 AND X_23 AND X_25 AND X_21>3;X_28:=BARSLAST(X_26);X_29:=BARSLAST(X_27);X_30:=IF(X_28=0,X_29,X_28)>=3;X_31:=X_26 AND X_30 AND HIGH=HHV(HIGH,BARSLAST(X_27));X_32:=X_27 AND X_30 AND LOW=LLV(LOW,BARSLAST(X_26));NOTEXT上笔划线:DRAWLINE(X_32,LOW,X_31,HIGH,0),DOTLINE,COLORYELLOW;NOTEXT下笔划线:DRAWLINE(X_31,HIGH,X_32,LOW,0),DOTLINE,COLORYELLOW;X_33:=NOTEXT上笔划线 AND NOTEXT下笔划线;X_34:=IF(PERIOD=11,0.02,IF(PERIOD=10,0.02,IF(PERIOD=9,0.02,IF(PERIOD=8,0.001,IF(PERIOD=7,0.02,IF(PERIOD=6,0.01,IF(PERIOD=5,0.005,IF(PERIOD=4,0.002,IF(PERIOD=3,0.001,IF(PERIOD=2,0.001,IF(PERIOD=1,0.0003,IF(PERIOD=0,0.0002,0))))))))))));涨家数:INDEXADV,NODRAW,COLOR0080FF;跌家数:INDEXDEC,NODRAW,COLORGREEN;X_35:=(HIGH+LOW+CLOSE)/3;X_36:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));X_37:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-X_35);X_38:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);X_39:=IF(HIGH=LOW,1,X_35-MIN(CLOSE,OPEN));X_40:=VOL/IF(HIGH=LOW,4,HIGH-LOW);X_41:=X_36*X_40+X_37*X_40;X_42:=X_38*X_40+X_39*X_40;X_43:=DYNAINFO(23);X_44:=DYNAINFO(22);X_45:=IF(ISLASTBAR,X_42*240/FROMOPEN,X_42);X_46:=IF(ISLASTBAR,X_41*240/FROMOPEN,X_41);X_47:=IF(ISLASTBAR AND PERIOD=5,X_43,X_45);X_48:=IF(ISLASTBAR AND PERIOD=5,X_44,X_46);当日净买量:X_47-X_48,NODRAW,COLORRED; 彩虹桥-投资充电站
回复

使用道具 举报

0

主题

5

回帖

21

积分

新手上路

Rank: 1

积分
21
发表于 2023-8-31 20:20:02 | 显示全部楼层
找了很久的东西!
回复

使用道具 举报

0

主题

9

回帖

31

积分

新手上路

Rank: 1

积分
31
发表于 2023-9-8 03:16:13 | 显示全部楼层
爱你,么么哒,哈哈……
回复

使用道具 举报

0

主题

16

回帖

44

积分

新手上路

Rank: 1

积分
44
发表于 2023-9-26 11:47:37 | 显示全部楼层
我抢、我抢、我抢沙发~
回复

使用道具 举报

0

主题

6

回帖

22

积分

新手上路

Rank: 1

积分
22
发表于 2023-9-30 22:14:08 | 显示全部楼层
good!vevy good!
回复

使用道具 举报

0

主题

14

回帖

38

积分

新手上路

Rank: 1

积分
38
发表于 2023-12-3 13:27:43 | 显示全部楼层
不错的内容!
回复

使用道具 举报

0

主题

13

回帖

39

积分

新手上路

Rank: 1

积分
39
发表于 2024-3-4 16:51:56 | 显示全部楼层
感谢楼主分享好资源
回复

使用道具 举报

0

主题

5

回帖

20

积分

新手上路

Rank: 1

积分
20
发表于 2024-3-5 15:16:35 | 显示全部楼层
已收藏!
回复

使用道具 举报

0

主题

8

回帖

23

积分

新手上路

Rank: 1

积分
23
发表于 2024-3-14 00:40:40 | 显示全部楼层
路过,学习下
回复

使用道具 举报

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

本版积分规则

全国统一客服电话
18976542384

24x7小时免费咨询

  • 官方在线客服

    QQ客服:股海浪子

    点击交谈

    QQ客服:beyond

    点击交谈

    QQ客服:明月

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

  • 添加客服微信

    可领取网站任一指标一个

  • 加入指标qq分享群

    免费领取资源

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