奇狐社區論壇
在這個頁面顯示本主題全部的 3 個文章

奇狐社區論壇 (http://www.chiefox.com.tw/bbs/index.php)
- 問題交流 (http://www.chiefox.com.tw/bbs/forumdisplay.php?forumid=28)
-- 區間取大量 (http://www.chiefox.com.tw/bbs/showthread.php?threadid=19932)


由 tsh 在 2016-04-18 19:57 發表:

區間取大量

請問我想標式圖例二個箭頭的大量(zig的高點到低點之間的大量),請問有*的應如何修改?謝謝版主!!


ZZ:ZIG(h,5);
CKU:=ZZ>ref(ZZ,1) and ZZ>refx(ZZ,1);
CKD:=ZZ<ref(ZZ,1) and ZZ<refx(ZZ,1);
UNum:=SUM(CKU,0);
UU:=CKU and UNum>=UNum[datacount]-1;
DNum:=SUM(CKD,0);
DD:=CKD and DNum>=DNum[datacount]-1;
DRAWSL(UU,h,0,15,0) pxdn2 linedot;
DRAWSL(DD,l,0,15,0) pxdn2 linedot;


*ckh:=hhv(ref(v,9),14);
*hNum:=SUM(CKh,0);
*hh:=CKh and hNum>=hNum[datacount]-1;

*DRAWICON(hh,l,8);


由 cgjj 在 2016-04-19 10:08 發表:

回覆: 區間取大量

引用:
最初由 tsh 發表
請問我想標式圖例二個箭頭的大量(zig的高點到低點之間的大量),請問有*的應如何修改?謝謝版主!!


ZZ:ZIG(h,5);
CKU:=ZZ>ref(ZZ,1) and ZZ>refx(ZZ,1);
CKD:=ZZ<ref(ZZ,1) and ZZ<refx(ZZ,1);
UNum:=SUM(CKU,0);
UU:=CKU and UNum>=UNum[datacount]-1;
DNum:=SUM(CKD,0);
DD:=CKD and DNum>=DNum[datacount]-1;
DRAWSL(UU,h,0,15,0) pxdn2 linedot;
DRAWSL(DD,l,0,15,0) pxdn2 linedot;


*ckh:=hhv(ref(v,9),14);
*hNum:=SUM(CKh,0);
*hh:=CKh and hNum>=hNum[datacount]-1;

*DRAWICON(hh,l,8);



ZZ:ZIG(h,5);
CKU:ZZ>ref(ZZ,1) and ZZ>refx(ZZ,1);
CKD:ZZ<ref(ZZ,1) and ZZ<refx(ZZ,1);
UNum:=SUM(CKU,0);
DNum:=SUM(CKD,0);
RK:=CKD and DNum=DNum[datacount];
LK:=CKU and DNum=DNum[datacount]-1;
SP:=HHVBARS(V,barslast(LK)+1);
SS:=SETVAL(RK,0,-SP,barpos-SP)=barpos;
VERTLINE(SS) linedot;

畫垂直線的那根(SS=1),就是您要的


由 tsh 在 2016-04-19 15:58 發表:

可以了,謝謝版主!!


全部時間均為台灣時間, 現在時間為17:36
在這個頁面顯示本主題全部的 3 個文章


Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.

簡愛洋行 製作 Copyright 2003-. All Rights Reserved.