Renaming a file from Multicharts

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Renaming a file from Multicharts

Postby arjfca » 31 Mar 2011

Hello again

Is it possible to rename a file with a command from Multicharts?

I ddi not found any command to do it

The idea is to save infor from a week or mont of data and have it under a separate file name for each determined period.

Martin

User avatar
TJ
Posts: 7743
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Renaming a file from Multicharts

Postby TJ » 31 Mar 2011

Hello again

Is it possible to rename a file with a command from Multicharts?

I ddi not found any command to do it

The idea is to save infor from a week or mont of data and have it under a separate file name for each determined period.

Martin
you ask very smart questions.

here's the trick I use...
see if you can figure out the detail.

Code: Select all

var:
datastring("");

datastring = text(c);

FileAppend("c:\temp\"
+_auto.filename+".txt",
_log.id+", "
+datastring
+newline);
Attachments
_auto.filename.txt
(554 Bytes) Downloaded 420 times
_log.id.txt
(906 Bytes) Downloaded 412 times

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Renaming a file from Multicharts

Postby arjfca » 31 Mar 2011

:) :) :)

Very clever TJ

I owe you two sandwiches

Martin

User avatar
TJ
Posts: 7743
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: Renaming a file from Multicharts

Postby TJ » 31 Mar 2011

you can apply these functions to any chart, any symbol, any time frame,
and they will extract the required information for you -- automatically !

Coding is fun.

;-)


Return to “MultiCharts”