Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
All companies in S&P 500
Collapse
X
-
All companies in S&P 500
Is it possible to run strategy against all individual companies comprised S&P 500 automatically?Tags: None
-
Hello PageNotFound404,
Thanks for your post.
Yes, it is possible.
There are two approaches, you can run one strategy and add all 500 instruments to the one script or you can create one script and apply it 500 times, or some variation between those two extremes.
Your PC or VPS would be the limitation. You can apply the strategies directly in the strategies tab so that you do not have to deal with the overhead of creating charts. I would also suggest minimizing as much as practical the amount of historical data loaded.
Paul H.NinjaTrader Customer Service
-
-
Hello, I have a related question. I have been running a strategy on each instrument in the S&P500 for about 2 years by creating a single instrument script and applying it 500 times. It works surprisingly well, considering its on a cloud based semi ok virtual PC. I was wondering, is there any performance benefit to changing the strategy to multi instrument with all 500 instruments added to the one script? NT and my PC aren't thrilled when I enable 100 instruments at a time x5, but perhaps it would be equally not thrilled enabling a multi instrument strategy with 500 instruments?
Comment
-
Hello RobotSyndicate,
While there would be less overhead with one script instance in memory trading multiple instruments, having 500 instruments could start causing some issues if one of the instruments doesn't want to load.
With all of these separate, you can keep some instruments running and restart others if other instruments have any kind of error or performance issues.Chelsea B.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Waxavi, Today, 02:00 AM
|
0 responses
2 views
0 likes
|
Last Post
by Waxavi
Today, 02:00 AM
|
||
Started by elirion, Today, 01:36 AM
|
0 responses
4 views
0 likes
|
Last Post
by elirion
Today, 01:36 AM
|
||
Is it possible to have a drawing, such as a line, cycle through different colors?
by gentlebenthebear
Started by gentlebenthebear, Today, 01:30 AM
|
0 responses
4 views
0 likes
|
Last Post Today, 01:30 AM | ||
Started by samish18, Yesterday, 08:31 AM
|
2 responses
9 views
0 likes
|
Last Post
by elirion
Today, 01:28 AM
|
||
Started by Mestor, 03-10-2023, 01:50 AM
|
16 responses
391 views
0 likes
|
Last Post
by z.franck
Today, 01:04 AM
|
Comment