Click here to Login

                                                   Read watchlist from file


Dennis Schutten
2020-05-18 09:11:32


I am looking for a script example which allows me to read a watchlist.txt file from disk and use this in Quantshare. Can you please give a example on how to do this?


2020-05-21 15:16:31


Hi Dennis,

Reading a file can be done using the "System.IO.File" class. What do you want to do with the content of the file?

No more messages


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"


Trading Items
Portfolio Statistics to CSV File
All Symbols Watchlist
How far are the close prices from the support line
Buy signal watchlist And Buy signal on your Chart (Red Spot)
Market cap, ROE, ROA and Forward PE for U.S. Stocks - Fundamental...

How-to Lessons
How to run a screen or a watchlist from a script
How to import trading data from CSV files
How to get trading orders from a portfolio programmatically
How to add trades from one portfolio to another one
How to export trading data to a CSV file

Related Forum Threads
update a new symbol from a csv file
How do I Import Tick Data from a CVS file
Ingest earnings data from csv file ..
Account file corrupted, restored from backup. What have I lost?
Importing portfolio from a comma delimted file

Blog Posts
Export Trading Orders from a Portfolio to a File
Reading and Exporting Data from QuantShare to Excel Programmatica...
Create Realtime Quote Sheets with the Watchlist Tool
How to Send Commands to QuantShare from Excel or Other Applicatio...
How to Backtest a Strategy from a Chart

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2021
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
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.