分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册
当前位置:分析家公式网股票软件通达信 → 一键转帖:日周空心K线主图

软件名称:[B]日周空心K线主图[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/
软件语言:简体中文
授权方式:免费版
软件大小:4.00 KB
官方主页:Home Page
更新时间:2013-08-03 04:49:23
软件简介:

日周空心K线主图

来自:理想论坛(55188.com) 作者:清风F 浏览:1819次
先建一 引用 公式

引用公式名称 Y01

ND1970:=(YEAR-1970)*365+INTPART((YEAR-1972)/4)-IF(INTPART(YEAR/4)=YEAR/4,1,0)+DAY+(MONTH-1)*30+IF(MONTH<=8,INTPART(MONTH/2),INTPART((MONTH-7)/2)+4)-IF(MONTH>2 AND INTPART(YEAR/4)=YEAR/4,1,IF(MONTH>2 AND NOT(INTPART(YEAR/4)=YEAR/4),2,0));
C1:C;
O1:REF(O,BARSLAST(ND1970-REF(ND1970,1)>WEEKDAY-REF(WEEKDAY,1)));
H1:HHV(H,BARSLAST(ND1970-REF(ND1970,1)>WEEKDAY-REF(WEEKDAY,1))+1);
L1:LLV(L,BARSLAST(ND1970-REF(ND1970,1)>WEEKDAY-REF(WEEKDAY,1))+1);
RQ:CURRBARSCOUNT;
 

再建一主图公式  N值可以随心改变 而改变显示周K数量
N:=5;
WO1:="Y01.O1#WEEK";
WC:="Y01.C1#WEEK";
WH:="Y01.H1#WEEK";
WL:="Y01.L1#WEEK";
WQ:="Y01.RQ#WEEK";
K1:=WO1=REF(WO1,1) AND WC=REF(WC,1) AND WH=REF(WH,1) AND WL=REF(WL,1);
K3:=REF(C,1)=DYNAINFO(3) AND O=DYNAINFO(4) AND C=DYNAINFO(7) AND H=DYNAINFO(5) AND L=DYNAINFO(6);
DD:=REF(BARSLAST(K1=0)+1,1),LINETHICK0;
DD1:=CROSS(BACKSET((K1=0 OR K3) AND DD=5,4),0.5),NODRAW;
DD2:=CROSS(BACKSET((K1=0 OR K3) AND (DD=4 OR DD=3),3),0.5),NODRAW;
DD3:=CROSS(BACKSET((K1=0 OR K3) AND DD<=2,2),0.5),LINETHICK0;
BK1:=DD1 OR DD2 OR DD3;
BK2:=CROSS(BACKSET(K1=0,2),0.5);
BK3:=CROSS(BACKSET(K1=0 AND REF(K1=0,1),2),0.5);
WO:=IF(BARSLAST(K1=0)=0,O,REF(O,BARSLAST(K1=0))),NODRAW;
K0:=WC>WO OR (WC=WO AND WC>REF(WC,BARSLAST(K1=0)+1));
STICKLINE(PERIOD=5 AND WQ<N AND K0 AND BK1,WH,WC,0,0),COLORBROWN;
STICKLINE(PERIOD=5 AND WQ<N AND K0 AND BK1,WO,WL,0,0),COLORBROWN;
STICKLINE(PERIOD=5 AND WQ<N AND K0 AND K1=0,WC,WO,0,0),COLORBROWN;
STICKLINE(PERIOD=5 AND WQ<N AND K0 AND (BK2 OR K3),WC,WO,0,0),COLORBROWN;
STICKLINE(PERIOD=5 AND WQ<N AND K0 AND ((K1 AND BK2=0 AND K3=0) OR BK3),WC,WC,8,1),COLORBROWN;
STICKLINE(PERIOD=5 AND WQ<N AND K0 AND ((K1 AND BK2=0 AND K3=0) OR BK3),WO,WO,8,1),COLORBROWN;
STICKLINE(PERIOD=5 AND WQ<N AND NOT(K0) AND BK1,WH,WO,0,0),COLORGRAY;
STICKLINE(PERIOD=5 AND WQ<N AND NOT(K0) AND BK1,WC,WL,0,0),COLORGRAY;
STICKLINE(PERIOD=5 AND WQ<N AND NOT(K0) AND K1=0,WC,WO,0,0),COLORGRAY;
STICKLINE(PERIOD=5 AND WQ<N AND NOT(K0) AND (BK2 OR K3),WC,WO,0,0),COLORGRAY;
STICKLINE(PERIOD=5 AND WQ<N AND NOT(K0) AND ((K1 AND BK2=0 AND K3=0) OR BK3),WC,WC,8,1),COLORGRAY;
STICKLINE(PERIOD=5 AND WQ<N AND NOT(K0) AND ((K1 AND BK2=0 AND K3=0) OR BK3),WO,WO,8,1),COLORGRAY;


[url=http://www.70822.com/soft/sort012/sort018/down-64574.html]日周空心K线主图[/url]

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