I've been building this for a few months and wanted to share how it's put together in n8n.
What it does: watches gold (XAUUSD) on MetaTrader 5. When the code finds a trading setup, five AI "analysts" each give their view, they get a second round to react to each other, and a "head trader" agent makes the call. The decision goes to Telegram with the reasoning in plain words.
How it's built (7 workflows):
• Main desk: every 5 minutes it pulls candles from MT5 through a small Python bridge, finds setups in a Code node, holds the AI meeting, then a risk gate sizes the trade
• Loss & time guard: separate workflow that can close trades and pause the desk if daily/monthly loss limits hit
• Stop button: Telegram commands (/status, /stop) with long polling
• Outcome tracker: plays every setup idea out on real prices, traded or not, so each setup gets a live score
• Daily report, error alert, and an optional "shadow desk" to compare AI models on the same moments
• PostgreSQL stores every meeting, decision and score
Things I learned the hard way:
• Keep the money logic in code, not in the AI. The AI decides buy/sell/wait; code checks stops, sizing and limits and can say no.
• Score every idea, including the ones the AI rejected. Otherwise you never know what you missed.
• Windows Smart App Control blocks n8n's isolated-vm, so I had to use the legacy expression engine.
Happy to answer questions about the workflow design. Full disclosure: I sell it as a one-time download ($79) with a Windows installer. Install video here if you want to see it running: https://www.youtube.com/watch?v=O-rfixuMAos