通达信5分钟K线分时指标公式

[复制链接]
查看215 | 回复0 | 2021-8-20 20:11:45 | 显示全部楼层 |阅读模式

TT:=PERIOD=1 AND CURRBARSCOUNT=48;
OP:=OPEN#MIN5;
CL:=CLOSE#MIN5;
HI:=HIGH#MIN5;
LO:=LOW#MIN5;
OP15:=OPEN#MIN15;
CL15:=CLOSE#MIN15;
HI15:=HIGH#MIN15;
LO15:=LOW#MIN15;
T:=TIME-0930;
AA:=IF(T=3 OR T=8 OR T=13 OR T=73 OR T=78 OR T=83 OR T=88 OR T=93 OR T=98,1,0);
BB:=IF(T=103 OR T=108 OR T=113 OR T=118 OR T=123 OR T=128 OR T=173 OR T=178 OR T=183 OR T=188 OR T=193 OR T=198,1,0);
CC:=IF(T=373 OR T=378 OR T=383 OR T=388 OR T=393 OR T=398 OR T=403 OR T=408 OR T=413 OR T=418 OR T=423 OR T=428,1,0);
DD:=IF(T=473 OR T=478 OR T=483 OR T=488 OR T=493 OR T=498 OR T=503 OR T=508 OR T=513 OR T=518 OR T=523 OR T=528,1,0);
EE:=IF(AA OR BB OR CC OR DD,1,0);
STICKLINE(EE=1 AND CL>OP,CL,HI,0.8,0),COLORRED;
STICKLINE(EE=1 AND CL>OP,OP,LO,0.8,0),COLORRED;
STICKLINE(EE=1 AND CL>OP,OP,CL,3,1),COLORRED;
STICKLINE(EE=1 AND CL=OP,CL,HI,0.8,0),COLORWHITE;
STICKLINE(EE=1 AND CL=OP,OP,LO,0.8,0),COLORWHITE;
STICKLINE(EE=1 AND CL=OP,OP,CL+0.005,3,0),COLORWHITE;
STICKLINE(EE=1 AND CL<OP,OP,HI,0.8,0),COLORCYAN;
STICKLINE(EE=1 AND CL<OP,CL,LO,0.8,0),COLORCYAN;
STICKLINE(EE=1 AND CL<OP,OP,CL,3,0),COLORCYAN;
DRAWTEXT(TIME=0946 AND CL15>OP15,0.995*LO15,'↑'),COLORF365F3,LINETHICK3;
DRAWTEXT(TIME=0946 AND CL15<OP15,0.995*LO15,'↑'),COLOR1AA70E,LINETHICK3;
STICKLINE(TIME=0946 AND CL15>OP15,CL15,HI15,0.8,0),COLORF365F3;
STICKLINE(TIME=0946 AND CL15>OP15,OP15,CL15,6,1),COLORF365F3;
STICKLINE(TIME=0946 AND CL15>OP15,OP15,LO15,0.8,0),COLORF365F3;
DRAWTEXT(TIME=0946 AND CL15>OP15,0.985*LO15,'15分钟K线'),COLORF365F3;
STICKLINE(TIME=0946 AND CL15<OP15,CL15,HI15,0.8,0),COLOR1AA70E;
STICKLINE(TIME=0946 AND CL15<OP15,OP15,CL15,6,1),COLOR1AA70E;
STICKLINE(TIME=0946 AND CL15<OP15,OP15,LO15,0.8,0),COLOR1AA70E;
DRAWTEXT(TIME=0946 AND CL15<OP15,0.985*LO15,'15分钟K线'),COLOR1AA70E;

202108201234.jpg

202108201234.jpg

 

回复

使用道具 举报

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

本版积分规则