foreach in Custom Projects

I often find myself re-running custom projects with different input symbols or time frames.   I know we now have a ‘Modify Symbols’ feature to replace symbols in project tasks, but a more convenient and flexible approach would be to provide a ‘foreach’ task that would iterative over a list of items and execution subtasks for each item.

As an example, you could create a list of symbols (EURUSD, GPBUSD, USDJPY) inside of a ‘foreach’ task, and then attach subtasks (or another project entirely) that would run replacing the input symbol from the list for each iteration.   It would be great if this could be nest-able, for instance to have an outer foreach loop for symbols and an inner foreach loop for intervals.

Attachments
No attachments
  • Votes +2
  • Project StrategyQuant X
  • Type Feature
  • Status New
  • Priority Normal

History

Tt
#1

tactevo

03.12.2020 17:16

Task created

JK
#2

Insanity82007

05.12.2020 05:12
Voted for this task.
JK
#3

Insanity82007

05.12.2020 05:13
This is why I wanted this feature: https://roadmap.strategyquant.com/tasks/sq4_7022 but it got refused... BOOOO! 


MF
#4

Mark Fric

15.12.2020 14:05
this is on the verge of programming, we added CLI for things that could be this complicated. 


So instead of making foreach in custom projects we will add a possibility to use mass modify symbols/timeframes and other settings through CLI.


I also reopened the task: https://roadmap.strategyquant.com/tasks/sq4_7022 with suggestion of how it could work

m
#5

Martin

16.12.2020 19:53
You can automate it all with some basic Java or Python code and selenium web driver. It is possible to interact with any part of SQ and to automate it fully with basic scripts.

Votes: +2

Drop files to upload

or

choose files

Max size: 5MB

Not allowed: exe, msi, application, reg, php, js, htaccess, htpasswd, gitignore

...
Wait please