{
  "name": "Signal Alert",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "signal",
        "responseMode": "onReceived",
        "options": {}
      },
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{$json[\"body\"][\"confidence\"]}}",
              "operation": "largerEqual",
              "value2": 0.65
            }
          ]
        }
      },
      "name": "Filter by Confidence",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        460,
        300
      ]
    },
    {
      "parameters": {
        "chatId": "={{$env.TELEGRAM_CHAT_ID}}",
        "text": "=\ud83d\udea6 *{{$json[\"body\"][\"direction\"] === \"long\" ? \"\ud83d\udfe2 LONG\" : \"\ud83d\udd34 SHORT\"}}* {{$json[\"body\"][\"symbol\"]}}\n\n\ud83d\udcca Confidence: {{($json[\"body\"][\"confidence\"] * 100).toFixed(0)}}%\n\u23f1 Timeframe: {{$json[\"body\"][\"timeframe\"]}}\n\n\ud83d\udcb0 Entry: {{$json[\"body\"][\"entry_price\"]}}\n\ud83d\uded1 SL: {{$json[\"body\"][\"stop_loss\"]}}\n\ud83c\udfaf TP1: {{$json[\"body\"][\"take_profit_1\"]}}\n\ud83c\udfaf TP2: {{$json[\"body\"][\"take_profit_2\"]}}\n\ud83d\udcd0 R:R {{$json[\"body\"][\"risk_reward\"]}}",
        "additionalFields": {
          "parse_mode": "Markdown"
        }
      },
      "name": "Send Telegram",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1,
      "position": [
        680,
        220
      ],
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Filter by Confidence",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter by Confidence": {
      "main": [
        [
          {
            "node": "Send Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {},
  "tags": [
    "trading",
    "signals"
  ]
}