Click here to Login





                                                   Export to Excel

  0

0
Dave W.
2013-03-27 18:36:50


Suggestion:
1. Instead of exporting from the Scanner (and other areas) to CSV, export directly to Excel format (or provide that option). The reason is the current CSV format is not parsed automatically by Excel using semicolins, which means there is an extra step required to import into Excel. Small change, but would be useful.

2. Also, it would be nice if the code used to generate the CSV results could also be exported so you could see what code generated the results. This could be done to a seperate CSV file, or in Excel, to a separate sheet.



QuantShare
2013-03-27 21:56:49



Hi,

What do you mean exactly by "the code used to generate the CSV" ?




Dave W.
2013-03-27 22:32:01



Hello.

In this case, I'm referring to the code used in the screener to generate the set of results being exported. For example, my current screener code:

// Initialize variables
varATR_Pct_Period = 3;
varATR_Pct = (ATR(varATR_Pct_Period) / sma(Close,varATR_Pct_Period));
varAvgVolume = avg(volume,varATR_Pct_Period);
varMinPrice = 15;
varMinATR_Pct = 0.01;
varStdDevMin = 2;

// Variables to calculate and then plot the standard deviation of price from BB mean
varBBMeanLen = 30;
varBBMean = sma(varBBMeanLen);
varCloseMinusBBMeanArray = Close - varBBMean;
varStdDev = varCloseMinusBBMeanArray / stddev(Close);


// Filter based on variables
var1 = varATR_Pct > varMinATR_Pct;
var2 = varAvgVolume > 2000000;
var3 = Close > varMinPrice;
var4 = varStdDev > varStdDevMin;

// Display a few columns of data
AddColumn("ATR%", varATR_Pct);
AddColumn("AvgVolume",varAvgVolume);
AddColumn("BB Mean",varBBMean);
AddColumn("Close - BB Mean",varCloseMinusBBMeanArray);
AddColumn("StdDev",varStdDev);

// Apply the filter
filter = (var1) && (var2) && (var3) && (var4);





Mark Peterson
2014-05-02 18:47:12



Regarding Excel format...

By default Excel expects the separator in a .csv (comma separated values) file to be a comma - go figure. Actually it is a little more complex - On American Windows versions, the comma is set as default for the "List Separator", which is okay for CSV files. But on European Windows versions this character is reserved as the Decimal Symbol and the "List Separator" is set by default to the semicolon.

A future Quantshare enhancement to be considered would be to simply add a new first line to each file:

sep=;

Workaround 1 - open the file with a text editor and add the line above.
Workaround 2 - change the file type to .txt. Open the file within excel which should bring up the import wizard (select delimited-next-semi colon-finished)

Hope this helps



QuantShare
2014-05-03 13:34:23



Good idea. Thank you for the suggestion.



No more messages
0




Reply:

No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"










QuantShare

Trading Items
Equity and Date Export To Excel
Equity Export To Excel
Export Indicators Data - Custom Time Frame
Export Indicators Data with Filtering and Column Labels Support
Export Indicators Data

How-to Lessons
How to export trading data to a CSV file
How to download and use U.S. stocks earnings data
How to download new quotes when selecting a chart
How to create histogram charts
How to create a composite index/indicator

Related Forum Threads
Export Data to Excel OR .CSV files
Export Aggregate Case Results for Optimization
How to export to metastock ascii, 10 or 11 Format
Download Multiple Ticker Information to Excel
Bulk export data to csv

Blog Posts
Reading and Exporting Data from QuantShare to Excel Programmatica...
Export Trading Orders from a Portfolio to a File
How to Send Commands to QuantShare from Excel or Other Applicatio...
Real-Time Quote Sheets with QuantShare
How to Create a List of Ticker Symbols









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items



Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.