分时支撑压力(源码通达信大智慧飞狐)
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2013-12-05 20:34:00
公式简介:
用前1日的中价涨跌幅测算当日的高点与低点,并不一定完全准确!
通达信,大智慧,飞狐都一样,先建名为Z01的指标
{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;
{大智慧-分时支撑压力}
POLYLINE(C,C),LINETHICK2,COLORBLACK,LAYER7;
DPSH:=INDEXC/HHV("Z01.大盘昨收#DAY",0);
DPC:=DYNAINFO(3)*DPSH;
POLYLINE(C>0,DPC),COLORMAGENTA,LAYER0;{大盘}
POLYLINE(C>0,C),COLORWHITE,LAYER0;
昨高:"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;
{飞狐-分时支撑压力}
H1:"Z01.AH#DAY",COLORGREEN;
L1:"Z01.AL#DAY",COLORGREEN;
ZZ:"Z01.AZ#DAY",COLORGREEN,LINEDOT;
H2:"Z01.AH1#DAY",COLORGREEN;
L2:"Z01.AL1#DAY",COLORGREEN;
昨高:"Z01.昨高#DAY",ColorC08000;
昨比:=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;
[url=http://www.goodgupiao.com/gupiaogongshi/31972.html][B]分时支撑压力(源码通达信大智慧飞狐)[/B][/url]