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
Strategy Collection
Collapse
X
-
Strategy Collection
Is there a way to programmatically determine what charts a user has open and also determine what instruments the charts are using? I would also like to determine what strategies, if any, each chart is running.Tags: None
-
Hi scottreynolds,
There is no way to access which charts are open, or find out if there are strategies running.
You can access the interval type and value using BarsPeriod. This shows what interval is used only where the script is currently applied.
There is Id for the interval type and Value for the interval value.
For instrument there is this class and available properties:
Ryan M.NinjaTrader Customer Service
-
Originally posted by scottreynolds View PostIs there a way to programmatically determine what charts a user has open and also determine what instruments the charts are using? I would also like to determine what strategies, if any, each chart is running.
Comment
-
As a vendor, I would like to be able to control the number of contracts a user can run for a strategy. The strategy could limit the number but the user simply has to open another chart and run the same strategy to defeat the limitation. Is there a way to handle this?
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by algospoke, 04-17-2024, 06:40 PM
|
5 responses
45 views
0 likes
|
Last Post Today, 02:36 PM | ||
Started by arvidvanstaey, Today, 02:19 PM
|
1 response
4 views
0 likes
|
Last Post Today, 02:33 PM | ||
Started by mmckinnm, Today, 01:34 PM
|
3 responses
5 views
0 likes
|
Last Post Today, 02:12 PM | ||
Started by f.saeidi, Today, 01:32 PM
|
2 responses
8 views
0 likes
|
Last Post
by f.saeidi
Today, 02:10 PM
|
||
Started by alifarahani, 04-19-2024, 09:40 AM
|
9 responses
55 views
0 likes
|
Last Post Today, 02:02 PM |
Comment