string FeederTick;
文字列 TraderTick;
void OnTick()
{
while(IsStopped() == false)
{
RefreshRates();
文字列 InpFileName1=””;
文字列 InpFileName2=””;
文字列 InpFileName3=””;
if(Symbol() == “EURUSD”)
{
InpFileName1 = ”status.txt”;
InpFileName2 = ”tick.txt”;
InpFileName3 = ”tick2.txt”;
}
string InpDirectoryName=””;
string path1=InpDirectoryName+”//”+InpFileName1;
string path2=InpDirectoryName+”//”+InpFileName2;
string path3=InpDirectoryName+”//”+InpFileName3;
double FeederTickCount = StringToDouble(FeederTick);
double TraderTickCount = StringToDouble(TraderTick);
int Status = 0;
double ComTick = (FeederTickCount – TraderTickCount) /1000;
if(ComTick >=1.0) Status = 1;
int handle1 = FileOpen(path1,FILE_WRITE);
if(handle1 > 0)
{
FileWrite(handle1,Status);
FileClose(handle1);
}
int handle2 = FileOpen(path2,FILE_READ);
if(handle2 > 0)
{
FeederTick =FileReadString(handle2);
FileClose(handle2);
}
int handle3 = FileOpen(path3,FILE_READ);
if(handle3 > 0)
{
TraderTick =FileReadString(handle3);
FileClose(handle3);
}
コメント(”フェーダー対トレーダー=“+ComTick”);
Sleep(100);
}
}
‘RefreshRates’ – 関数が定義されていません
‘number’から’string’への暗黙的な変換‘
このeaをデコンパイルしてください。ありがとうございます。