Code: Select all
Inputs:
OutputFileNamePath ("C:\PriceActionLab\Data\"),
OutputFileNameExtention("_PAL.txt"),
OutputDateFormat("yyyMMdd"),
OutputDigits(2);
vars:
OutputFile(""),
OutputDateString(""),
ExportString("");
OutputFile = OutputFileNamePath+GetSymbolName+OutputFileNameExtention;
OutputDateString = FormatDate(OutputDateFormat, ELDateToDateTime(Date));
ExportString = OutputDateString+" "+NumToStr(O,OutputDigits)+" "+NumToStr(H,OutputDigits)+" "+NumToStr(L,OutputDigits)+" "+NumToStr(C,OutputDigits)+NewLine;
Once begin
FileDelete(OutputFile);
end;
If BarType= 2 then begin
FileAppend(OutputFile,ExportString);
end;
Many thanks,
Alex