主力标注主图指标 通达信公式(附图)

[复制链接]
查看91 | 回复0 | 2021-8-20 19:32:50 | 显示全部楼层 |阅读模式

间隔:=60;
DRAWKLINE(H,O,L,C);
{开盘价相同以及误差一分钱内选股}
天数O:REF(BARSLAST(CURRBARSCOUNT<=间隔 AND (O-CONST(O))=0 ),1)+1,COLORFFFF00,NODRAW;
开盘价支撑:DRAWLINE(CURRBARSCOUNT=CONST(天数O)+1,O,ISLASTBAR,O,0),COLORGREEN;
OXG:=(O+0.01)=开盘价支撑 OR (O-0.01)=开盘价支撑 OR O=开盘价支撑;
{最高价相同以及误差一分钱内选股}
天数H:REF(BARSLAST(CURRBARSCOUNT<=间隔 AND (H-CONST(H))=0 ),1)+1,COLORFFFF00,NODRAW;
最高价支撑:DRAWLINE(CURRBARSCOUNT=CONST(天数H)+1,H,ISLASTBAR,H,0),COLORGREEN;
HXG:=(H+0.01)=最高价支撑 OR (H-0.01)=最高价支撑 OR H=最高价支撑;
{最低价相同以及误差一分钱内选股}
天数L:REF(BARSLAST(CURRBARSCOUNT<=间隔 AND (L-CONST(L))=0 ),1)+1,COLORFFFF00,NODRAW;
最低价支撑:DRAWLINE(CURRBARSCOUNT=CONST(天数L)+1,L,ISLASTBAR,L,0),COLORGREEN;
LXG:=(L+0.01)=最低价支撑 OR (L-0.01)=最低价支撑 OR L=最低价支撑;
{收盘价相同以及误差一分钱内选股}
天数C:REF(BARSLAST(CURRBARSCOUNT<=间隔 AND (C-CONST(C))=0 ),1)+1,COLORFFFF00,NODRAW;
收盘价支撑:DRAWLINE(CURRBARSCOUNT=CONST(天数C)+1,C,ISLASTBAR,C,0),COLORGREEN;
CXG:=(C+0.01)=收盘价支撑 OR (C-0.01)=收盘价支撑 OR C=收盘价支撑;
总:=OXG OR HXG OR LXG OR CXG;
XG:IF(CURRBARSCOUNT=1 AND REF(C,BARSLAST(总)),1,0),COLORGREEN;
DRAWTEXT_FIX(1,0.05,0.16,0,'操作方法:个股当天不破出现任意其中一个支撑,当天看涨,跌破则看跌。'),COLORFFFF80;
DRAWTEXT_FIX(ISLASTBAR,0.0100,0.900,0,' 正气制作'),COLORWHITE;
DRAWTEXT_FIX(ISLASTBAR,0.0096,0.899,0,' 正气制作'),COLORRED;

14O2Q4641P-22N0.jpg

14O2Q4641P-22N0.jpg

 

回复

使用道具 举报

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

本版积分规则