Binance SM 4-Stunden-Indikator-Tool

Fortgeschritten

Dies ist ein Finance, AI-Bereich Automatisierungsworkflow mit 11 Nodes. Hauptsächlich werden Agent, HttpRequestTool, LmChatOpenAi, ExecuteWorkflowTrigger, MemoryBufferWindow und andere Nodes verwendet, kombiniert mit KI-Technologie für intelligente Automatisierung. Binance SM 4-Stunden-Indikator-Tool

Voraussetzungen
  • Möglicherweise sind Ziel-API-Anmeldedaten erforderlich
  • OpenAI API Key
Workflow-Vorschau
Visualisierung der Node-Verbindungen, mit Zoom und Pan
Workflow exportieren
Kopieren Sie die folgende JSON-Konfiguration und importieren Sie sie in n8n
{
  "id": "ex0hMYddq8rZdLHh",
  "meta": {
    "instanceId": "a5283507e1917a33cc3ae615b2e7d5ad2c1e50955e6f831272ddd5ab816f3fb6"
  },
  "name": "Binance SM 4hour Indicators Tool",
  "tags": [],
  "nodes": [
    {
      "id": "b0fd1949-684e-44dc-895b-82d8203d6cd2",
      "name": "OpenAI-Chat-Modell",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -600,
        1140
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "yUizd8t0sD5wMYVG",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "55b4c308-c31b-4709-a197-e06b2f85af28",
      "name": "Simple Speicher",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -360,
        1140
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "c8342413-5338-4018-b647-b5cf03e954a3",
      "name": "When Executed by Another Workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -780,
        880
      ],
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "message"
            },
            {
              "name": "sessionId"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "39651ecb-c1b5-45ad-8625-324d4a781c13",
      "name": "Binance SM 4-Stunden-Indikatoren Werkzeug Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -380,
        880
      ],
      "parameters": {
        "text": "={{ $json.message }}",
        "options": {
          "systemMessage": "You are the **Binance 4-Hour Technical Indicator Agent**, tasked with calculating and returning **4-hour interval trading signals** for any Binance Spot Market symbol. Your outputs help assess swing trend continuation, volatility compression, and reversal pressure within the medium-term structure.\n\n---\n\n### 🔗 Connected Tools (via internal workflow)\n\nYou call the following indicators using `https://treasurium.app.n8n.cloud/webhook/4h-indicators`:\n\n* **RSI** (14-period)\n* **MACD** (12/26/9 config)\n* **Bollinger Bands** (20-period, 2×STD)\n* **SMA** (20-period)\n* **EMA** (20-period)\n* **ADX** (14-period with DI+ and DI−)\n\n---\n\n### 📥 Expected Input Format\n\n```json\n{\n  \"message\": \"BNBUSDT\",\n  \"sessionId\": \"telegram_chat_id\"\n}\n```\n\n* `message`: Binance Spot Market symbol (e.g., BNBUSDT, AVAXUSDT)\n* `sessionId`: Passed context used for continuity and formatting\n\n---\n\n### 📊 Behavior\n\n* Accepts symbol and sends POST request to:\n\n  ```\n  https://treasurium.app.n8n.cloud/webhook/4h-indicators\n  ```\n\n  with payload:\n\n  ```json\n  {\n    \"symbol\": \"BNBUSDT\"\n  }\n  ```\n\n* Pulls **at least 40 4h candles** from Binance\n\n* Calculates each indicator in parallel and returns unified output\n\n---\n\n### 🧠 Use Case Scenarios\n\n* Evaluate **trend momentum and strength** in the 1–2 day horizon\n* Validate **higher timeframe support/resistance** zones\n* Confirm **breakouts or trend continuation** against noise\n* Feed **Financial Analyst** and **Quant AI Agent** for confident, multi-frame synthesis\n\n---\n\n### ⚠️ Operational Notes\n\n* Validate input symbol (must be valid and uppercase)\n* Ensure enough candles are available to compute full indicator set\n* Timestamps should align across outputs for accurate merges\n* Return fallback message if Binance API throttling or empty klines\n\n"
        },
        "promptType": "define"
      },
      "typeVersion": 1.9
    },
    {
      "id": "e881b384-5dfd-4b5b-b0c5-0f5e6ea1eb94",
      "name": "HTTP-Anfrage 4h Indicators Tool",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -120,
        1120
      ],
      "parameters": {
        "url": "https://treasurium.app.n8n.cloud/webhook/4h-indicators",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "symbol",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters0_Value', ``, 'string') }}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "7e11f80e-a646-4757-855c-afe7217a0e16",
      "name": "Haftnotiz",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -840,
        620
      ],
      "parameters": {
        "color": 4,
        "height": 440,
        "content": "## Workflow Trigger\nNode: When Executed by Another Workflow\nThis workflow does not start on its own — it is always triggered by:\n\n**Binance SM Financial Analyst Tool**\n\n**Binance Quant AI Agent**"
      },
      "typeVersion": 1
    },
    {
      "id": "fcf62b46-38c1-4ea7-bff5-41a9698935f7",
      "name": "Haftnotiz8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -500,
        720
      ],
      "parameters": {
        "color": 5,
        "width": 500,
        "height": 340,
        "content": "## System Reasoning Agent\nNode: **Binance SM 4hour Indicators Tool Agent**\n\nSystem prompt defines this as a **swing trend analyzer**.\nIt interprets indicator outputs and transforms them into labeled sentiment for the 4h window."
      },
      "typeVersion": 1
    },
    {
      "id": "0bc45ef5-54fd-419c-b392-a70b2c2cd513",
      "name": "Haftnotiz2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -660,
        1100
      ],
      "parameters": {
        "width": 220,
        "height": 600,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n##  OpenAI Chat Model\nNode: OpenAI Chat Model **(gpt-4.1-mini)**\n\nInterprets indicator values and returns Telegram-friendly summaries:\n\n\n•** RSI: 65 → Slightly overbought  \n• MACD: Bullish cross  \n• BB: Expanding volatility  \n• EMA > SMA → Uptrend  \n• ADX: 31 → Trend **strengthening"
      },
      "typeVersion": 1
    },
    {
      "id": "ac0bfd01-4371-463a-80bf-ceb511985c18",
      "name": "Haftnotiz1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -420,
        1100
      ],
      "parameters": {
        "color": 3,
        "width": 220,
        "height": 520,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## Context Memory\nNode: Simple Memory\nStores session variables like symbol and prior state.\n\nUseful for:\n\n**Inter-agent coordination\n\nSymbol recall\n\nMulti-turn interaction state tracking**"
      },
      "typeVersion": 1
    },
    {
      "id": "eb18f07d-536d-4312-9a10-ae1ba5dce118",
      "name": "Haftnotiz5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -180,
        1100
      ],
      "parameters": {
        "color": 6,
        "width": 220,
        "height": 1000,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## Webhook Request (Core Tool)\nNode: HTTP Request 4h Indicators Tool\n\n**POSTs to:**\n\nhttps://treasurium.app.n8n.cloud/webhook/4h-indicators\n\nPayload:\n\njson\n{ \"symbol\": \"BNBUSDT\" }\n\nThis backend:\n\n**Pulls 40 candles of 4h OHLCV from Binance**\n\nCalculates:\n\n**RSI (14)\n\nMACD (12,26,9)\n\nBollinger Bands (20/2)\n\nSMA (20)\n\nEMA (20)\n\nADX (14, +DI, −DI)**\n\nReturns a clean JSON object with all indicators and signal summaries.\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "8a089b09-0478-45e8-ba59-e27c7448ef05",
      "name": "Haftnotiz3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -400
      ],
      "parameters": {
        "width": 1280,
        "height": 2760,
        "content": "# ⏳ Binance SM 4hour Indicators Tool – Documentation\n\nA medium-term trend analyzer for the Binance Spot Market. This tool calculates and interprets key trading indicators using 4-hour candle data to help validate breakout setups, momentum continuation, and trend strength.\n\n---\n\n## 🎯 Purpose\n\n* Pulls the latest 40×4h OHLCV candles for a symbol from Binance\n* Calculates core technical indicators for swing-trade insights:\n\n  * RSI, MACD, Bollinger Bands, SMA, EMA, ADX\n* Returns structured Telegram-ready signals interpreted via GPT\n* Supports the **Quant AI Agent** and **Financial Analyst Tool** for higher-timeframe confirmations\n\n---\n\n## ⚙️ Workflow Components\n\n| Node                                | Role                                                            |\n| ----------------------------------- | --------------------------------------------------------------- |\n| `When Executed by Another Workflow` | Triggered by parent workflows                                   |\n| `Binance SM 4hour Indicators Agent` | Core reasoning agent (routes inputs, interprets outputs)        |\n| `HTTP Request 4h Indicators Tool`   | Sends POST to `/webhook/4h-indicators` for raw indicator values |\n| `OpenAI Chat Model (gpt-4.1-mini)`  | Transforms raw values into labeled, human-readable analysis     |\n| `Simple Memory`                     | Tracks user symbol and session for contextual coordination      |\n\n---\n\n## 📥 Input Format\n\n```json\n{\n  \"message\": \"AVAXUSDT\",\n  \"sessionId\": \"telegram_chat_id\"\n}\n```\n\n* `message`: Any valid Binance trading pair (uppercase required)\n* `sessionId`: Used to persist Telegram or session-based memory\n\n---\n\n## 🔧 Indicator Calculation Details\n\n**Webhook Called:**\n\n```\nhttps://treasurium.app.n8n.cloud/webhook/4h-indicators\n```\n\n**POST Payload:**\n\n```json\n{\n  \"symbol\": \"AVAXUSDT\"\n}\n```\n\n**Calculated Indicators:**\n\n| Name           | Description                                        |\n| -------------- | -------------------------------------------------- |\n| RSI (14)       | Overbought / oversold indicator                    |\n| MACD (12,26,9) | Momentum trend strength / crossover signals        |\n| BBANDS (20,2)  | Volatility compression and breakout identification |\n| SMA (20)       | Medium-term baseline                               |\n| EMA (20)       | Reactivity to momentum                             |\n| ADX (14)       | Trend strength + DI+/DI− comparison                |\n\n---\n\n## 🧠 GPT Analysis Output\n\nThe GPT node interprets each indicator and formats results for user consumption:\n\n**Example Output:**\n\n```\n🕓 4h Technical Signals – AVAXUSDT\n\n• RSI: 64 → Slightly Bullish  \n• MACD: Bullish Cross above baseline  \n• BB: Upper band touch – volatility expanding  \n• EMA > SMA → Confirmed Upside Momentum  \n• ADX: 31 → Strengthening Trend\n```\n\n---\n\n## 📚 Use Case Scenarios\n\n| Use Case                                        | Result                                                           |\n| ----------------------------------------------- | ---------------------------------------------------------------- |\n| Evaluating macro-swing trend                    | Confirms breakout setups or continuation risk                    |\n| Filtering false breakouts on 1h                 | ADX, MACD trend detection help anchor confidence                 |\n| Multi-frame confluence inside Financial Analyst | Used in tandem with 1h + 1d indicators for trade signal stacking |\n\n---\n\n## 🛠️ Installation Steps\n\n1. **Import** this JSON into your n8n workspace.\n2. **Connect GPT API** to the OpenAI Chat Model node.\n3. **Ensure webhook** `/webhook/4h-indicators` is active and receives valid symbols.\n4. **Parent workflows** that may trigger this:\n\n   * Binance SM Financial Analyst Tool\n   * Binance Spot Market Quant AI Agent\n\n---\n\n## 🧾 Output Format (Telegram)\n\n* Emoji-labeled\n* Bullet-point structure\n* Timeframe noted explicitly\n* No raw JSON exposed\n\n---\n\n## 🔐 Licensing & Support\n\n🔗 **Don Jayamaha – LinkedIn**\n[http://linkedin.com/in/donjayamahajr](http://linkedin.com/in/donjayamahajr)\n\n© 2025 Treasurium Capital Limited Company. All rights reserved.\nThe logic, structure, and orchestration of this tool are proprietary and protected under U.S. copyright and international IP law. Redistribution or resale without license is prohibited."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ddffb52d-ba6d-45b4-8f7a-8f7009bfaa15",
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Binance SM 4-Stunden-Indikatoren Tool Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Binance SM 4-Stunden-Indikatoren Tool Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request 4h Indicators Tool": {
      "ai_tool": [
        [
          {
            "node": "Binance SM 4-Stunden-Indikatoren Tool Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "c8342413-5338-4018-b647-b5cf03e954a3": {
      "main": [
        [
          {
            "node": "Binance SM 4-Stunden-Indikatoren Tool Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Häufig gestellte Fragen

Wie verwende ich diesen Workflow?

Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.

Für welche Szenarien ist dieser Workflow geeignet?

Fortgeschritten - Finanzen, Künstliche Intelligenz

Ist es kostenpflichtig?

Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.

Workflow-Informationen
Schwierigkeitsgrad
Fortgeschritten
Anzahl der Nodes11
Kategorie2
Node-Typen6
Schwierigkeitsbeschreibung

Für erfahrene Benutzer, mittelkomplexe Workflows mit 6-15 Nodes

Autor
Don Jayamaha Jr

Don Jayamaha Jr

@don-the-gem-dealer

With 12 years of experience as a Blockchain Strategist and Web3 Architect, I specialize in bridging the gap between traditional industries and decentralized technologies. My expertise spans tokenized assets, crypto payment integrations, and blockchain-driven market solutions.

Externe Links
Auf n8n.io ansehen

Diesen Workflow teilen

Kategorien

Kategorien: 34