本帖最後由 cellan 於 11-5-30 12:36 PM 編輯
回復 15# oneman001
- //+------------------------------------------------------------------+
- //| bbb.mq4 |
- //| Copyright ?2011, MetaQuotes Software Corp. |
- //| http://www.metaquotes.net |
- //+------------------------------------------------------------------+
- #property copyright "Copyright ?2011, MetaQuotes Software Corp."
- #property link "http://www.metaquotes.net"
- //+------------------------------------------------------------------+
- //| script program start function |
- //+------------------------------------------------------------------+
- int start()
- {
- //----
- int handle;
- datetime orderOpen=OrderOpenTime();
- handle=FileOpen("filename.csv", FILE_CSV|FILE_WRITE, ';');
- if(handle>0)
- {
- FileWrite(handle, Open[0]);
- FileClose(handle);
- }
- //----
- return(0);
- }
- //+------------------------------------------------------------------+
複製代碼
我新發現
將這程式碼創建到
智能交易系統裡
就能達到我要的輸出效果
但他卻輸出到
C:\Documents and Settings\TEST\AppData\Local\VirtualStore\Program Files\FxPro - MetaTrader\experts\files
光我要抓這路另就得寫這麼長一段
mt4真的濫到沒辦法改變輸出的路徑
讓他輸出到
R:\
嗎 |