奇狐社區論壇 總頁數 (2): « 1 [2]
在這個頁面顯示本主題全部的 21 個文章

奇狐社區論壇 (http://www.chiefox.com.tw/bbs/index.php)
- 問題交流 (http://www.chiefox.com.tw/bbs/forumdisplay.php?forumid=28)
-- 多分大K誇越昨日 (http://www.chiefox.com.tw/bbs/showthread.php?threadid=21400)


由 santienchang 在 2018-06-21 13:27 發表:

引用:
最初由 cgjj 發表
是 12:51 吧,不是 12:09,範例如下:

DESP:=barslast(Tradedate<>ref(Tradedate,1));
StPos:=datacount-DESP[datacount]-210;
StSp:=barslast(barpos=StPos);
SplitNum:=81;
KSt:=mod(StSp,SplitNum)=0;
KEd:=refx(KSt,1) or barpos=datacount;
KSP:=BARSLAST(KSt);
KO:ref(O,KSP) LINETHICK0 colormagenta;
KH:HHV(H,KSP+1) LINETHICK0 colormagenta;
KH:=SETVAL(KEd,KH,-KSP,KH);
KL:LLV(L,KSP+1) LINETHICK0 colormagenta;
KL:=SETVAL(KEd,KL,-KSP,KL);
KC:SETVAL(KEd,C,-KSP,C) LINETHICK0 colormagenta;
SpD2:=FLOOR(KSp/2);





行1:未定義標示符??

太棒了!!可是4年級生.不知如何使用?請指教謝謝!














MV:=SETVAL(KEd,0,-SpD2,barpos-SpD2);
MV:=barpos=MV;
PKM:=KSp>0;
PKMV:=PKM and MV;
PKLV:=KSt and Not(KEd);
PKRV:=PKM and KEd;
PARTLINE(PKM,KO) colorwhite;
PARTLINE(PKM,KC) colorwhite;
STICKLINE(PKMV,KH,MAX(KC,KO),0,0) colorwhite;
STICKLINE(PKMV,KL,MIN(KC,KO),0,0) colorwhite;
STICKLINE(PKLV,KC,KO,0,0) colorwhite;
STICKLINE(PKRV,KC,KO,0,0) colorwhite;


由 cgjj 在 2018-06-21 14:10 發表:

引用:
最初由 santienchang 發表
行1:未定義標示符??

太棒了!!可是4年級生.不知如何使用?請指教謝謝!



v5.0 版,請將 Tradedate 改為 Date


由 santienchang 在 2018-06-21 14:46 發表:

改了?? 我是 V5.0.91329版.有勞您謝謝!


行:26語法錯誤?

畫柱線(PKRV,KC,KO,0,0) colorwhite;<>向前引用(edate,1));


由 cgjj 在 2018-06-21 15:21 發表:

引用:
最初由 santienchang 發表
改了?? 我是 V5.0.91329版.有勞您謝謝!


行:26語法錯誤?

畫柱線(PKRV,KC,KO,0,0) colorwhite;<>向前引用(edate,1));



我給程式碼第26行,並沒有後面的東西!


由 santienchang 在 2018-06-22 10:50 發表:

測試OK! (收盤在開盤之上顯"紅K")
(收盤在開盤之下顯"綠K")
請協助即完成!.謝謝您!!


由 cgjj 在 2018-06-22 12:05 發表:

引用:
最初由 santienchang 發表
測試OK! (收盤在開盤之上顯"紅K")
(收盤在開盤之下顯"綠K")
請協助即完成!.謝謝您!!




PARTLINE(PKM,KO) colorwhite;
PARTLINE(PKM,KC) colorwhite;
STICKLINE(PKMV,KH,MAX(KC,KO),0,0) colorwhite;
STICKLINE(PKMV,KL,MIN(KC,KO),0,0) colorwhite;
STICKLINE(PKLV,KC,KO,0,0) colorwhite;
STICKLINE(PKRV,KC,KO,0,0) colorwhite;

改為
RK:=KC>KO;
PARTLINE(PKM and RK=1,KO) colorred;
PARTLINE(PKM and RK=1,KC) colorred;
STICKLINE(PKMV and RK=1,KH,MAX(KC,KO),0,0) colorred;
STICKLINE(PKMV and RK=1,KL,MIN(KC,KO),0,0) colorred;
STICKLINE(PKLV and RK=1,KC,KO,0,0) colorred;
STICKLINE(PKRV and RK=1,KC,KO,0,0) colorred;
PARTLINE(PKM and RK=0,KO) colorgreen;
PARTLINE(PKM and RK=0,KC) colorgreen;
STICKLINE(PKMV and RK=0,KH,MAX(KC,KO),0,0) colorgreen;
STICKLINE(PKMV and RK=0,KL,MIN(KC,KO),0,0) colorgreen;
STICKLINE(PKLV and RK=0,KC,KO,0,0) colorgreen;
STICKLINE(PKRV and RK=0,KC,KO,0,0) colorgreen;


全部時間均為台灣時間, 現在時間為07:19 總頁數 (2): « 1 [2]
在這個頁面顯示本主題全部的 21 個文章


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

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