Appearance
Are you an LLM? You can read better optimized documentation at /safety-and-reliability/emergency-controls.md for this page in Markdown format
Emergency Controls
Automated systems handle the vast majority of scenarios. But when something goes seriously wrong -- a flash crash, a broker failure, or a position that needs to be closed immediately -- you need the ability to act fast without navigating menus or waiting for processing.
TTMT provides four emergency control systems: a kill switch for immediate position closure, recovery guidance that activates at loss thresholds, real-time health indicators for at-a-glance system status, and staleness detection that warns you when displayed data may be outdated.
Kill Switch
The kill switch is a one-click emergency control that closes open positions immediately. It is accessible from the dashboard header and the Live View page -- the two places you are most likely to be when you need it.
Two Scopes
| Scope | What It Closes | When to Use |
|---|---|---|
| All | Every open position on the account, including manually placed trades | Broker account emergency, margin call imminent, full exit needed |
| TTMT Only | Only positions that were opened by TTMT | TTMT-specific issue; preserve your manual trades |
The scope selection is presented clearly in the confirmation dialog so there is no ambiguity about what will happen.
Confirmation Dialog
The kill switch requires explicit confirmation before executing. The dialog:
- States the selected scope clearly ("Close ALL positions" or "Close TTMT-managed positions only").
- Shows the number of positions that will be affected.
- Requires a deliberate click to confirm.
- Cannot be triggered accidentally from a single tap.
DANGER
The kill switch is irreversible. Once confirmed, all affected positions will be closed at market price. There is no undo. Use it only when you genuinely need to exit immediately.
Execution Model
Key Design Decisions
Simultaneous closure. All positions are closed simultaneously, not one by one. If you have 20 open positions, waiting for each one to close before starting the next could take minutes. Simultaneous closure completes in seconds.
More importantly, TTMT continues closing remaining positions even if individual closures fail. Every closure is attempted and complete results are reported.
Pausing background updates during execution. While the kill switch is running, background updates for the affected trades are paused. This prevents timing conflicts where a TP redistribution or breakeven modification interferes with the closure process. Once all positions are closed, normal operations resume and final state is saved.
Immediate UI feedback. The dashboard updates position status in real time as each closure confirms. You can see positions disappearing from the Live View as the kill switch executes.
Recovery Guidance
Recovery guidance is a proactive system that monitors your account's drawdown and provides severity-appropriate advice when losses accumulate. It does not take automatic action -- it informs and suggests.
Threshold-Based Triggering
| Drawdown Level | Severity | What Happens |
|---|---|---|
| 10% loss | Informational | Gentle notification with current drawdown percentage |
| 20% loss | Caution | Warning with suggested actions (reduce risk, pause channels) |
| 40% loss | Critical | Strong recommendation to pause all trading and review |
Severity-Based Messaging
Each severity level uses different language and suggests different actions:
10% Drawdown (Informational)
- Tone: Neutral, informative
- Message: Your account has drawn down by [X]%. This is within normal trading parameters, but worth monitoring.
- Suggested actions:
- Review recent losing trades for patterns
- Check if specific channels are underperforming
- Consider whether current risk settings are appropriate
20% Drawdown (Caution)
- Tone: Concerned, advisory
- Message: Your account has drawn down by [X]%. This is a significant drawdown that warrants attention.
- Suggested actions:
- Reduce risk per trade (lower lot size or risk percentage)
- Pause underperforming channels
- Review your risk management settings
- Consider pausing trading until you have reviewed the situation
40% Drawdown (Critical)
- Tone: Urgent, direct
- Message: Your account has drawn down by [X]%. This is a critical level of loss. Immediate action is recommended.
- Suggested actions:
- Pause all trading immediately
- Use the kill switch to close open positions if appropriate
- Review all channel performance data
- Contact your signal provider(s) if relevant
- Do not increase risk to "recover" losses
WARNING
The 40% threshold is a serious warning. Drawdowns beyond this level are extremely difficult to recover from -- a 40% loss requires a 67% gain to return to the original balance. TTMT is designed to help you avoid this situation, but if you reach it, the recovery guidance provides clear next steps.
How Drawdown Is Calculated
Recovery guidance uses your account's peak balance as the reference point. If your account peaked at $10,000 and the current balance is $8,000, the drawdown is 20%.
Drawdown % = (Peak Balance - Current Balance) / Peak Balance × 100The peak balance is tracked across the lifetime of the account, not just the current session.
Service Health Indicators
The dashboard header includes three dropdown indicators that provide real-time status for every critical system. These are always visible regardless of which page you are on.
3 Header Dropdowns
Trading Status
| Indicator Color | Meaning |
|---|---|
| Green | Connected, no safety pause active, actively trading |
| Yellow | Connected but safety pause is testing recovery, or minor issue |
| Red | Disconnected or safety pause is active |
Clicking the indicator opens a dropdown with details: connection state, safety pause state, number of active trades, and the timestamp of the last execution.
Signal Status
| Indicator Color | Meaning |
|---|---|
| Green | Processing normally, no backlog |
| Yellow | Pending signals waiting to be processed |
| Red | Signal processing has stalled or failed |
The dropdown shows the number of pending signals, recent signal count, last signal timestamp, and parse success rate.
System Health
| Indicator Color | Meaning |
|---|---|
| Green | All systems operational |
| Yellow | One or more systems degraded |
| Red | Critical system failure |
The dropdown shows broker connection status, Telegram connection status, service uptime, and the last successful synchronization time.
Status Bar
Below the header indicators, the status bar provides a compact summary showing:
- Service uptime
- Last synchronization timestamp
- Connection quality metric
- Active account identifier
This strip is always visible on the dashboard, providing a persistent status reference.
Synchronization Staleness Detection
Real-time position data is only useful if it is actually real-time. When synchronization with your broker is delayed or interrupted, the displayed positions, P&L values, and account metrics may be outdated. Acting on stale data is dangerous.
How Staleness Is Detected
The dashboard tracks synchronization status automatically. Data is considered current when:
- The live connection to your broker is active
- Position data has been updated within the expected interval
- The last synchronization completed successfully
When any of these conditions fail, the data is flagged as potentially stale.
Staleness Warning Banner
When data is flagged as stale, a prominent warning banner appears in the Live View:
Example Banner
Data may be outdated. The connection to your trading account is being re-established. Position data shown below may not reflect current market conditions. Avoid making trading decisions until synchronization resumes.
The banner:
- Appears prominently at the top of the Live View
- Cannot be dismissed (it clears automatically when sync resumes)
- Uses warning-level styling (yellow) to draw attention without causing panic
- Provides a clear explanation of what is happening and what to do
What To Do When You See the Banner
- Do not panic. Your positions are still protected by their stop losses and trailing stops on the broker.
- Avoid making manual changes based on the displayed data -- it may be stale.
- Wait for automatic recovery. TTMT will reconnect and resynchronize automatically.
- Check the System Health indicator for more detail on what is happening.
- If it persists for more than a few minutes, check the dashboard for any system-wide alerts.
Using Emergency Controls Together
The emergency systems are designed to work together for a complete response to critical situations:
Scenario: Rapid Account Drawdown
- Recovery guidance triggers at the 20% threshold, alerting you that losses are accumulating.
- You check the health indicators -- all green, meaning the system is functioning correctly. The losses are from market movement, not a system failure.
- You review the Live View and see several open positions with large unrealized losses.
- You decide to exit. You activate the kill switch with "TTMT Only" scope to close automated positions while preserving any manual trades.
- The kill switch closes all TTMT-managed positions in parallel.
- You review the results and decide to pause specific channels before re-enabling trading.
Scenario: Connection Issues During Volatile Market
- The staleness warning banner appears in Live View, indicating a sync delay.
- You check the System Health indicator -- yellow, showing broker connection is reconnecting.
- You do not use the kill switch, because your positions have server-side trailing stops that continue to protect them independently.
- After 30 seconds, the connection recovers. The banner clears. Position data refreshes.
- You verify positions in the Live View -- all trailing stops are intact, no unexpected closures.
Scenario: Suspected System Failure
- The Trading Status indicator turns red.
- The System Health indicator shows the TTMT service is not responding.
- You check the Live View -- the staleness banner is showing.
- Your positions are still protected by their broker-side stop losses, but no new signals will be processed.
- You decide whether to wait for automatic recovery or use the kill switch to exit all positions as a precaution.
Summary
| Control | Purpose | Activation |
|---|---|---|
| Kill Switch | Immediate position closure | Manual -- one-click with confirmation |
| Recovery Guidance | Loss-threshold alerts and advice | Automatic -- at 10%, 20%, 40% drawdown |
| Health Indicators | Real-time system status | Always visible in dashboard header |
| Staleness Detection | Stale data warning | Automatic -- when sync is delayed |
TIP
The best emergency is one that never happens. TTMT's automated safety systems (automatic safety pauses, speed controls, safety checks, breakeven automation) are designed to prevent situations that require manual intervention. The emergency controls exist as a final safety net -- not as a regular part of your trading workflow.
Related Pages
- Safety & Reliability Overview -- The five layers of defense
- Execution Safety -- Automatic safety pauses that prevent cascading failures
- Position Protection -- Automated position management
- Connection Resilience -- Automatic reconnection and recovery
- Fast Market Conditions -- How safety systems handle volatility

