日盛 HTS4000 語法求助 - 財經
By Joseph
at 2015-06-16T20:34
at 2015-06-16T20:34
Table of Contents
交易邏輯是,盤中有低於下限價,尾盤站上下限價,尾盤進多單,隔天開盤就出掉。
出錯的情況
假如下限價是9000,10點的時候8990,11點的時候9010(此時他就會進單),
結果尾盤還是低於9000。
所以想請問熟悉語法的大大,我有沒有辦法加入時間限制。
我的交易是日K。
以下是我寫在日盛hts4000裡的語法。
if l<downline and c>downline then
buy this bar
end if
if barssinceentry(0) = 1 then
exitlong this bar
end if
--
出錯的情況
假如下限價是9000,10點的時候8990,11點的時候9010(此時他就會進單),
結果尾盤還是低於9000。
所以想請問熟悉語法的大大,我有沒有辦法加入時間限制。
我的交易是日K。
以下是我寫在日盛hts4000裡的語法。
if l<downline and c>downline then
buy this bar
end if
if barssinceentry(0) = 1 then
exitlong this bar
end if
--
Tags:
財經
All Comments
By Suhail Hany
at 2015-06-17T10:36
at 2015-06-17T10:36
By Queena
at 2015-06-20T02:40
at 2015-06-20T02:40
By Caroline
at 2015-06-23T14:29
at 2015-06-23T14:29
By Emma
at 2015-06-23T16:40
at 2015-06-23T16:40
By Olive
at 2015-06-25T07:38
at 2015-06-25T07:38
By Olivia
at 2015-06-27T20:56
at 2015-06-27T20:56
By George
at 2015-07-02T04:15
at 2015-07-02T04:15
By Ula
at 2015-07-06T22:07
at 2015-07-06T22:07
By Ida
at 2015-07-11T11:59
at 2015-07-11T11:59
By Mia
at 2015-07-12T15:34
at 2015-07-12T15:34
Related Posts
multichart語法
By Andy
at 2015-06-13T23:43
at 2015-06-13T23:43
multichart語法
By Audriana
at 2015-06-13T22:41
at 2015-06-13T22:41
請問群益API摩台報價
By Ida
at 2015-06-13T14:20
at 2015-06-13T14:20
一個受保護的程式交易策略
By Michael
at 2015-06-13T09:22
at 2015-06-13T09:22
請問一下MT4這樣語法有錯嗎?
By Charlie
at 2015-06-12T00:51
at 2015-06-12T00:51