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


由 hwangmingshing 在 2011-05-22 17:14 發表:

請問如何引用自設的指標

{Red & Black,漲紅跌綠}

OP:=REF( CLOSE , 1 ) ;
OP2:=REF( CLOSE , 2 ) ;

CL:=CLOSE ;

STICKLINE( CL>OP , CL , OP , 8 , 1 ) , Color5050FF;
STICKLINE( CL=OP , CL , OP , 8 , 0 ) , Color33BBFF;
STICKLINE( CL<OP , CL , OP , 8 , 0 ) , ColorFFFF00;

STICKLINE( CL>OP and CL<=refHMSrb(high.2) , CL , OP , 8 , 1 ) , ColorGreen;
<=引用HMSrb指標前2根柱棒的高點 (例:附圖的3/16 4/13)
STICKLINE( CL<OP and CL>=refHMSrb(low.2) , CL , OP , 8 , 1 ) , ColorBlue;
<=引用HMSrb指標前2根柱棒的低點 (例:附圖的3/28 4/21)

非常感謝指導



昨收:OP, Linethick0, Precision2;
今收:CL, Linethick0, Precision2;

__________________
hwangmingshing


由 hwangmingshing 在 2011-05-22 17:28 發表:

再補上附圖3

2498 的附圖 2011/03/10 ~ 2011/05/20

__________________
hwangmingshing


由 cgjj 在 2011-05-23 09:18 發表:

回覆: 請問如何引用自設的指標

引用:
最初由 hwangmingshing 發表
{Red & Black,漲紅跌綠}

OP:=REF( CLOSE , 1 ) ;
OP2:=REF( CLOSE , 2 ) ;

CL:=CLOSE ;

STICKLINE( CL>OP , CL , OP , 8 , 1 ) , Color5050FF;
STICKLINE( CL=OP , CL , OP , 8 , 0 ) , Color33BBFF;
STICKLINE( CL<OP , CL , OP , 8 , 0 ) , ColorFFFF00;

STICKLINE( CL>OP and CL<=refHMSrb(high.2) , CL , OP , 8 , 1 ) , ColorGreen;
<=引用HMSrb指標前2根柱棒的高點 (例:附圖的3/16 4/13)
STICKLINE( CL<OP and CL>=refHMSrb(low.2) , CL , OP , 8 , 1 ) , ColorBlue;
<=引用HMSrb指標前2根柱棒的低點 (例:附圖的3/28 4/21)

非常感謝指導



昨收:OP, Linethick0, Precision2;
今收:CL, Linethick0, Precision2;



HMSRB 公式, 不能去引用HMSRB 公式本身
若您要取當前K棒的前2根計算出的數值, 不需要用引用的方式處理

您的需求可用以下的方式處理
將 refHMSrb(high.2) 換為 ref(MAX(OP,CL),2)
將 refHMSrb(low.2) 換為 ref(MIN(OP,CL),2)


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


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

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