Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
RC2 - Auto Close Position enabling Killed strategy and open order
Collapse
X
-
Originally posted by NinjaTrader_PatrickH View PostHello NJA_MC,
Thank you for your response.
So the user case is that no matter what time you enable the 'Auto close position' option for the strategies and positions on the instruments set up in the 'Auto close position' option are immediately disabled/closed?
That is what happened at 4:01PM EST, I suspect that for some reason it is using GMT as it showed 8:01PM in the log file. So I suspect, but haven't had a chance to test it, that if I enabled it before 12:00 NOON (4:00PM GMT) it would have not disabled the strategies, not sure if it would shut down at 12:40PM EST and 4:40PM EST.
Leave a comment:
-
Hello NJA_MC,
Thank you for your response.
So the user case is that no matter what time you enable the 'Auto close position' option for the strategies and positions on the instruments set up in the 'Auto close position' option are immediately disabled/closed?
Leave a comment:
-
Thank you for your response, NJA_MC.
May I ask what Time Zone your PC is set to?
Leave a comment:
-
Originally posted by NinjaTrader_PatrickH View PostHello NJA_MC,
When setting the Auto Close Position did you restart NinjaTrader 8 afterwards? Had the Auto Close Position ever been set to 8:40 pm?
I will continue to test this on my end. Thank you for your report and details.
Leave a comment:
-
Hello NJA_MC,
When setting the Auto Close Position did you restart NinjaTrader 8 afterwards? Had the Auto Close Position ever been set to 8:40 pm?
I will continue to test this on my end. Thank you for your report and details.
Leave a comment:
-
Originally posted by NinjaTrader_PatrickH View PostHello NJA_MC,
Thank you for your post.
Can you attach a screenshot of the Options > Trading > Auto Close Position option?
Here you go, also please see my note EDIT on the first post you may have read it as I was creating the new post. At 4:40PM it also closed with an 8:40PM time stamp in the log.
Leave a comment:
-
Hello NJA_MC,
Thank you for your post.
Can you attach a screenshot of the Options > Trading > Auto Close Position option?
Leave a comment:
-
RC2 - Auto Close Position enabling Killed strategy and open order
I had an automated strategy running at 4:01:42PM and wanted to make sure the strategy exited at 4:40PM. I went to options and enabled the feature (4:40PM was already filled in since it is generally what I use for risk management).
Upon accepting the feature, I found that NT8 had disabled my active strategy and its active order. Looks like it flattened everything and that killed the strategy. The other strange thing is that is said it was TRIGGERED at 8:01:42PM (For hours ahead), but the log time stamp clearly shows the 16:01:42 time stamp. Seems like something isn't quite right. I have submitted the logs and trace files under #1588415.
2016-10-14 15:00:36:554|1|64|Instrument='ZB 12-16' Account='Account2' Average price=163.21875 Quantity=1 Market position=Short Operation=Operation_Add
2016-10-14 16:01:42:572|1|4|Auto close enabled=True: All
2016-10-14 16:01:42:949|1|64|Auto close on account 'Acccount1' triggered at '10/14/2016 8:01:42 PM' on all instruments
2016-10-14 16:01:42:949|1|64|Flatten account='Acccount1'
2016-10-14 16:01:42:949|1|64|Auto close on account 'Account2' triggered at '10/14/2016 8:01:42 PM' on all instruments
2016-10-14 16:01:42:949|1|64|Flatten account='Account2'
2016-10-14 16:08:40:711|1|4|Enabling NinjaScript strategy 'ShortOnly-DL01NONLomGenericInterfaceShortOnly/87066978' : On starting a real-time strategy - StartBehavior=WaitUntilFlat EntryHandling=All entries EntriesPerDirection=1 StopTargetHandling=Per entry execution ErrorHandling=Stop strategy, cancel orders, close positions ExitOnSessionClose=True / triggering 30 seconds before close SetOrderQuantityBy=Strategy ConnectionLossHandling=Recalculate DisconnectDelaySeconds=10 CancelEntriesOnStrategyDisable=False CancelExitsOnStrategyDisable=False Calculate=On bar close IsUnmanaged=False MaxRestarts=4 in 5 minutes
2016-10-14 16:40:00:431|1|64|Auto close on account 'Sim101' triggered at '10/14/2016 8:40:00 PM' on all instruments
2016-10-14 16:40:00:431|1|64|Flatten account='Sim101'
2016-10-14 16:40:00:520|1|64|Auto close on account 'Acccount1' triggered at '10/14/2016 8:40:00 PM' on all instruments
2016-10-14 16:40:00:534|1|64|Flatten account='Acccount1'
2016-10-14 16:40:00:534|1|64|Auto close on account 'Account2' triggered at '10/14/2016 8:40:00 PM' on all instruments
2016-10-14 16:40:00:534|1|64|Flatten account='Account2'
2016-10-14 16:40:00:535|1|4|Disabling NinjaScript strategy 'ShortOnly-DL01NONLomGenericInterfaceShortOnly/87066978'Last edited by NJA_MC; 10-14-2016, 02:43 PM.Tags: None
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by wzgy0920, 04-20-2024, 06:09 PM
|
2 responses
26 views
0 likes
|
Last Post
by wzgy0920
Today, 10:43 PM
|
||
Started by wzgy0920, 02-22-2024, 01:11 AM
|
5 responses
32 views
0 likes
|
Last Post
by wzgy0920
Today, 10:33 PM
|
||
Started by wzgy0920, Yesterday, 09:53 PM
|
2 responses
49 views
0 likes
|
Last Post
by wzgy0920
Today, 10:29 PM
|
||
Started by Kensonprib, 04-28-2021, 10:11 AM
|
5 responses
192 views
0 likes
|
Last Post
by Hasadafa
Today, 10:19 PM
|
||
Started by GussJ, 03-04-2020, 03:11 PM
|
11 responses
3,234 views
0 likes
|
Last Post Today, 08:07 PM |
Leave a comment: