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
Transform any order into a limit order selectively based on a tra...
Buy & Hold of SPY or any Other Index/ETF on Profitable Months
Identify Spilts Screener Script
Current Drawdown of any Price Series or Indicator
Madrid Stock Exchange - Historical Data

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
Is there a way to divide a money management event into functions?
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?

Blog Posts
A simple but useful way to display distances in a chart
QS Trading Software: Global Script
Charting & Scripts - Manage stock charts using the global script
Let me Show You How to Create Hundreds of Profitable Trading Syst...
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 © 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.