This article explains the Riskanto messages scheduled close missed and window end missed: why the scheduled close (end-of-day flatten) or a trading window's close did not run, what Riskanto did instead, and what to do. It also covers the Scheduled close window (minutes) setting and the Activity panel's lines.
The messages read, for example:
-
Sim101: scheduled close missed: The close planned for 15:55 (exchange time) did not run (Riskanto was not running). The positions are still open: close them by hand if needed. then a line saying until when new entries are refused, and Still open: MES 12-26 1
- Sim101: window end missed: Closing the positions at the window's end, 11:00 (exchange time), did not run (the account was not connected). The positions are still open: close them by hand if needed.
Short answer
A scheduled close, or a window end set to Close positions, runs only while NinjaTrader is running and the account is connected. If they were not ready at that time, Riskanto can still run it within the Scheduled close window (minutes), 5 by default. Past that, the close is missed and never run late: the positions are kept, nothing is closed, and new entries stay refused. Close the positions by hand if you still want them closed.
When you see the message
- Riskanto tells you once the account is connected again and has settled for a few seconds.
- A message window and a line in NinjaTrader's Alerts log appear only if a position is open. The Alerts line reads, for example, Sim101: the scheduled close at 15:55 did not run (Riskanto was not running). Still open: MES 12-26 1.
- If the account was flat, there is no message: only a line in the Activity panel.
The causes
| The cause in parentheses | What happened | What to do |
|---|---|---|
| Riskanto was not running | NinjaTrader was closed, or Riskanto had not started yet, at the close time. | Keep NinjaTrader open through the close. |
| the account was not connected | The connection was down at the close time and stayed down past the window. | Check the connection before the close. |
| the connection had not settled | The account was connected, but NinjaTrader had not yet shown its positions for a few seconds. | Connect a few minutes before the close. |
| No message: Scheduled close skipped or Window end skipped in Activity | The account was switched On after the close time. Nothing was flattened. | Switch the account On before the close time. |
In every case, closing orders still work, so you can close the positions yourself.
What Riskanto did, and did not do
- It did not close the positions and did not run the close late.
- After a missed scheduled close, new entries are refused until the next trading day opens.
- After a missed window end, new entries are refused while the account is outside its trading hours: until the next window or the next trading day.
- If a lock had already sent its own flatten, the scheduled close has nothing more to do: Activity says Scheduled close at 15:55: the lock's flatten, already sent, closes the account.
The Scheduled close window setting
Right-click the grid and choose Settings...; under Rules, Scheduled close window (minutes): How long after an account's scheduled close Riskanto may still flatten it, when NinjaTrader, the connection or Riskanto was not ready at the time. Past it the close is missed, never run late: new entries are still refused and the positions are kept. 1 to 60; 5 by default.
Example, with a close at 15:55 and the default of 5 minutes: if the connection comes back at 15:58, the close runs; if it comes back at 16:01, it is missed. With 60 minutes, a connection back up to 59 minutes after 15:55 still runs it. The setting does not change which positions are closed or whether new entries are refused.
The Activity panel's lines
| Event | Detail |
|---|---|
| Scheduled close missed | The scheduled close at 15:55 did not run (...) and is never run late: the positions (...) were kept. New entries are refused until the next trading day opens. If the account was flat: ... did not run (...); the account was flat. ... |
| Window end missed | Closing the positions at the window's end, 11:00, did not run (...) and is never run late: the positions (...) were kept. New entries are refused while the account is outside its trading hours. |
| Scheduled close skipped | The scheduled close at 15:55 had passed when the account was switched On: nothing was flattened. New entries are refused until the next trading day opens. |
| Window end skipped | The window's end at 11:00 had passed when the account was switched On: nothing was flattened. New entries are refused while the account is outside its trading hours. |
Example
An account has Close everything at 15:55 and holds MES 12-26 1. NinjaTrader is closed from 15:50 to 16:10. At 16:10, once the account is connected and settled, Riskanto shows Sim101: scheduled close missed with the cause Riskanto was not running. The position is still open, and new entries are refused until the next trading day opens. Had the account been flat, only the Activity line would appear.
For how trading hours and the scheduled close work, see How trading hours work in Riskanto.
Comments
0 comments
Article is closed for comments.