Renaming a file from Multicharts

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1270
Joined: 23 Nov 2010
Has thanked: 720 times
Been thanked: 222 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: 6551
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 966 times
Been thanked: 1892 times

Re: Renaming a file from Multicharts

Postby TJ » 31 Mar 2011

arjfca wrote: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 36 times
_log.id.txt
(906 Bytes) Downloaded 36 times

arjfca
Posts: 1270
Joined: 23 Nov 2010
Has thanked: 720 times
Been thanked: 222 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: 6551
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 966 times
Been thanked: 1892 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”