 |
tsh
資深會員

註冊日期: Feb 2016
來 自:
文章數量: 220 |
區間取大量
請問我想標式圖例二個箭頭的大量(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);
tsh 附帶上了此圖片:
|
|
向版主報告此篇 |  |
|
2016-04-18 19:57 |
|
|
|  |
 |
cgjj
總版主

註冊日期: Oct 2003
來 自:
文章數量: 18091 |
回覆: 區間取大量
引用: 最初由 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),就是您要的
|
|
向版主報告此篇 |  |
|
2016-04-19 10:08 |
|
|
|  |
本站所有內容未經作者授權禁止轉貼節錄, 發表言論僅供參考勿作為投資決策依據。瀏覽本站請使用 IE 5.5 以上版本, 最佳瀏覽解析度 1024 x 768 全彩。
|
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved. 聯絡我們
|