通达信选股公式 同时存在 向下跳空缺口 向上跳空缺口 出现缺口时 股价大致相同或相近差距<5%
选股公式:
{ 缺口}
YZZT:=C=O AND C>REF(C,1) AND (C-REF(C,1))/REF(C,1)>0.;
YZDT:=C=O AND C<REF(C,1) AND (REF(C,1)-C)/REF(C,1)>0.;
SSQK:=O>REF(H,1) AND C>O AND NOT(YZZT);
XDQK:=O<REF(L,1) AND C<O AND NOT(YZDT);
TSCZ:= EXIST(SSQK,) AND EXIST(XDQK,);
SSQKJG:= REF(H,BARSLAST(SSQK));
XDQKJG:= REF(H,BARSLAST(XDQK));
JGJJ:= ABS(SSQKJG-XDQKJG)/SSQKJG<=0.;
QKXG: TSCZ AND JGJJ;
主图公式:
{ 缺口}
YZZT:=C=O AND C>REF(C,1) AND (C-REF(C,1))/REF(C,1)>0.;
YZDT:=C=O AND C<REF(C,1) AND (REF(C,1)-C)/REF(C,1)>0.;
SSQK:O>REF(H,1) AND C>O AND NOT(YZZT),NODRAW;
XDQK:O<REF(L,1) AND C<O AND NOT(YZDT),NODRAW;
DRAWTEXT(SSQK,O,'SS'),COLORYELLOW;
DRAWTEXT(XDQK,O,'XD'),COLORYELLOW;
TSCZ:= EXIST(SSQK,) AND EXIST(XDQK,);
SSQKJG:= REF(H,BARSLAST(SSQK));
XDQKJG:= REF(H,BARSLAST(XDQK));
JGJJ:= ABS(SSQKJG-XDQKJG)/SSQKJG<=0.;
QKXG:= TSCZ AND JGJJ;
请高手编辑一个通达信跳空缺口显示缺口数值的公式
跳空缺口STICKLINE(L>REF(H,1),REF(H,1),L,5,-1),COLORGREEN;
STICKLINE(H<REF(L,1),REF(L,1),H,5,-1),COLORGREEN;
TT1:=STRCAT(STRCAT(CON2STR(REF(H,1),2),'---'),CON2STR(L,2));
TT2:=STRCAT(STRCAT(CON2STR(H,2),'---'),CON2STR(REF(L,1),2));
DRAWTEXT(L>REF(H,1),(L+REF(H,1))/2,TT1),COLORYELLOW;
DRAWTEXT(H<REF(L,1),(H+REF(L,1))/2,TT2),COLORGREEN;
---------------------------------
其实通达信自带缺口提示,比自己编写方便多了,信跳股市买入指标源码你可以进 “设置4”看看:
通达信跳空缺口选股
刚修改了下
M:=5;{ 5是空缺口指空缺口中国燕窝溯源码密码天数可以改动,5日内(最高价+最低价+收盘价)的标源共享水站程序源码平均价一直大于高开前天的最低价}
M1:=L>REF(H,1);
M2:=BARSLAST(M1)<=;
M3:=(H+L+C)/3;
M4:=EVERY(M3>REF(L,M2),M);
EXIST(M2 AND M4,)
2024-11-23 11:56
2024-11-23 11:17
2024-11-23 10:13
2024-11-23 10:08
2024-11-23 10:00