Files
mql-trading-bots/n8n-workflow-ssh-local.json
garfield 0894d18db4 WIP: 6+ weeks of uncommitted EA development and preset tuning
Confluence EA (v1.16 → v1.20):
- Per-EA realized P&L tracking via history deals
- Weekly drawdown protection
- Warmup bars, pivot cache, state persistence
- Point-scaled pivot thresholds, ranging ATR factor
- Market filling mode helper per symbol

Grid EA (v3.1 → v4.1):
- Adaptive filters, adaptive entry, spread filter
- Session filter, breakeven, correlation caps, range drift
- Profit protection (stop-after-profit, cycle reports)
- Edge cleanup v5.0 — close wrong-side positions outside grid
- Master one-shot shutdown, grid state persistence

Presets:
- Fix GetOut=Y shutdown bug on 4 grid presets
- Relax ADXMax 18→40, widen RSI 20/80 across grid presets
- Standardize daily drawdown 3%→5%, add weekly 10%
- Increase grid lots 0.01→0.03
- Normalize confluence ATR thresholds per pair
- Add XAGUSD, EURCHF, EURGBP, AUDNZD presets

Docs & DevOps:
- April 23 audit files (preset mismatch, code review, checklist)
- n8n workflow and validation infrastructure updates
- AI agent analyses in notes/

Known issues carried forward:
- Shared drawdown budget contamination (both EAs)
- Confluence ranging-market threshold inversion
- Older grid presets missing v4.1 safety controls
2026-05-12 09:02:25 -04:00

153 lines
3.0 KiB
JSON
Executable File

{
"name": "MQL Settings Monitor - SSH Localhost",
"nodes": [
{
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"hoursInterval": 6
}
]
}
},
"name": "Schedule - Every 6 Hours",
"type": "n8n-nodes-base.scheduleTrigger",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"authentication": "password",
"host": "127.0.0.1",
"port": 2222,
"username": "garfield",
"password": "=onelove01",
"command": "/home/garfield/mql-trading-bots/scripts/validate-settings.sh"
},
"name": "SSH - Run Validation",
"type": "n8n-nodes-base.ssh",
"typeVersion": 1,
"position": [
450,
300
],
"credentials": {
"sshPassword": {
"id": "local-ssh-creds",
"name": "Local SSH Creds"
}
}
},
{
"parameters": {
"conditions": {
"number": [
{
"value1": "={{ $json.code }}",
"operation": "notEqual",
"value2": 0
}
]
}
},
"name": "Has Issues?",
"type": "n8n-nodes-base.if",
"typeVersion": 1,
"position": [
650,
300
]
},
{
"parameters": {
"chatId": "={{ $env.TELEGRAM_CHAT_ID }}",
"text": "=🚨 <b>MQL Settings Issues Detected</b>\n\n<pre>{{ $json.stdout }}</pre>\n\n⏰ {{ new Date().toLocaleString() }}"
},
"name": "Telegram Alert",
"type": "n8n-nodes-base.telegram",
"typeVersion": 1,
"position": [
850,
200
],
"credentials": {
"telegramApi": {
"id": "telegram-bot-api",
"name": "Telegram Bot API"
}
}
},
{
"parameters": {},
"name": "Success - No Alert",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
850,
400
]
}
],
"connections": {
"Schedule - Every 6 Hours": {
"main": [
[
{
"node": "SSH - Run Validation",
"type": "main",
"index": 0
}
]
]
},
"SSH - Run Validation": {
"main": [
[
{
"node": "Has Issues?",
"type": "main",
"index": 0
}
]
]
},
"Has Issues?": {
"main": [
[
{
"node": "Telegram Alert",
"type": "main",
"index": 0
}
],
[
{
"node": "Success - No Alert",
"type": "main",
"index": 0
}
]
]
}
},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"tags": [
{
"name": "trading",
"id": "trading-tag"
},
{
"name": "mql5",
"id": "mql5-tag"
}
]
}