beyond202104 发表于 2023-8-28 16:43:17

竞价研究(源码,副图,通达信,贴图)


为实现一位朋友多项复杂的与竞价信息有关的分析选股要求,试着一步一步开发实现(因为复杂系统的开发就是成功一步再走下一步的)。请有兴趣者注意:这里公布的”竞价研究“-----只是初步成果,看个雏形,还要在短期内花时间进一步作改进!其中:开盘第一笔量和开盘第一笔主买,那位朋友给的公式是一样的,似乎有问题,请那位朋友校对。希望最终能实现你的期盼,并将最终结果与大家分享!

SUMV:=SUM(V,0);

竞价量:REF(SUMV,BARSLAST(TIME2<093000)),NODRAW; 开盘一分钟量:REF(SUMV,BARSLAST(TIME2<=093100)),NODRAW; {竞价量}SUMBUYV:=SUM(BUYVOL,0); {返回外盘即DYNAINFO(23)}竞价主买:REF(SUMBUYV,BARSLAST(TIME2<093000)),NODRAW;开盘一分主买:REF(SUMBUYV,BARSLAST(TIME2<=093100)),NODRAW;{竞价主买,即外盘量}开盘第一笔量:REF(V,BARSSINCE(TIME2>=093000)),NODRAW;开盘第一笔主买:REF(V,BARSSINCE(TIME2>=093000)),NODRAW;{第一次V不为0到现在的周期数}竞价换手:竞价量/CAPITAL * 100,NODRAW;竞价主买占比: 竞价主买/竞价量 * 100,NODRAW;开盘主买占比: 开盘一分主买/开盘一分钟量 * 100,NODRAW;开盘换手:开盘一分钟量/ CAPITAL * 100,NODRAW;{今日竞价数据显示}DRAWTEXT_FIX(1,0.05,0.1,0,'【日期:                        】'), COLORGREEN,LINETHICK2; DRAWTEXT_FIX(1,0.11,0.1,0,CON2STR(DATE+19000000,0)),COLORMAGENTA,LINETHICK2;DRAWTEXT_FIX(1,0.25,0.1,0,'今日竞价数据'),COLORYELLOW,LINETHICK3;DRAWTEXT_FIX(1,0.2,0.25,0,'竞价量:             '),COLORWHITE,LINETHICK2;DRAWTEXT_FIX(1,0.31,0.25,0,CON2STR(竞价量,2)),COLORMAGENTA,LINETHICK2;DRAWTEXT_FIX(1,0.2,0.40,0,'竞价主买量:          '),COLORWHITE,LINETHICK2;DRAWTEXT_FIX(1,0.31,0.40,0,CON2STR(竞价主买,2)),COLORMAGENTA,LINETHICK2;DRAWTEXT_FIX(1,0.2,0.55,0,'竞价换手:         '),COLORWHITE,LINETHICK2;DRAWTEXT_FIX(1,0.31,0.55,0,CON2STR(竞价换手,2)),COLORMAGENTA,LINETHICK2;DRAWTEXT_FIX(1,0.2,0.70,0,'竞价主买占比:   '),COLORWHITE,LINETHICK2;DRAWTEXT_FIX(1,0.31,0.70,0,CON2STR(竞价主买占比,2)),COLORMAGENTA,LINETHICK2;{今日开盘数据}DRAWTEXT_FIX(1,0.55,0.1,0,'今日开盘数据'),COLORYELLOW,LINETHICK3;DRAWTEXT_FIX(1,0.50,0.25,0,'开盘一分钟量:             '),COLORWHITE,LINETHICK2;DRAWTEXT_FIX(1,0.61,0.25,0,CON2STR(开盘一分钟量,2)),COLORMAGENTA,LINETHICK2;DRAWTEXT_FIX(1,0.50,0.40,0,'开盘一分主买:          '),COLORWHITE,LINETHICK2;DRAWTEXT_FIX(1,0.61,0.40,0,CON2STR(开盘一分主买,2)),COLORMAGENTA,LINETHICK2;DRAWTEXT_FIX(1,0.50,0.55,0,'开盘换手:         '),COLORWHITE,LINETHICK2;DRAWTEXT_FIX(1,0.61,0.55,0,CON2STR(开盘换手,2)),COLORMAGENTA,LINETHICK2;DRAWTEXT_FIX(1,0.50,0.70,0,'开盘主买占比:   '),COLORWHITE,LINETHICK2;DRAWTEXT_FIX(1,0.61,0.70,0,CON2STR(开盘主买占比,2)),COLORMAGENTA,LINETHICK2;DRAWTEXT_FIX(1,0.75,0.25,0,'开盘第一笔量:             '),COLORWHITE,LINETHICK2;DRAWTEXT_FIX(1,0.86,0.25,0,CON2STR(开盘第一笔量,2)),COLORMAGENTA,LINETHICK2;DRAWTEXT_FIX(1,0.75,0.40,0,'开盘第一笔主买:          '),COLORWHITE,LINETHICK2;

DRAWTEXT_FIX(1,0.86,0.40,0,CON2STR(开盘第一笔主买,2)),COLORMAGENTA,LINETHICK2;




探索发现蒂 发表于 2023-8-29 18:46:46

路过,支持一下啦

大地歌女妥 发表于 2023-12-17 01:45:41

支持一下:lol

嘿嘿嘿qqw 发表于 2023-12-29 21:21:22

好好 学习了 确实不错

123458104 发表于 2023-12-31 19:53:34

无量天尊!

杰尼亚斯痔 发表于 2024-1-29 06:10:00

好好 学习了 确实不错

卷发蚊子琅 发表于 2024-2-2 13:13:41

good!vevy good!

yangjun520TY 发表于 2024-3-3 02:50:09

好东西,收了

毛孩的小猪良 发表于 2024-3-3 03:24:35

我是来挣鲜花的,嘿嘿

blank2017C 发表于 2024-3-19 14:41:39

牛人一个
页: [1]
查看完整版本: 竞价研究(源码,副图,通达信,贴图)