Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
stopping and starting strategies with positions on
Collapse
X
-
Where do I find this strategy id? I see mentioned in different places, but I can't figure out which instance in the strategies tab each one is.Originally posted by NinjaTrader_Josh View PostAs your scenario is extremely complicated with a ton of strategies all trying to do their own thing you will need to provide exact strategy IDs and timestamps along each step of the way so we can take a look at the logs. Thank you.
Comment
-
Adam, Josh referred to just the strategy name / instrument / timeframe combination that gave you the issue, it would also help if you for example tested on a limited amount of strategy instances first to help simplify the setup and minimize potential interactions. As mentioned in my email the bug concerning the historical OCO id's that could have been non unique per strategy was found in B22 and fixed for B23.
I'm checking with IB API support into the 'Unable to cancel order...' error currently and will let you know what insight is hopefully contained.
Comment
-
When you start a strategy the first line in the logs will be something like this:
10/6/2010 3:00:54 PM Strategy Enabling NinjaScript strategy 'SampleMACrossOver/6ece59dfc4974fe49270b0865dced30b' : On starting a real-time strategy - StrategySync=SubmitImmediately SyncAccountPosition=False EntryHandling=AllEntries EntriesPerDirection=1 StopTargetHandling=PerEntryExecution ErrorHandling=StopStrategyCancelOrdersClosePositio ns ExitOnClose=True/ triggering 30 before close Set order quantity by=Strategy ConnectionLossHandling=KeepRunning DisconnectDelaySeconds=10 CancelEntryOrdersOnDisable=True CancelExitOrdersOnDisable=True MaxRestarts=4 in 5 minutes
The highlighted bold/red thing is the strategy ID.Josh P.NinjaTrader Customer Service
Comment
-
Hi Josh,
thanks for the info.
That means I can note down the strategy id at the time when I enable the strategy, or afterwards if the strategy immediately submits orders, I'll see which instrument it's running on. It would be ideal though if the logging could contain those details about the strategy - instrument, time frame at least.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
602 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
347 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 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
559 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
558 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment