Outil d'indicateurs 1 heure pour le marché au comptant Binance

Intermédiaire

Ceci est unFinance, AIworkflow d'automatisation du domainecontenant 11 nœuds.Utilise principalement des nœuds comme Agent, HttpRequestTool, LmChatOpenAi, ExecuteWorkflowTrigger, MemoryBufferWindow, combinant la technologie d'intelligence artificielle pour une automatisation intelligente. Outil d'indicateurs Binance SM 1 heure

Prérequis
  • Peut nécessiter les informations d'identification d'authentification de l'API cible
  • Clé API OpenAI
Aperçu du workflow
Visualisation des connexions entre les nœuds, avec support du zoom et du déplacement
Exporter le workflow
Copiez la configuration JSON suivante dans n8n pour importer et utiliser ce workflow
{
  "id": "cmA9VcPQYLFfdLqE",
  "meta": {
    "instanceId": "a5283507e1917a33cc3ae615b2e7d5ad2c1e50955e6f831272ddd5ab816f3fb6"
  },
  "name": "Binance SM 1hour Indicators Tool",
  "tags": [],
  "nodes": [
    {
      "id": "a6f12769-4e3c-43b7-a288-dc9ca6bbd191",
      "name": "OpenAI Modèle de chat",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        760,
        840
      ],
      "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": "eec01f23-2628-4476-807f-a0a562496509",
      "name": "Mémoire simple",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        1000,
        840
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "804c71f0-7c43-4caa-8194-dd0b9e8fe2d5",
      "name": "Lorsqu'exécuté par un autre workflow",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        600,
        520
      ],
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "message"
            },
            {
              "name": "sessionId"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "551b288d-10ac-48e8-b4e1-ab36d0764b74",
      "name": "Agent d'indicateurs 1 heure Binance SM",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        920,
        520
      ],
      "parameters": {
        "text": "={{ $json.message }}",
        "options": {
          "systemMessage": "You are the **Binance 1-Hour Technical Indicator Agent**, responsible for calculating and delivering **1-hour interval trading signals** for any Binance Spot Market trading pair. You support higher-level agents in detecting medium-term trend direction, volatility phases, and price action momentum.\n\n---\n\n### 🔗 Connected Tools (via internal workflow)\n\nYou call the following indicators using `https://treasurium.app.n8n.cloud/webhook/1h-indicators`:\n\n* **RSI** (14-period)\n* **MACD** (12/26/9 standard)\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\": \"ETHUSDT\",\n  \"sessionId\": \"telegram_chat_id\"\n}\n```\n\n* `message`: A valid Binance Spot Market symbol (e.g., BTCUSDT, ADAUSDT)\n* `sessionId`: Workflow context or user ID for session memory\n\n---\n\n### 📊 Behavior\n\n* Extract `symbol` and format input for internal HTTP POST request:\n\n  ```\n  https://treasurium.app.n8n.cloud/webhook/1h-indicators\n  ```\n\n  ```json\n  {\n    \"symbol\": \"ETHUSDT\"\n  }\n  ```\n\n* Internally, fetch **40 latest 1h candles** via Binance API and calculate the indicators above.\n\n* You **merge all indicator outputs** and return them in a clean JSON array format ready for downstream reasoning or formatting.\n\n---\n\n### 🧠 Use Case Scenarios\n\n* Evaluate **1-hour trends** for swing trading alignment\n* Confirm **mid-frame structure** between 15m and 4h signals\n* Serve **Financial Analyst Tool** and **Quant AI Agent** with structured indicators\n* Support **entry/exit precision** on higher timeframes\n\n---\n\n### ⚠️ Operational Notes\n\n* Ensure enough data is returned from Binance (minimum 40 candles)\n* Validate input symbol format before execution\n* Use consistent timestamp alignment across all indicators\n* If any module fails, log the error but return valid others\n"
        },
        "promptType": "define"
      },
      "typeVersion": 1.9
    },
    {
      "id": "fb7b461e-fde3-4e9e-a1e8-e2c5e863e0fb",
      "name": "HTTP Outil de requête d'indicateurs 1h",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        1240,
        820
      ],
      "parameters": {
        "url": "https://treasurium.app.n8n.cloud/webhook/1h-indicators",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "symbol",
              "value": "={{ /*n8n-auto-generated-fromAI-override*/ $fromAI('parameters0_Value', ``, 'string') }}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "76059b12-d48f-46ec-87c0-bacfc6e9cb45",
      "name": "Note autocollante",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        200
      ],
      "parameters": {
        "color": 4,
        "height": 500,
        "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": "b090748a-f361-425e-962f-1bb36c17f6fa",
      "name": "Note autocollante8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        160
      ],
      "parameters": {
        "color": 5,
        "width": 500,
        "height": 540,
        "content": "## Main Reasoning Agent\nNode: **Binance SM 1hour Indicators Agent**\n\nYou are the **Binance 1-Hour Technical Indicator Agent**.\nYour job is to extract **momentum, direction, and structure using 1h indicators** for any Binance Spot Market symbol.\n\nIt:\n\n**Receives the symbol**\n\n**Calls the 1h indicator tool**\n\nReturns structured JSON and natural-language signal labels\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "af0c41e0-3e8c-4fa1-9012-a33913a71195",
      "name": "Note autocollante2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        700,
        780
      ],
      "parameters": {
        "width": 220,
        "height": 520,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n##  OpenAI Chat Model\nNode: OpenAI Chat Model\nModel: **gpt-4.1-mini**\n\nTranslates raw indicator data into:\n\n**Natural signal summaries\n\nMomentum interpretations**\n\nSummary suitable for Telegram display\n"
      },
      "typeVersion": 1
    },
    {
      "id": "8099df6b-8407-41c0-8948-b48bc44d5126",
      "name": "Note autocollante1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        940,
        780
      ],
      "parameters": {
        "color": 3,
        "width": 220,
        "height": 520,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## Memory System\nNode: Simple Memory\nStores **session context (sessionId, symbol, last query).**\nUsed for:\n\n**Persistent multi-turn interactions\n\nCross-agent symbol consistency**"
      },
      "typeVersion": 1
    },
    {
      "id": "c767ae7b-0043-4c0b-9d59-44dce6fca107",
      "name": "Note autocollante5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        780
      ],
      "parameters": {
        "color": 6,
        "width": 220,
        "height": 820,
        "content": "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## 1-Hour Indicator Webhook\nNode: HTTP Request 1h Indicators Tool\n\n**POSTs to:**\n\nhttps://treasurium.app.n8n.cloud/webhook/1h-indicators\n\nPayload:\n\njson\n{ \"symbol\": \"ETHUSDT\" }\n\nThe backend calculates:\n\n**RSI (14)\n\nMACD (12/26/9)\n\nBBANDS (20, 2 STD)\n\nEMA + SMA (20)\n\nADX (+DI / −DI, 14)**\n\nUsing the latest **40 candles of 1h kline data.**"
      },
      "typeVersion": 1
    },
    {
      "id": "b7c581f0-c1c9-4007-8c32-62f603b719a5",
      "name": "Note autocollante3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1660,
        -600
      ],
      "parameters": {
        "width": 1320,
        "height": 2820,
        "content": "# 🧪 Binance SM 1hour Indicators Tool – Documentation\n\nThis workflow calculates and interprets technical trading indicators using **1-hour candlestick data** from Binance for any Spot Market pair. It provides medium-term signals and serves as the core engine for swing-trade setup validation.\n\n---\n\n## 🎯 Purpose\n\n* Fetches the latest 40 × 1h klines for a symbol\n* Calculates key indicators: RSI, MACD, BBANDS, SMA, EMA, ADX\n* Labels signals using GPT (e.g., “Neutral RSI”, “MACD Crossover Up”)\n* Returns structured JSON + natural-language summary ready for use in Telegram or AI agents\n\n---\n\n## ⚙️ Key Components\n\n| Node Name                           | Function                                                             |\n| ----------------------------------- | -------------------------------------------------------------------- |\n| `When Executed by Another Workflow` | Trigger: This is not a standalone tool; it's triggered via sub-agent |\n| `Binance SM 1hour Indicators Agent` | Core logic agent that orchestrates HTTP call and formats data        |\n| `HTTP Request 1h Indicators Tool`   | Calls backend webhook that calculates the actual indicator values    |\n| `OpenAI Chat Model (gpt-4.1-mini)`  | Interprets indicator values into human-readable signal summaries     |\n| `Simple Memory`                     | Tracks session context (symbol, user ID, previous query)             |\n\n---\n\n## 📥 Input Format\n\nExpected input when called by another workflow:\n\n```json\n{\n  \"message\": \"ETHUSDT\",\n  \"sessionId\": \"telegram_chat_id\"\n}\n```\n\n---\n\n## 🔧 Indicator Calculation Logic\n\nThis tool POSTs data to an internal webhook:\n\n**Endpoint:**\n\n```\nhttps://treasurium.app.n8n.cloud/webhook/1h-indicators\n```\n\n**Payload:**\n\n```json\n{\n  \"symbol\": \"ETHUSDT\"\n}\n```\n\n**Backend calculates:**\n\n* **RSI (14)**\n* **MACD (12/26/9)**\n* **BBANDS (20, 2×STD)**\n* **SMA (20)**\n* **EMA (20)**\n* **ADX (14)** with DI+/DI−\n\nIt uses the latest **40 × 1h candles** pulled from Binance.\n\n---\n\n## 🧠 GPT Analysis\n\nAfter fetching the numeric data, the workflow sends it to the `OpenAI Chat Model` using gpt-4.1-mini.\n\nThe model:\n\n* Identifies overbought/oversold signals (RSI)\n* Detects MACD crossover or divergence\n* Labels trend strength (ADX > 25 = strong)\n* Provides a short summary in Telegram-readable format\n\n**Example Output:**\n\n```\n📊 1h Technical Overview – ETHUSDT\n\n• RSI: 59 (Neutral)  \n• MACD: Bullish Crossover  \n• BBANDS: Price at Upper Band  \n• EMA > SMA → Positive Slope  \n• ADX: 28 → Moderate Trend Strength\n```\n\n---\n\n## 🧩 Use Cases\n\n| Scenario                           | Behavior                                                        |\n| ---------------------------------- | --------------------------------------------------------------- |\n| Part of full market analysis       | Helps confirm swing-trade setups in Quant AI Agent              |\n| User asks “What’s BTC’s 1h trend?” | Tool gives labeled indicators with interpretation               |\n| Risk filter for Financial Analyst  | Cross-checks high-probability entries via momentum confirmation |\n\n---\n\n## 📦 Installation Instructions\n\n1. **Import workflow** into your n8n instance\n2. Ensure backend webhook `/1h-indicators` is reachable\n3. Add your OpenAI API key to enable GPT node\n4. Confirm it's triggered by:\n\n   * Binance Financial Analyst Tool\n   * Binance Spot Market Quant AI Agent\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.\nThis tool and its architecture—including API chaining, reasoning flow, and Telegram summary generation—are proprietary. Commercial use, redistribution, or duplication is prohibited without an active license.\n"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "9868a86d-7b04-4db6-8587-66e6cbdee043",
  "connections": {
    "eec01f23-2628-4476-807f-a0a562496509": {
      "ai_memory": [
        [
          {
            "node": "551b288d-10ac-48e8-b4e1-ab36d0764b74",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "a6f12769-4e3c-43b7-a288-dc9ca6bbd191": {
      "ai_languageModel": [
        [
          {
            "node": "551b288d-10ac-48e8-b4e1-ab36d0764b74",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "fb7b461e-fde3-4e9e-a1e8-e2c5e863e0fb": {
      "ai_tool": [
        [
          {
            "node": "551b288d-10ac-48e8-b4e1-ab36d0764b74",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "804c71f0-7c43-4caa-8194-dd0b9e8fe2d5": {
      "main": [
        [
          {
            "node": "551b288d-10ac-48e8-b4e1-ab36d0764b74",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Foire aux questions

Comment utiliser ce workflow ?

Copiez le code de configuration JSON ci-dessus, créez un nouveau workflow dans votre instance n8n et sélectionnez "Importer depuis le JSON", collez la configuration et modifiez les paramètres d'authentification selon vos besoins.

Dans quelles scénarios ce workflow est-il adapté ?

Intermédiaire - Finance, Intelligence Artificielle

Est-ce payant ?

Ce workflow est entièrement gratuit et peut être utilisé directement. Veuillez noter que les services tiers utilisés dans le workflow (comme l'API OpenAI) peuvent nécessiter un paiement de votre part.

Informations sur le workflow
Niveau de difficulté
Intermédiaire
Nombre de nœuds11
Catégorie2
Types de nœuds6
Description de la difficulté

Adapté aux utilisateurs expérimentés, avec des workflows de complexité moyenne contenant 6-15 nœuds

Auteur
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.

Liens externes
Voir sur n8n.io

Partager ce workflow

Catégories

Catégories: 34