{
  "name": "Forex & gold trading signal handler for MT5 using webhooks (telegram/discord)",
  "nodes": [
    {
      "id": "66179924-dd72-44fe-af4f-8f05890210b1",
      "name": "Receive Signal (POST)",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -128,
        32
      ]
    },
    {
      "id": "ce4b5329-3860-4096-8d79-c59dd9950997",
      "name": "Store Signal",
      "type": "n8n-nodes-base.code",
      "position": [
        96,
        32
      ]
    },
    {
      "id": "7a126bb5-653a-4c6b-9e0b-5c6c927419cb",
      "name": "Respond to POST",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        320,
        32
      ]
    },
    {
      "id": "bd231a9c-304a-4645-b536-dcbf48d2b286",
      "name": "Get Pending Signals (GET)",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -128,
        272
      ]
    },
    {
      "id": "0210adb8-ea97-46c5-af50-26da913bf7c8",
      "name": "Fetch Pending Signals",
      "type": "n8n-nodes-base.code",
      "position": [
        96,
        272
      ]
    },
    {
      "id": "c409ec63-ea5d-4012-b529-b25b8e766fbf",
      "name": "Return Signals",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        320,
        272
      ]
    },
    {
      "id": "d7b4e851-6970-402d-9f76-9b94a80db020",
      "name": "Confirm Signal Processed (POST)",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -128,
        528
      ]
    },
    {
      "id": "73f15ad9-dbb5-4014-97ba-5ff293904b3f",
      "name": "Mark as Processed",
      "type": "n8n-nodes-base.code",
      "position": [
        96,
        528
      ]
    },
    {
      "id": "1a426e0a-b6a8-465f-9ed5-bba629b6a168",
      "name": "Confirm Response",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        320,
        528
      ]
    },
    {
      "id": "d0e90503-6907-421e-bd6f-68ac90e06abd",
      "name": "clear all signals",
      "type": "n8n-nodes-base.code",
      "position": [
        96,
        1296
      ]
    },
    {
      "id": "07312f36-c86f-4c23-a843-91cfddb148c5",
      "name": "Clear all signals (POST)",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -128,
        1296
      ]
    },
    {
      "id": "2d3ca391-1c25-4344-8efd-d73fcbc09df0",
      "name": "Market Order (POST)",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -128,
        800
      ]
    },
    {
      "id": "6e7ddcfc-1c3e-41b3-9331-093c4bc1dca2",
      "name": "market order code",
      "type": "n8n-nodes-base.code",
      "position": [
        96,
        800
      ]
    },
    {
      "id": "ffaa4024-5e5a-43cd-a799-ed53e4b3c6b9",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        320,
        800
      ]
    },
    {
      "id": "9bd50800-9b98-424f-b172-77843be8bd74",
      "name": "Limit Order (POST)",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -128,
        1040
      ]
    },
    {
      "id": "cae93806-72ea-48c8-95bd-8b8f76e15553",
      "name": "limit order code",
      "type": "n8n-nodes-base.code",
      "position": [
        96,
        1040
      ]
    },
    {
      "id": "529bdc52-8e79-4d54-bc9f-3fd2dddc65a8",
      "name": "Respond to Limit Order",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        320,
        1040
      ]
    },
    {
      "id": "72ae16f3-1b87-4b70-86cc-60650f6b1fa0",
      "name": "confirm signals are cleared",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        320,
        1296
      ]
    },
    {
      "id": "9d08f39b-4576-4058-861d-b5fe992ffca3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -880,
        -64
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "70951a9e-cc40-434a-9f58-52be5051a2ec",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -64
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "13ef651c-7156-4539-a7e1-8222eae9a909",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        704
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "228d5abb-7e35-4df8-9a28-241674bed305",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        192
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "dd9672e5-e49b-4cdd-82f3-03362ce7e507",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        1216
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "fad3e8d6-fda2-4aae-99ea-5e41205df1a8",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        448
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "c601a4e1-6339-4f5d-9ece-06cb681cd7e5",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        960
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "184bf191-99e5-44ed-af26-2ac0a027a123",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -64
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b81e0c05-befb-4e48-a073-a3745b1bedd7",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        448
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Store Signal": {
      "main": [
        [
          {
            "node": "Respond to POST",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "limit order code": {
      "main": [
        [
          {
            "node": "Respond to Limit Order",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mark as Processed": {
      "main": [
        [
          {
            "node": "Confirm Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "clear all signals": {
      "main": [
        [
          {
            "node": "confirm signals are cleared",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "market order code": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit Order (POST)": {
      "main": [
        [
          {
            "node": "limit order code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Market Order (POST)": {
      "main": [
        [
          {
            "node": "market order code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Pending Signals": {
      "main": [
        [
          {
            "node": "Return Signals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Signal (POST)": {
      "main": [
        [
          {
            "node": "Store Signal",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clear all signals (POST)": {
      "main": [
        [
          {
            "node": "clear all signals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Pending Signals (GET)": {
      "main": [
        [
          {
            "node": "Fetch Pending Signals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Confirm Signal Processed (POST)": {
      "main": [
        [
          {
            "node": "Mark as Processed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}