INNER CODE UNIT · Python

safe_shutdown

codedpro/mt5-trade-split-manager · server.py:287

async def safe_shutdown():
    """Consolidate remaining TPs (TP2-TP5) to the TP2 level before going away."""
    return send_command_to_mt5({"action": "SAFE_SHUTDOWN"})


if __name__ == "__main__":
    print("🚀 Starting MT5 TCP Bridge Server...")
    print(f"   HTTP API: http://{HTTP_HOST}:{HTTP_PORT}  (auth: {'on' if API_KEY else 'off'})")
    uvicorn.run(app, host=HTTP_HOST, port=HTTP_PORT, reload=False, log_level="info")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…