一线乾坤 主图叠加

[复制链接]
查看22 | 回复0 | 2022-6-27 22:24:13 | 显示全部楼层 |阅读模式

{一线乾坤: 主图叠加

参数1: N, 最小: 2, 最大: 100, 缺省: 48

}

C2:=REF(CLOSE,1);

非ST涨停:=IF((CLOSE-C2)*100/C2>=10-0.01*100/C2,1,0);

NUMBER:=COUNT(非ST涨停,BARSSINCE(非ST涨停)+1);

TDXSTEP195:DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.56,0.02,0,NUMBER),COLORWHITE;

TDXSTEP196:DRAWTEXT_FIX(CURRBARSCOUNT=1,0.45,0.02,0,25),COLORCYAN;

M5:EMA(CLOSE,5);

M21:MA(CLOSE,21),COLORCYAN;

DD:=EVERY(CLOSE<MA(CLOSE,21),20);

TDXSTEP197:DRAWICON(DD,M21,37);

HIGHN:=36;

AAB:=REF(HIGH,HIGHN)=HHV(HIGH,2*HIGHN+1);

QY:=BACKSET(AAB,HIGHN+1);

CC2:=FILTER(QY,HIGHN) AND HIGH=HHV(HIGH,HIGHN+1);

DDD:=BARSLAST(CC2);

GDTS:=IF(CC2,CURRBARSCOUNT,0);

DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);

GDCS1:=CONST(DINGBUTS);

T:DRAWLINE(CURRBARSCOUNT=GDCS1,HIGH,ISLASTBAR,REF(HIGH,GDCS1-1),1),DOTLINE,COLORCYAN;

TDXSTEP198:DRAWTEXT(CURRBARSCOUNT=GDCS1,HIGH*1.01,18),COLORCYAN;

2018381955232944.png

2018381955232944.png

20183819562358850.rar

2.46 KB, 下载次数: 0

售价: 6 金钱  [记录]  [购买]

20183819562358850.rar

回复

使用道具 举报

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

本版积分规则