I have multiple workspaces open and, when certain conditions are met, I want to have the workspace in which those conditions were met to be immediately visible rather than having to manually navigate to that workspace.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Changing workspace
Collapse
X
-
Changing workspace
Is it possible, from within a strategy, to change the active workspace?
I have multiple workspaces open and, when certain conditions are met, I want to have the workspace in which those conditions were met to be immediately visible rather than having to manually navigate to that workspace.Tags: None
-
Another question
Thanks, Josh, for the answer.
Another, unrelated question. In the strategy wizard, one can set a user-defined variable. Is this variable "persistent"? The next time the system calls the strategy subroutine (I assume it's a subroutine), will that variable still have the same value I assigned it the last time the subroutine was called?
Sorry - this question probably stems from my ignorance of C. I've coded for many years, but don't know C at all.
Comment
-
How can I do this?
OK, thanks.
How, then, can I set a flag that can be accessed, read every time the strategy is called?
The strategy I'm attempting to complete calls for (1) an MA crossover and (2) a bar to form completely below (or above) the shorter-term MA. No problem with determining this when it first occurs (I just look back at the previous bar on the open of the new bar), but the strategy needs to "know" that it occurred in the past, even if 30 bars ago. I could probably loop through each time and see if this condition did occur, but that seems unnecessarily resource intensive. Hope this makes sense.
Comment
-
Please see these references for some ideas: http://www.ninjatrader-support2.com/...ead.php?t=3475
Josh P.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
637 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
366 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
107 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
569 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
571 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment