I Build a strategy that can run on many instruments(~50) with a slight modification of parameters. I want to be able to run all the strategies together but instead of manually set them in the strategy tab I was thinking on writing a Master strategy that take as an input the list of instruments and create new strategy instance for each instrument.
Something like that. Of course I need also to pass the Base but this is the general concept I want to achieve.
Is it possible design?
Is there sample codes that were tested for doing such a task?
In the past, have just written one "main strategy", and then added multiple bars dataseries to it, and managed it that way.
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
I have also a similar idea:
I would like to write a strategy that monitors a collection of intruments (30-50 stocks) for a certain buy signal. If I get a buy signal on 10 of them at the same time, I would like to buy the top 5 ones with the highest average historical return (using the strategy).
You can do that having two strategies type:
- strategy A, running on the 50 stocks, and writing in a specific file when it has the buy signal
- strategy B, reading all files, and checking that you have at least 10 buy signals
To get the top 5 stocks, the easier is too manage manually, running backtests and store somewhere the best performers.
The B strategy will be "multi-instruments".
Their are smarter way to do that, but this is the simpler, IMHO.
Usually in trading, those who know don't talk, and those who talk don't know. (Al Brooks)
success requires no deodorant! (Sun Tzu)