標示某根K線位置的HTS語法 - 財經
By Emily
at 2009-07-10T20:38
at 2009-07-10T20:38
Table of Contents
PARAMETER:長度(60)
CONDITION1 = ABS(LOW - OPEN) >= 15 OR ABS(LOW - CLOSE) >= 15
CONDITION2 = ABS(LOW - OPEN)/ABS(CLOSE - OPEN) >= 3
CONDITION3 = ABS(LOW - CLOSE)/(CLOSE - OPEN) >= 3
CONDITION4 = ABS(HIGH - OPEN)/(CLOSE - OPEN) <= 2
CONDITION5 = LOW=LOWEST(LOW,長度)
IF CONDITION1 AND ( CONDITION2 OR CONDITION3 ) AND CONDITION5 THEN
VALUE1 = BARNUMBER
END IF
PRINT(CDATE(DATE),CTIME(TIME),VALUE1,"=VALUE1",BARNUMBER,"=BARNUMBER")
以上是小弟HTS的程式碼
我的問題是 當條件成立時的VALUE1
為啥不會儲存當時的K線個數(從最左邊數來)
--
CONDITION1 = ABS(LOW - OPEN) >= 15 OR ABS(LOW - CLOSE) >= 15
CONDITION2 = ABS(LOW - OPEN)/ABS(CLOSE - OPEN) >= 3
CONDITION3 = ABS(LOW - CLOSE)/(CLOSE - OPEN) >= 3
CONDITION4 = ABS(HIGH - OPEN)/(CLOSE - OPEN) <= 2
CONDITION5 = LOW=LOWEST(LOW,長度)
IF CONDITION1 AND ( CONDITION2 OR CONDITION3 ) AND CONDITION5 THEN
VALUE1 = BARNUMBER
END IF
PRINT(CDATE(DATE),CTIME(TIME),VALUE1,"=VALUE1",BARNUMBER,"=BARNUMBER")
以上是小弟HTS的程式碼
我的問題是 當條件成立時的VALUE1
為啥不會儲存當時的K線個數(從最左邊數來)
--
Tags:
財經
All Comments
By Edwina
at 2009-07-14T20:49
at 2009-07-14T20:49
By Isla
at 2009-07-17T08:54
at 2009-07-17T08:54
By Harry
at 2009-07-19T14:24
at 2009-07-19T14:24
By Jacob
at 2009-07-21T04:46
at 2009-07-21T04:46
Related Posts
標示某根K線位置的HTS語法
By Ophelia
at 2009-07-10T15:58
at 2009-07-10T15:58
HTS畫圖
By Kelly
at 2009-07-10T12:22
at 2009-07-10T12:22
程式交易後的困惑
By Margaret
at 2009-07-10T00:28
at 2009-07-10T00:28
請教均線走平濾掉及EMA的扣抵值計算
By Catherine
at 2009-07-09T23:35
at 2009-07-09T23:35
時間停損
By Eden
at 2009-07-09T22:29
at 2009-07-09T22:29