先上公式源码:
{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;
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;
大盘的走势对很多投资者来说是个深不可测的东西,但经过长时间的研究与观察,发现开盘半小时的分时走势对大盘当日走势有很大的诱导作用,甚至有时开盘半小时的走势完全成了当天大盘走势的翻版。
一般情况下,对于上涨趋势的大盘开盘后半小时之内都会一浪高过一浪的攀高,攀高到 10点,如果继续攀高,这种情况下说明当天大盘震荡走高,股指大涨;如果10点后大盘掉头向下 ,可预期尾市大盘有短线回吐压力,但全天的上涨趋势是肯定的。
开盘后30分钟内大盘分时走势逐级盘下,一浪比一浪低,盘中反弹高度不能高出下降趋势线,反弹发乏力,直至10点半后仍然没有一波有利的反弹,或有强力反弹但最终不能高出开盘后 30分钟K线实体部分,可以判定当日大盘为跌势,股指下调。