Skip to content
All library documents

Diagnosing Common Live Trading Errors in Automated Strategies

Article FMZ guides

Summary

This guide describes common causes of failures and abnormal exits in live automated trading. It separates errors detectable before launch, such as static syntax problems, from runtime failures, including unchecked function return values, excessive memory use, unmanaged asynchronous requests, and deep recursion. It also covers exchange or network errors, platform-level API key failures after an account password change, Python version incompatibility in encrypted strategies, and interruptions caused by manually stopping a running strategy.

The central operational lesson is to validate returned data before using it, since an exchange or network error may lead to a separate program exception that actually stops execution. The guide gives symptom-level explanations and a few remediation steps, such as renewing API credentials and using a supported Python runtime. It is troubleshooting guidance rather than a trading method: it includes no strategy tests, reliability measurements, or systematic diagnostic workflow, and platform-specific details may change over time.

Key ideas

  • Syntax issues can often be caught in the editor or during backtesting before live deployment.
  • Unchecked or invalid function results are a common source of runtime exceptions.
  • Unbounded global data, unfinished asynchronous calls, and deep recursion can exhaust runtime resources.
  • Exchange and network errors may trigger a separate program exception when returned values are used without validation.
  • Some startup failures stem from invalid API credentials or an incompatible Python runtime.
  • A user-triggered stop during an operation can create an interruption log without indicating a strategy defect.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.