奇狐社區論壇
在這個頁面顯示本主題全部的 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=19509)


由 mead 在 2015-10-12 21:59 發表:

隨游標顯示

請問版主;下面公式我要隨游標顯示要如何改?
均5:ma(c,5);
均10:ma(c,10);
均20:ma(c,20);
DRAWTEXTEX(均5>均10 and 均10>均20 and BARPOS=SYSPARM(1),1,800,90,'均線:多頭排列'),colorred;
DRAWTEXTEX(均10>均5 and 均5>均20 and BARPOS=SYSPARM(1),1,800,90,'均線:短線回檔'),colormagenta;
.
.
.
.


謝謝 感恩


由 cgjj 在 2015-10-12 22:34 發表:

回覆: 隨游標顯示

引用:
最初由 mead 發表
請問版主;下面公式我要隨游標顯示要如何改?
均5:ma(c,5);
均10:ma(c,10);
均20:ma(c,20);
DRAWTEXTEX(均5>均10 and 均10>均20 and BARPOS=SYSPARM(1),1,800,90,'均線:多頭排列'),colorred;
DRAWTEXTEX(均10>均5 and 均5>均20 and BARPOS=SYSPARM(1),1,800,90,'均線:短線回檔'),colormagenta;

謝謝 感恩



試試
原碼:
均5:ma(c,5); 均10:ma(c,10); 均20:ma(c,20); 多頭排列:=均5>均10 and 均10>均20; 短線回檔:=均10>均5 and 均5>均20; PP:=SYSPARAM(1); if PP<1 or PP>datacount then PP:=datacount; DRAWTEXTEX(多頭排列[PP],1,800,90,'均線:多頭排列'),colorred; DRAWTEXTEX(短線回檔[PP],1,800,90,'均線:短線回檔'),colormagenta;


由 mead 在 2015-10-12 23:44 發表:

回覆: 回覆: 隨游標顯示

引用:
最初由 cgjj 發表
試試
原碼:
均5:ma(c,5); 均10:ma(c,10); 均20:ma(c,20); 多頭排列:=均5>均10 and 均10>均20; 短線回檔:=均10>均5 and 均5>均20; PP:=SYSPARAM(1); if PP<1 or PP>datacount then PP:=datacount; DRAWTEXTEX(多頭排列[PP],1,800,90,'均線:多頭排列'),colorred; DRAWTEXTEX(短線回檔[PP],1,800,90,'均線:短線回檔'),colormagenta;



謝謝版主這麼快回覆

試試

感恩


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


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

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