I try to get OHLC Min-Data right from the chart into a txt-file. I'm using the same indicator in TS. But in MC the "volume"-Data comes out with the date. In TS it works very well.
Here is my indicator :
... and this line comes out :If Init then
begin
Init = False;
FileDelete(Filename);
FileAppend(Filename, "Date, Time, Open, High, Low, Close, Volume" + NewLine);
end;
FileAppend(Filename, ELDateToString(Date) + ","
+ NumToStr(Time, 0) + ","
+ NumToStr(Open+Adj, Dec) + ","
+ NumToStr(High+Adj, Dec) + ","
+ NumToStr(Low+Adj, Dec) + ","
+ NumToStr(Close+Adj, Dec) + ","
+ NumToStr(Ticks, 0) + ""
+ NewLine);
End;
As you can see, the "Volume" is exactly the date of the day.Date, Time, Open, High, Low, Close, Volume
04/30/2009,938,121.45,121.45,121.45,121.45,30
05/08/2009,925,120.65,120.65,120.65,120.65,08
05/08/2009,1107,120.65,120.65,120.65,120.65,08
05/08/2009,1108,120.65,120.65,120.65,120.65,08
05/08/2009,1109,120.65,120.65,120.65,120.65,08
05/08/2009,1113,120.65,120.65,120.65,120.65,08
05/08/2009,1202,120.65,120.65,120.65,120.65,08
05/08/2009,1216,120.65,120.65,120.65,120.65,08
05/28/2009,2109,117.01,117.01,117.01,117.01,28
05/29/2009,1621,117.15,117.15,117.15,117.15,29
What I'm doing wrong ?
Regards.
Mike