Download: Ascii.ela
File Includes: Indicator - Write_to_ASCII
Category: Indicator > Miscellaneous
Description:
Here is an example of an indicator write or export to an ascii file of whatever you like.
Usage:
Set requierd inputs and you will get a file in specified directory

Inputs:
DIR - directory name
NAME - file name
oval - first value
hval - second value
Lval - third value
Cval - forth value
EasyLanguage Code:
INPUT: DIR("C:\"), NAME("FILENAME"), OVAL(O), HVAL(H), LVAL(L),CVAL(0);
IF CURRENTBAR = 1 THEN FILEDELETE(DIR+NAME +".TXT");
IF CURRENTBAR >= 1 THEN FILEAPPEND(DIR+NAME +".TXT",
NUMTOSTR(MONTH(DATE),0) +"/"+ NUMTOSTR(FRACPORTION(DATE/100)*100,0) + "/" +
NUMTOSTR(1900+YEAR(DATE),0) +","+ NUMTOSTR(OVAL,4) + "," + NUMTOSTR(HVAL,4) + "," +
NUMTOSTR(LVAL,4) + "," + NUMTOSTR(CVAL,4) + NEWLINE );
IF C<> C THEN PLOT1(1," ");