{ "name": "MQL Settings Monitor - Simple", "nodes": [ { "parameters": { "rule": { "interval": [ { "field": "hours", "hoursInterval": 6 } ] } }, "name": "Every 6 Hours", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1.1, "position": [250, 300] }, { "parameters": { "command": "cd /home/garfield/mql-trading-bots && ./scripts/validate-settings.sh" }, "name": "Run Validation Script", "type": "n8n-nodes-base.executeCommand", "typeVersion": 1, "position": [450, 300] }, { "parameters": { "conditions": { "conditions": [ { "leftValue": "={{ $json.stdout }}", "operator": "contains", "rightValue": "ISSUE" } ] } }, "name": "Issues Found?", "type": "n8n-nodes-base.if", "typeVersion": 2, "position": [650, 300] }, { "parameters": { "chatId": "={{ $env.TELEGRAM_CHAT_ID }}", "text": "=🚨 MQL Settings Issues Found:\n\n{{ $json.stdout }}\n\n⏰ {{ $now.format('YYYY-MM-DD HH:mm') }}" }, "name": "Send Telegram Alert", "type": "n8n-nodes-base.telegram", "typeVersion": 1.1, "position": [850, 200] }, { "parameters": { "content": "=✅ Settings check passed\n\n{{ $json.stdout }}", "options": {} }, "name": "Success - No Action", "type": "n8n-nodes-base.noOp", "typeVersion": 1, "position": [850, 400] } ], "connections": { "Every 6 Hours": { "main": [ [{ "node": "Run Validation Script", "type": "main", "index": 0 }] ] }, "Run Validation Script": { "main": [ [{ "node": "Issues Found?", "type": "main", "index": 0 }] ] }, "Issues Found?": { "main": [ [{ "node": "Send Telegram Alert", "type": "main", "index": 0 }], [{ "node": "Success - No Action", "type": "main", "index": 0 }] ] } }, "settings": { "executionOrder": "v1" } }