AutomationFlowsAI & RAG › Binance Sm 4hour Indicators Tool

Binance Sm 4hour Indicators Tool

ByDon Jayamaha Jr @don-the-gem-dealer on n8n.io

A medium-term trend analyzer for the Binance Spot Market that leverages core technical indicators across 4-hour candle data to provide human-readable swing-trade signals via AI.

Event trigger★★★☆☆ complexityAI-powered11 nodesOpenAI ChatMemory Buffer WindowExecute Workflow TriggerAgentHTTP Request Tool
AI & RAG Trigger: Event Nodes: 11 Complexity: ★★★☆☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #4745 — we link there as the canonical source.

This workflow follows the Agent → Execute Workflow Trigger recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "ex0hMYddq8rZdLHh",
  "name": "Binance SM 4hour Indicators Tool",
  "tags": [],
  "nodes": [
    {
      "id": "b0fd1949-684e-44dc-895b-82d8203d6cd2",
      "name": "OpenAI Chat Model",
      "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": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "55b4c308-c31b-4709-a197-e06b2f85af28",
      "name": "Simple Memory",
      "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 4hour Indicators Tool 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### \ud83d\udd17 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\u00d7STD)\n* **SMA** (20-period)\n* **EMA** (20-period)\n* **ADX** (14-period with DI+ and DI\u2212)\n\n---\n\n### \ud83d\udce5 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### \ud83d\udcca 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### \ud83e\udde0 Use Case Scenarios\n\n* Evaluate **trend momentum and strength** in the 1\u20132 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### \u26a0\ufe0f 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 Request 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": "Sticky Note",
      "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 \u2014 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": "Sticky Note8",
      "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": "Sticky Note2",
      "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\u2022** RSI: 65 \u2192 Slightly overbought  \n\u2022 MACD: Bullish cross  \n\u2022 BB: Expanding volatility  \n\u2022 EMA > SMA \u2192 Uptrend  \n\u2022 ADX: 31 \u2192 Trend **strengthening"
      },
      "typeVersion": 1
    },
    {
      "id": "ac0bfd01-4371-463a-80bf-ceb511985c18",
      "name": "Sticky Note1",
      "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": "Sticky Note5",
      "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, \u2212DI)**\n\nReturns a clean JSON object with all indicators and signal summaries.\n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "8a089b09-0478-45e8-ba59-e27c7448ef05",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -400
      ],
      "parameters": {
        "width": 1280,
        "height": 2760,
        "content": "# \u23f3 Binance SM 4hour Indicators Tool \u2013 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## \ud83c\udfaf Purpose\n\n* Pulls the latest 40\u00d74h 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## \u2699\ufe0f 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## \ud83d\udce5 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## \ud83d\udd27 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\u2212 comparison                |\n\n---\n\n## \ud83e\udde0 GPT Analysis Output\n\nThe GPT node interprets each indicator and formats results for user consumption:\n\n**Example Output:**\n\n```\n\ud83d\udd53 4h Technical Signals \u2013 AVAXUSDT\n\n\u2022 RSI: 64 \u2192 Slightly Bullish  \n\u2022 MACD: Bullish Cross above baseline  \n\u2022 BB: Upper band touch \u2013 volatility expanding  \n\u2022 EMA > SMA \u2192 Confirmed Upside Momentum  \n\u2022 ADX: 31 \u2192 Strengthening Trend\n```\n\n---\n\n## \ud83d\udcda 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## \ud83d\udee0\ufe0f 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## \ud83e\uddfe Output Format (Telegram)\n\n* Emoji-labeled\n* Bullet-point structure\n* Timeframe noted explicitly\n* No raw JSON exposed\n\n---\n\n## \ud83d\udd10 Licensing & Support\n\n\ud83d\udd17 **Don Jayamaha \u2013 LinkedIn**\n[http://linkedin.com/in/donjayamahajr](http://linkedin.com/in/donjayamahajr)\n\n\u00a9 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,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "ddffb52d-ba6d-45b4-8f7a-8f7009bfaa15",
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Binance SM 4hour Indicators Tool Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Binance SM 4hour Indicators Tool Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request 4h Indicators Tool": {
      "ai_tool": [
        [
          {
            "node": "Binance SM 4hour Indicators Tool Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Binance SM 4hour Indicators Tool Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

A medium-term trend analyzer for the Binance Spot Market that leverages core technical indicators across 4-hour candle data to provide human-readable swing-trade signals via AI.

Source: https://n8n.io/workflows/4745/ — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

A short-term technical analysis agent for 15-minute candles on Binance Spot Market pairs. Calculates and interprets key trading indicators (RSI, MACD, BBANDS, ADX, SMA/EMA) and returns structured summ

OpenAI Chat, Memory Buffer Window, Execute Workflow Trigger +2
AI & RAG

A precision trading signal engine that interprets 1-hour candlestick indicators for Binance Spot Market pairs using a GPT-4.1-mini LLM. Ideal for swing traders seeking directional bias and momentum cl

OpenAI Chat, Memory Buffer Window, Execute Workflow Trigger +2
AI & RAG

This advanced agent analyzes long-term price action in the Binance Spot Market using 1-day candles. It calculates key macro indicators like RSI, MACD, BBANDS, EMA, SMA, and ADX to identify high-confid

OpenAI Chat, Memory Buffer Window, Execute Workflow Trigger +2
AI & RAG

⏱️ Analyze Tesla (TSLA) short-term market structure and momentum using 6 technical indicators on the 15-minute timeframe. This AI agent tool is part of the Tesla Quant Trading AI Agent system. It is d

Execute Workflow Trigger, Memory Buffer Window, Agent +2
AI & RAG

🕒 Evaluate Tesla (TSLA) price action and market structure on the 1-hour timeframe using 6 real-time indicators. This sub-agent is designed to feed mid-term technical insights into the Tesla Financial

Execute Workflow Trigger, Memory Buffer Window, Agent +2