how can I programmatically replace the watchlist I have selected via the GUI with my own symbols list filtered within MySystem class?
1. I selected symbols or a whole watchlist or several watch lists from the watchlist folder shown in the RE GUI.
2. The symbols list will be filtered in the MySystem class and creates a new symbol result list.
3. How can I replace the original symbols list from step 1 with my filtered symbol result list from step 2?
4. Then the SymbolScript class of only those symbols of the filtered symbol list should be called!
There is one more question. In my watchlist folder I created some subfolders like "S&P500", "DOW" etc., is it possible to get access to the information in my trading system. I mean to see what portfolios are selected? Or will all selected symbols be collected in one list, the symbols list?
I also like to get access to the bar data information of each selected symbol from the MySystem class, I like to check the date/time of the last bar of each symbol. Is that possible? Why I want to do that is the following. Let's assume I fetched the bar data for all symbols in my watchlist folder last Friday and didn't update the information today. Then I would like to make a check in my MySystem class if the data is up to date. I will run my trading system every morning before the stock exchange has opened, so the date/time of the last bar data must be the date of the week day before today.
Today is Tuesday 17th of April 2012 then the bars last date/time should be Monday 16th of April 2012!
Today is Monday 16th of April 2012 then the bars last date/time should be Friday 13th of April 2012!
and so on.
Is there a way to get this information in the MySystem class?
Tuesday April 17 2012 by