時間停損 - 財經
By Regina
at 2009-07-10T23:08
at 2009-07-10T23:08
Table of Contents
※ 引述《lyndonxxx (lyndon)》之銘言:
: HTS如何寫出時間停損
: 例如當沖系統中 在收盤前平倉的邏輯
: 小弟是程式菜鳥 Orz
if time=134500 and currentcontracts<>0 then
exitlong this bar at market
exitshort this bar at market
end if
if q_time>=134300 and q_time<=134400 and currentcontracts<>0 then
exitlong this bar at market
exitshort this bar at market
end if
--
: HTS如何寫出時間停損
: 例如當沖系統中 在收盤前平倉的邏輯
: 小弟是程式菜鳥 Orz
if time=134500 and currentcontracts<>0 then
exitlong this bar at market
exitshort this bar at market
end if
if q_time>=134300 and q_time<=134400 and currentcontracts<>0 then
exitlong this bar at market
exitshort this bar at market
end if
--
Tags:
財經
All Comments
Related Posts
標示某根K線位置的HTS語法
By Emily
at 2009-07-10T20:38
at 2009-07-10T20:38
標示某根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