源码全——通达信【5分钟K线分时】指标公...

源码全——通达信【5分钟K线分时】指标公式

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;< p="">

STICKLINE(EE=1 AND CL<op,cl,lo,0.8,0),colorcyan;< p="">

STICKLINE(EE=1 AND CL<op,op,cl,3,0),colorcyan;< p="">

DRAWTEXT(TIME=0946 AND CL15>OP15,0.995*LO15,'↑'),COLORF365F3,LINETHICK3;

DRAWTEXT(TIME=0946 AND CL15<op15,0.995*lo15,'↑'),color1aa70e,linethick3;< p="">

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;< p="">

STICKLINE(TIME=0946 AND CL15<op15,op15,cl15,6,1),color1aa70e;< p="">

STICKLINE(TIME=0946 AND CL15<op15,op15,lo15,0.8,0),color1aa70e;< p="">

DRAWTEXT(TIME=0946 AND CL15<op15,0.985*lo15,'15分钟k线'),color1aa70e;< p="">

(0)

相关推荐