Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Profile: eweave
About
User Name: eweave
Groups: Member, Platinum User, TeleChart
Rank: Registered User
Real Name:
Location
Occupation:
Interests:
Gender: Gender:
Statistics
Joined: Friday, April 5, 2013
Last Visit: Tuesday, May 21, 2013 10:42:58 AM
Number of Posts: 2
[0.00% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: Programmatically select a set of tickers
Posted: Sunday, April 7, 2013 10:12:00 AM

Thank you for your reply Bruce.  From reading your attached URLs, it looks like I can accomplish my goal.

 

Below are the specifics of what I need to accomplish:

 

I would like to do a 5 year backtest on an equity trading system.  Every month, I have a set (from as few as 0, to as many as 10) of stock tickers, and these tickers can vary every month.  During the backtest, once the backtest reaches the first of the month, an entry indicator is applied to the symbols for that month.  If there is an entry, then an exit indicator is applied to the current position.  Time is not an exit criterion, so this position may be held into the following month, even if its ticker is not part of that new month’s list of tickers.

 

I have a csv formatted set of my past monthly tickers, basically a std::vector <std::vector> which is 60 x 10.  If appropriate, I can write a ruby script to quickly generate the necessary if / else if statements, using date as the conditional and then load the correct tickers for that timeframe.

 

Do you have code, or pseudo code, suggestions?

 

Many thanks,

Evan

Topic: Programmatically select a set of tickers
Posted: Friday, April 5, 2013 10:58:20 AM

Every month, I have a new set of tickers which form my watchlist.  I would like to programmatically select a set of tickers depending on the date which is being evaluated.

 

In Wealth-Lab, I would use a switch and just hardcode the appropriate tickers for a particular date range.

 

Is there a method I can employ in StockFinder which will give me similar results?