怕睡過頭,電腦無人在盤前開啟,早盤又剛好遇上大行情?
因為電腦未開啟, 程式交易 +下單機,無法順利送出交易??
==========
以小妹實際測試自己的 ASUS 主機板為例…
1.開機,按 Delete 進入 BIOS
2.選擇 Power
3.選擇 APM Configuration
4.選擇 Restore on AC Power Loss → 選擇 Alway On
5.Power On By RTC Alarm → 選擇 Enabled
6.RTC Alarm → 請設定自己所需開機的時間
7.按 F10 (儲存)
8.OK
====== 依主機板的不同,設定略有所異,以下為其他主機板的方式 ======
設定自動開機方式 反向操作即可解除1.開機,按 Delete 進入 BIOS 2.選擇 Power Management Setup 3.選擇 Wake Up Events 4.選擇 Power on/off by Alarm 開啟成 Enable 5.Data (Month) Alarm -> 選擇每月的哪天啟動,預設值為 每天 6.Time (hh:mms) Alarm -> 選擇時間啟動 7.Bios 結束並存檔
解除自動開機方式進BIOS將AC POWER LOSS設定為DISABLE 或者是 OFF,另,電腦不用時,不需要將延長線電源關掉。
----
金小魚大分享:
其實 Wake-on-LAN 應當也可以啦想用的時候打一個封包過去就開機了
--
小妹將找到的網址放上。
維基百科http://zh.wikipedia.org/wiki/Wake-on-LAN
淺談 Wake On Lan (此頁最下方有載點)
http://enews.tpc.edu.tw/document/technology/2001/%E6%95%99%E7%B6%B2%E4%B8%AD%E5%BF%83%E5%BC%B5%E5%95%9F%E4%B8%AD%E3%80%8C%E6%B7%BA%E8%AB%87%20Wake%20On%20Lan%E3%80%8D.htm
阿酷大分享:
您必須完成下列三件事
一、您的主機板必須支援 Wake On Lan 的功能,並且要開啟它。
二、下載Wake-on-LAN的程式(FUSION WakeUp on Lan - 一套免費的Windows版應用程式)這軟体我有試過不錯用;在凡事感恩妹發文的網頁連結中可找到。
三、知道您的網路卡編號http://www.grjh.tnc.edu.tw/qa/netcard/#netcard(這有教學)。
用法:IP可以不用打入,把網路卡編號填入,再按即可Turn on PC鍵即可。
2007年9月27日 星期四
HTS和TS互轉價格檔的程式碼
======== 以下為code ==========
Vars : strDate(""),strM(""),strD(""),strTime(""),strResult("")Value1 = Date
strM = NumToStr(Month(Value1),0)if Strlen(strM) = 1 then strM = "0" + strMend ifstrD = NumToStr(DayofMonth(Value1),0)if StrLen(strD) = 1 then strD = "0" + strDend if
strDate = strM + "" + strD + "" + NumToStr(Year(Value1)+1900,0)strTime = ctime(Time)strTime = MidStr(strTime,1,2) + MidStr(strTime,4,2)strResult = strDate + "," + strTime + ","strResult = strResult + NumToStr(open,2) + "," + Numtostr(high,2) + "," strResult = strResult + NumToStr(low,2) +"," + NumToStr(close,2) + ","strResult = strResult + NumToStr(volume,0)+",0n"
FileAppend("c:\ts\Data\newdata.txt",strResult)
======== 以下為說明 ==========
Q:要在程式的哪邊寫? 為何輸出了卻找不到?
A:1.寫在「指標」裡面。2.路徑是c:\ts\Data\newdata.txt,要用手動設這些資料夾
--
Q:為何(volume,0) →是用 0,而前面是用 2
A:因為 量一定是 整數,其它 不要改成零,電子 跟 金融期 有小數點
--
Q:何時能抓資料?
A:盤後再抓,因為它是即時的,盤中抓的時候會有問題,該時間價位因在跳動,所以會出現一整排同時間,而不同價位、量的資料
Vars : strDate(""),strM(""),strD(""),strTime(""),strResult("")Value1 = Date
strM = NumToStr(Month(Value1),0)if Strlen(strM) = 1 then strM = "0" + strMend ifstrD = NumToStr(DayofMonth(Value1),0)if StrLen(strD) = 1 then strD = "0" + strDend if
strDate = strM + "" + strD + "" + NumToStr(Year(Value1)+1900,0)strTime = ctime(Time)strTime = MidStr(strTime,1,2) + MidStr(strTime,4,2)strResult = strDate + "," + strTime + ","strResult = strResult + NumToStr(open,2) + "," + Numtostr(high,2) + "," strResult = strResult + NumToStr(low,2) +"," + NumToStr(close,2) + ","strResult = strResult + NumToStr(volume,0)+",0n"
FileAppend("c:\ts\Data\newdata.txt",strResult)
======== 以下為說明 ==========
Q:要在程式的哪邊寫? 為何輸出了卻找不到?
A:1.寫在「指標」裡面。2.路徑是c:\ts\Data\newdata.txt,要用手動設這些資料夾
--
Q:為何(volume,0) →是用 0,而前面是用 2
A:因為 量一定是 整數,其它 不要改成零,電子 跟 金融期 有小數點
--
Q:何時能抓資料?
A:盤後再抓,因為它是即時的,盤中抓的時候會有問題,該時間價位因在跳動,所以會出現一整排同時間,而不同價位、量的資料
訂閱:
文章 (Atom)
