時間停損 - 財經
By Ethan
at 2009-07-09T08:32
at 2009-07-09T08:32
Table of Contents
※ 引述《lyndonxxx (lyndon)》之銘言:
: HTS如何寫出時間停損
: 例如當沖系統中 在收盤前平倉的邏輯
: 小弟是程式菜鳥 Orz
TS的寫法
if time > 1335(也可能1340,看自己怎麼訂) then
begin
if marketposition > 0 then
exitlong market;
if marketposition < 0 then
exitshort market;
end;
HTS的寫法應該也差不多吧
--
: HTS如何寫出時間停損
: 例如當沖系統中 在收盤前平倉的邏輯
: 小弟是程式菜鳥 Orz
TS的寫法
if time > 1335(也可能1340,看自己怎麼訂) then
begin
if marketposition > 0 then
exitlong market;
if marketposition < 0 then
exitshort market;
end;
HTS的寫法應該也差不多吧
--
Tags:
財經
All Comments
By Olivia
at 2009-07-12T21:03
at 2009-07-12T21:03
Related Posts
程式交易後的困惑
By Wallis
at 2009-07-09T03:44
at 2009-07-09T03:44
程式交易後的困惑
By Enid
at 2009-07-09T00:17
at 2009-07-09T00:17
程式交易後的困惑
By Emily
at 2009-07-08T23:30
at 2009-07-08T23:30
時間停損
By Necoo
at 2009-07-08T22:04
at 2009-07-08T22:04
HTS畫圖
By Odelette
at 2009-07-08T17:11
at 2009-07-08T17:11