分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]先发个小指标-分时支撑压力(源码通达信大智慧飞狐)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:1.00 KB
官方主页:Home Page
更新时间:2013-12-06 02:24:02
软件简介:

先发个小指标-分时支撑压力(源码通达信大智慧飞狐)

用前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.70822.com/soft/sort013/sort05/down-67957.html]先发个小指标-分时支撑压力(源码通达信大智慧飞狐)[/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:15.62500 毫秒