As you can see, I'm using your forum yet. Excuse me for my poor Engligh.
I created a little indicator only to see that what I see in a txt file can be written in the Output window, but it is too slowly. That txt file has only 49 kb. It should be much faster.
I think that perhaps it happens because it is completely read in every bar:
protectedoverridevoid OnBarUpdate()
{
if (File.Exists(path))
{
{
sr = new System.IO.StreamReader(path);
string line;
while ((line = sr.ReadLine())!=null)
{
string [] split = line.Split(new Char [] {' '});
int splitCounter=0;
foreach (string s in split)
{
splitCounter++;
if (splitCounter==1)
date = int.Parse(s);
if (splitCounter==2)
currentOpen=double.Parse(s);
if (splitCounter==3)
currentHigh=double.Parse(s);
if (splitCounter==4)
currentLow=double.Parse(s);
if (splitCounter==5)
currentClose=double.Parse(s);
Print (date + " " + currentOpen);
}
}
}
}
else
Print ("File does not exist.");
}
Comment