How can I do this in the strategy code?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Set default values for Strategy
Collapse
X
-
Set default values for Strategy
I would like to set the default value for "price based on", "Type" and "Value". Also for time series, I would like to set the default value. (Please see screenshot)
How can I do this in the strategy code?Tags: None
-
Thanks. How do we use the template to set this parameter? Everytime when I compile, Strategy analyzer looses the value set for the data series.
Comment
-
It looks like template stores the instrument name. But it does not store whether 5 min or 10 min chart is used. How do I fix that? Do you have an example template which stores these details?
Comment
-
Hello sambathraj,
I tried this on my end and see the template also stores the data series settings. After making changes to the data series you can save a template, when the strategy loads the template or the default the data series settings are changed. That works in both the control center and analyzer.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
96 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
51 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
23 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
34 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
34 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment