Exporting from Quote Manager

Questions about MultiCharts and user contributed studies.
yonobarn
Posts: 8
Joined: 23 Apr 2011
Has thanked: 4 times

Exporting from Quote Manager

Postby yonobarn » 30 Mar 2012

I am trying to export 60 minute data using the following indicator:

Code: Select all

Print(File("c:\data\mydata.txt"), Date, Time, Open, High, Low, Close);
Only issue is, this code prints to 2 decimal places, I need 5. Is there any way to fix this without having to first manipulate the original data?

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

Re: Exporting from Quote Manager

Postby TJ » 30 Mar 2012

I am trying to export 60 minute data using the following indicator:

Code: Select all

Print(File("c:\data\mydata.txt"), Date, Time, Open, High, Low, Close);
Only issue is, this code prints to 2 decimal places, I need 5. Is there any way to fix this without having to first manipulate the original data?
try this:

Code: Select all

Print(File("c:\data\mydata.txt"), Date, Time, Open:0:5, High:0:5, Low:0:5, Close:0:5);

yonobarn
Posts: 8
Joined: 23 Apr 2011
Has thanked: 4 times

Re: Exporting from Quote Manager

Postby yonobarn » 30 Mar 2012

Brilliant! Many thanks.

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

Re: Exporting from Quote Manager

Postby TJ » 30 Mar 2012

if you found the numbers joined together,
you can add "," in between the numbers.


eg.

Code: Select all

Print(File("c:\data\mydata.txt"), Date,",", Time,",", Open:0:5,",", High:0:5,",", Low:0:5,",", Close:0:5,",");

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

Re: Exporting from Quote Manager

Postby TJ » 30 Mar 2012

Brilliant! Many thanks.
YW


Return to “MultiCharts”