Click here to Login





                                                   In a Script is there any way to iterate through a List-of-Symbols?

  0

0
Graeme Smith
2012-05-25 10:41:16


Basically I would like to just export a small subset of symbols each evening. I have created a watch-list of the Symbols I would like to export,
and have also created a List of Symbols

I have a script that can go through every single Symbol, but I would like to know if there is any way I can limit this script to just the Watch-list or List of Symbols?

As a secondary question, how do you edit the contents of a List of Symbols? I can create a list or delete it, but I cannot find any way to edit what is in an existing list.

Thanks,

Graeme



QuantShare
2012-05-25 11:06:08

  0

Hi,

Here is how to get every symbol in a watchlist: (Tools -> Script Editor)

string[] symbols = Watchlist.GetSymbols("name");

It is possible to create and update internal list of symbols (Symbols List), by selecting Symbol -> Symbols View.






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
Buy & Hold of SPY or any Other Index/ETF on Profitable Months
Transform any order into a limit order selectively based on a tra...
Current Drawdown of any Price Series or Indicator
Madrid Stock Exchange - Historical Data
Consecutive Up and Down Bars - Works With Any Trading Indicator

How-to Lessons
How to get stocks for a particular index using the global script
How to run a screen or a watchlist from a script
How to execute a script at regular intervals
How to create a custom trading indicator
How to quickly add a ticker symbol

Related Forum Threads
Plot through the script editor
Can I update the sector and industry information in the stock dat...
Adding data to database through script
Are there any plans to use FIX Protocol?
Best way to precompute a custom formula and store it

Blog Posts
QS Trading Software: Global Script
A simple but useful way to display distances in a chart
Charting & Scripts - Manage stock charts using the global script
How to filter quotes data from high and low price spikes
How to turn any ordinary trading strategy into a very profitable ...









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 © 2012 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items