![]() |
在這個頁面顯示本主題全部的 6 個文章 |
奇狐社區論壇 (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=22871)
跳空缺口未補
版主您好,
我想找出K線中最近一個向上跳空缺口未補的位置應該如何寫呢? 麻煩指導,謝謝.
回覆: 跳空缺口未補
引用:
最初由 picabu 發表
版主您好,
我想找出K線中最近一個向上跳空缺口未補的位置應該如何寫呢? 麻煩指導,謝謝.
原碼:
HH:=H; LL:=L; CK:=L>ref(H,1); JPos:=0; for i=datacount downto lbound(CK) do begin if CK[i] then begin for j=i+1 to datacount do if LL[j]<=HH[i-1] then break; if j=datacount+1 then begin JPos:=i; break; end; end; end; VERTLINE(barpos=JPos) linedot;
謝謝版主的指導
回覆: 回覆: 跳空缺口未補
引用:
最初由 cgjj 發表
原碼:
HH:=H; LL:=L; CK:=L>ref(H,1); JPos:=0; for i=datacount downto lbound(CK) do begin if CK[i] then begin for j=i+1 to datacount do if LL[j]<=HH[i-1] then break; if j=datacount+1 then begin JPos:=i; break; end; end; end; VERTLINE(barpos=JPos) linedot;
回覆: 回覆: 回覆: 跳空缺口未補
引用:
最初由 picabu 發表
再請問版主一下,
如果我的跳空缺口是以今日的最低價高於昨日的收盤價為定義,那是不是把
CK:=L>ref(H,1); JPos:=0;改成
CK:=L>ref(C,1); JPos:=0;就好呢?
還有程式這行
for j=i+1 to datacount do if LL[j]<=HH[i-1] then break;
能幫我說明一下程序的意思,謝謝您
謝謝版主,我懂了.
全部時間均為台灣時間, 現在時間為00:47 | 在這個頁面顯示本主題全部的 6 個文章 |
Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.
簡愛洋行 製作 Copyright 2003-. All Rights Reserved.