日盛HTS如何將程式轉成TXT文字檔 - 財經

By Jacob
at 2011-02-19T18:42
at 2011-02-19T18:42
Table of Contents
※ 引述《Daviditb (大衛)》之銘言:
: ※ 引述《yuting0103 (凌波微步)》之銘言:
: : 雅策的範例
: : if date = lastcalcdate and time = LastCalcTime then
: : FileDelete("C:\cur_cmd.txt")
: : FileAppend("C:\cur_cmd.txt",cdate(date) +" "+ ctime(time)+" "+ NumToStr(CurrentContracts,0)+" "+NumToStr(Close,0)+" "+ctime(q_time))
: : end if
: 各位高手,除了程式中要加上上述範例程式外,另外HTS是否有特別的設定或操作程序
: 或需其他軟體配合,方能產生TXT訊號文字檔?謝謝各位高手幫忙,謝謝
在STS上產生文字檔僅需加上 上方的 程式碼即可
不需要搭配其他軟體,只是這樣每根K Bar都會產生一個文字檔的同時 馬上就砍掉了
如果你要留著就是佈要delete,文字就會一直寫入文字檔
--
: ※ 引述《yuting0103 (凌波微步)》之銘言:
: : 雅策的範例
: : if date = lastcalcdate and time = LastCalcTime then
: : FileDelete("C:\cur_cmd.txt")
: : FileAppend("C:\cur_cmd.txt",cdate(date) +" "+ ctime(time)+" "+ NumToStr(CurrentContracts,0)+" "+NumToStr(Close,0)+" "+ctime(q_time))
: : end if
: 各位高手,除了程式中要加上上述範例程式外,另外HTS是否有特別的設定或操作程序
: 或需其他軟體配合,方能產生TXT訊號文字檔?謝謝各位高手幫忙,謝謝
在STS上產生文字檔僅需加上 上方的 程式碼即可
不需要搭配其他軟體,只是這樣每根K Bar都會產生一個文字檔的同時 馬上就砍掉了
如果你要留著就是佈要delete,文字就會一直寫入文字檔
--
Tags:
財經
All Comments

By Faithe
at 2011-02-22T04:08
at 2011-02-22T04:08
Related Posts
台指期操作系統筆記2/14

By John
at 2011-02-14T22:14
at 2011-02-14T22:14
請問各政卷商所提供的DDE的差別?

By Queena
at 2011-02-14T20:15
at 2011-02-14T20:15
請問各政卷商所提供的DDE的差別?

By Belly
at 2011-02-14T17:30
at 2011-02-14T17:30
日盛HTS如何將程式轉成TXT文字檔

By Ivy
at 2011-02-13T17:08
at 2011-02-13T17:08
Oanda平台的「移動止損」功能

By Doris
at 2011-02-13T11:35
at 2011-02-13T11:35