I can`t see RestartDelaySeconds in the connection loss tab, is it something we can control or is it hardwired?
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
restart delay seconds
Collapse
X
-
restart delay seconds
Recalculate: Strategies will attempt to recalculate its strategy position when a connection is reestablished and held for longer than RestartDelaySeconds (default = 10)
I can`t see RestartDelaySeconds in the connection loss tab, is it something we can control or is it hardwired?Tags: None
-
Hello jitterbug,
Thank you for your inquiry.
RestartDelaySeconds is a NinjaScript property that can be modified programmatically inside of a script's code.
The RestartDelaySeconds property indicates the amount of time a reestablished connection needs to be held before certain connection loss handling actions will be taken.
To utilize RestartDelaySeconds in code, here's an example below:
Code:protected override void Initialize() { // Recalculate strategy only after connection is reestablished for at least 10 seconds RestartDelaySeconds = 10; }
Please, let us know if we may be of further assistance.Zachary G.NinjaTrader Customer Service
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by AttiM, 02-14-2024, 05:20 PM
|
12 responses
212 views
0 likes
|
Last Post
by DrakeiJosh
Today, 11:17 AM
|
||
Started by cre8able, 02-11-2023, 05:43 PM
|
3 responses
236 views
0 likes
|
Last Post
by rhubear
Today, 10:46 AM
|
||
Started by frslvr, 04-11-2024, 07:26 AM
|
8 responses
115 views
1 like
|
Last Post Today, 10:30 AM | ||
Started by stafe, 04-15-2024, 08:34 PM
|
10 responses
47 views
0 likes
|
Last Post
by stafe
Today, 10:29 AM
|
||
Started by rocketman7, Today, 09:41 AM
|
3 responses
11 views
0 likes
|
Last Post Today, 10:07 AM |
Comment