分时财神指标优化版!加了压力支撑线
先建个引用指标Z01
MID:=(C+H+L)/3;
CDP:=C+(MID-REF(MID,1))/8;
PT:=(ABS(C-O)+(H-L))/2;
AZ:REF(CDP,1);
AH:REF(CDP+PT/4,1);
AL:REF(CDP-PT/4,1);
AH1:REF(CDP+PT/2,1);
AL1:REF(CDP-PT/2,1);
HH:REF(HHV(C,3),1);
AH2:REF(CDP+PT,1);
AL2:REF(CDP-PT,1);
昨量:REF(V,1);
昨收:REF(C,1);
昨高:REF(H,1);
昨低:REF(L,1);
大盘昨收:REF(INDEXC,1);
再建一个 分时支撑压力指标
昨高:"Z01.昨高#DAY",COLORC08000;
H1:"Z01.AH#DAY",COLORGREEN;
L1:"Z01.AL#DAY",COLORGREEN;
ZZ:"Z01.AZ#DAY",COLORGREEN,DOTLINE;
H2:"Z01.AH1#DAY",COLORGREEN;
L2:"Z01.AL1#DAY",COLORGREEN;
昨比:=SUM(V,0)/"Z01.昨量#DAY";
STICKLINE(CROSS(昨比,0.2),H2,L2,0,0),COLORGREEN;
STICKLINE(CROSS(昨比,0.3),H2,L2,0,0),COLORYELLOW;
STICKLINE(CROSS(昨比,0.4),H2,L2,0,0),COLORGREEN;
STICKLINE(CROSS(昨比,0.5),H2,L2,0,0),COLORYELLOW;
STICKLINE(CROSS(昨比,0.6),H2,L2,0,0),COLORGREEN;
STICKLINE(CROSS(昨比,0.8),H2,L2,0,0),COLORGREEN;
STICKLINE(CROSS(昨比,1),H2,L2,1,0),COLORRED;
A:=CROSS(昨比,0.2) OR CROSS(昨比,0.3) OR CROSS(昨比,0.4) OR CROSS(昨比,0.5) OR
CROSS(昨比,0.6) OR CROSS(昨比,0.8) OR CROSS(昨比,1);
B:=INTPART(昨比*10)*10;
DRAWTEXT(A,L2*(1+DYNAINFO(13)/14),VAR2STR(B,0)),COLORYELLOW;
SJ:=BARSLAST(TIME<=931)+1;
SUM(V*C,SJ)/SUM(V,SJ),COLORYELLOW;
623588641.jpg
|