自用的一个分时图,可以用在分时主图上,但我个人觉得用在副图上效果更直观,有图有真相,但首先申明指标不是万能的,只是一个参考综合工具
N:=150;
BU:=BARSLAST((CLOSE = HHV(CLOSE,N)));
SE:=BARSLAST((CLOSE = LLV(CLOSE,N)));
KK1:=SE;
KK2:=BU;
LM1:=SE;
LM2:=BU;
OK:=((KK1 > KK2) AND (LM1 > LM2));
OK1:=((KK1 > KK2) AND (LM1 < LM2));
NOK:=((KK2 > KK1) AND (LM2 > LM1));
NOK1:=((KK2 > KK1) AND (LM2 < LM1));
STICKLINE(OK1,CLOSE,OPEN,8,0),colorFFFF00;
STICKLINE(OK1,HIGH,LOW,0,0),colorFFFF00;
STICKLINE(OK,CLOSE,OPEN,8,0),colorred;
STICKLINE(OK,HIGH,LOW,0,0),colorred;
STICKLINE(NOK,CLOSE,OPEN,8,0),colorFFFF00;
STICKLINE(NOK,HIGH,LOW,0,0),colorFFFF00;
STICKLINE(NOK1,CLOSE,OPEN,8,0),colorred;
STICKLINE(NOK1,HIGH,LOW,0,0),colorred;
DRAWICON(CROSS(KK1,KK2),(OPEN * 0.9999),1);
DRAWICON(CROSS(KK2,KK1),(OPEN * 1.0009),2);
DRAWTEXT(CROSS(KK1,KK2),(OPEN * 0.99),'跟\n进'),colorred;