错误、漏洞、问题 - 页 947

 
fyords:

那么有什么问题呢?

写道。

2013.03.25 16:23:25 TransMission (EURUSD,M1) EURUSD.csv 文件未找到!

  string file_name=(Symbol()+".csv");     // variable for storing file names
  string filter=".csv"; // filter for searching the files
//--- receive the search handle in the local folder's root
  long search_handle=FileFindFirst(filter,file_name);
//--- check if FileFindFirst() executed successfully
  if(search_handle!=INVALID_HANDLE)
  {
//--- searching files in the loop
    do
    {
//--- reset the error value
      ResetLastError();
//--- receive the file creation date
      PrintFormat(Symbol()+".csv"+" file deleted!",file_name);
//--- delete the old file
      FileDelete(SubFolder+"\\experts\\files\\"+Symbol()+".csv");
    }
    while(FileFindNext(search_handle,file_name));
//--- close the search handle
    FileFindClose(search_handle);
  }
  else
  {
    Print(Symbol()+".csv"+" File not found!");
    return;
  }
//--- check what files have remained
  PrintFormat("Results:");


 
G001:

写道。

2013.03.25 16:23:25 TransMission (EURUSD,M1) EURUSD.csv 文件未找到!

我想我必须先关闭该文件,然后再删除它。

string SubFolder = "TransMission";
int file_handle;
//+------------------------------------------------------------------+
int OnInit()
  {
   file_handle=FileOpen(SubFolder+"\\experts\\files\\"+Symbol()+".csv",FILE_WRITE);
   Print("File create: ",(bool)FileIsExist(SubFolder+"\\experts\\files\\"+Symbol()+".csv"));
   return(0);
  }
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
   FileClose(file_handle);
   Print("File delete: ",(bool)FileDelete(SubFolder+"\\experts\\files\\"+Symbol()+".csv"));
  }
//+------------------------------------------------------------------+
void OnTick()
  {

  }
//+------------------------------------------------------------------+
 
fyords:
显然,你必须先关闭该文件,然后再删除它。
这一切都已经解决了。
 
亲爱的先生们。请将你的服务器时间与真实的物理时间同步,它现在正在提前运行。差距正在扩大。
 
Arkadiy:
亲爱的先生们。请将你的服务器时间与真实的物理时间同步。

咳咳...其实先生们也有一个真正的实物:)

也许你的电脑需要同步?

 
sergeev:

咳咳...其实先生们也有一个真正的实物:)

也许你的电脑需要同步?

在我写之前--我同步了一下,以确定时间差。昨天的话,差别是>10秒(现在是3秒左右)。根据我自己的经验,对于分钟来说,10秒是很重要的。
 
我能否让我在空图表上运行EA时,它所使用的指标也被一起调用?这不是一个策略测试器,而是一个真实账户的普通图表。
 
lazarev-d-m:
我能否让我在一个空图表上运行EA时,它所使用的指标也被一起调用?我们说的不是策略测试器,而是一个真实账户的正常图表。
是的,你当然可以。使用ChartIndicatorAdd()函数。
 
tol64:
是的,你当然可以。使用ChartIndicatorAdd()函数。
谢谢你,这使生活更容易。
 

下午

我可以在我的电脑上同时只运行4个MT5终端吗?

...看起来PSP上 没有足够的内存...