Skip to main content

Generate crypto trading signals from Binance data with GPT-4o and Telegram

Workflow preview

Workflow preview
100%
Generate crypto trading signals from Binance data with GPT-4o and Telegram preview
Open on n8n.io

1. Workflow Overview

Automated crypto TA scanner that calculates 15+ indicators from Binance data, uses AI to generate objective BUY/SELL/HOLD signals with entry/SL/TP levels, and delivers alerts via Telegram with Goog...

Best for

  • Crypto Trading automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest, n8n-nodes-base.merge, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.scheduletrigger, n8n-nodes-base.if

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Đại Khiêm Như.

Original n8n.io source

1.1 Workflow description

Title
Generate crypto trading signals from Binance data with GPT-4o and Telegram
Workflow name
Generate crypto trading signals from Binance data with GPT-4o and Telegram

Automated crypto TA scanner that calculates 15+ indicators from Binance data, uses AI to generate objective BUY/SELL/HOLD signals with entry/SL/TP levels, and delivers alerts via Telegram with Google Sheets logging.

Who is this for?

Crypto traders and enthusiasts who want automated, objective technical analysis of their watchlist — without manually checking charts or relying on paid signal groups. Works for both beginners (just follow the signals) and experienced traders (use as a second opinion alongside your own analysis).

What it does

This workflow runs every 4 hours and automatically:

  1. Reads your watchlist from Google Sheets — add or remove coins anytime, no workflow changes needed
  2. Fetches real-time market data from Binance public API (4H klines, daily klines, 24h ticker, order book depth) — no Binance API key required
  3. Calculates 15+ technical indicators natively in JavaScript — RSI-14, EMA20/50, full MACD (line + signal + histogram + crossover detection), Bollinger Bands (width + position %), buy/sell volume ratio, candlestick pattern recognition (Hammer, Shooting Star, Doji, Three White Soldiers, Three Black Crows), and price structure analysis. No external TA library or paid API needed.
  4. Analyzes with AI using a structured 5-step scoring system — the prompt forces the AI to list all bearish signals, all bullish signals, assess conflicts, evaluate reliability based on volume, then conclude. Scoring starts from 5 (neutral) with strict rules: +1 per confirming signal, −0.5 per conflict, automatic HOLD when signals are ambiguous.
  5. Returns actionable trading signals — BUY/SELL/HOLD with entry price, stop-loss (2–5%), take-profit (min 1:2 R:R), confidence score, risk level, and a list of any conflicting signals
  6. Sends formatted alerts to Telegram (only BUY/SELL — no HOLD spam) and logs all results to Google Sheets for tracking history

Key features that make this different

  • Single self-contained workflow — no sub-workflows or external dependencies to set up. Import one file and you're ready.
  • All TA computed in native JavaScript — RSI, EMA, MACD, Bollinger Bands, volume analysis, and candlestick patterns are calculated inside Code nodes. Zero reliance on third-party TA APIs.
  • Multi-timeframe analysis — uses 1D candles for macro trend context (trend direction, EMA slope, daily RSI) and 4H candles for primary trading signals. The AI is instructed to use daily trend as context without letting it override 4H evidence.
  • Anti-bias prompt engineering — the AI prompt includes explicit no-entry rules (auto HOLD on low volume + weak patterns, balanced signals, or negative MACD without crossover), confidence caps when signals conflict, and mandatory risk escalation when daily RSI is overbought.
  • Candlestick pattern recognition — detects both single-candle patterns (Hammer, Shooting Star, Doji) and 3-candle patterns (Three White Soldiers, Three Black Crows, Hammer After Decline, Star After Rally).
  • Order book pressure — analyzes top 5 bid/ask levels to gauge real-time buying vs selling pressure.
  • Google Sheets as both input and output — watchlist tab for easy coin management, results tab for historical tracking with appendOrUpdate (upsert by symbol).

How to set up

  1. Create a Google Sheet with two tabs:
  • watchlist — add a symbol column with your coins (e.g., BTCUSDT, ETHUSDT, SOLUSDT)
  • chatgpt — this will be auto-populated with analysis results
  1. Import the workflow into n8n
  2. Connect three credentials:
  • Google Sheets (OAuth2) — for reading watchlist and writing results
  • OpenAI — GPT-4o recommended for best analysis quality
  • Telegram — create a bot via @BotFather and set your chat ID
  1. Paste your Google Sheet document ID into both Google Sheets nodes
  2. Set the Telegram chat ID in the "Send Telegram Alert" node
  3. Activate — the workflow runs every 4 hours automatically

Requirements

  • OpenAI API key (GPT-4o recommended, GPT-4o-mini also works)
  • Google Sheets OAuth2 credentials
  • Telegram Bot Token (free via @BotFather)
  • No Binance API key needed — all data comes from public endpoints

Customization ideas

  • Change the schedule trigger interval (e.g., every 1 hour for more frequent scans)
  • Adjust the kline interval in the HTTP nodes (e.g., 1h instead of 4h)
  • Modify the AI scoring rules in the "Build AI Prompt" node to match your risk tolerance
  • Add more coins to your Google Sheets watchlist at any time
  • Replace OpenAI with another LLM provider by updating the AI node

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Loop Over Watchlist Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 10 - Fetch 4h Kline Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 11 - Fetch 24h Ticker Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 12 - Merge Market Data

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 13 - Fetch Order Book Depth

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 14 - Construct AI Analysis Prompt

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Compute 4h Indicators

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Compute Order Book Pressure

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 17 - Flatten Market Data

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Fetch 1d Kline Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 19 - Compute Daily Indicators

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Parse AI Signal

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - AI Technical Analysis

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2.1

Block 22 - Every 4h Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.3

Block 23 - Check Trade Signal

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 24 - Prepare Telegram Notification

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Showing the first 24 of 27 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate crypto trading signals from Binance data with GPT-4o and Telegram
Complexity advanced
Nodes 27
Categories Crypto Trading, AI Summarization
Author Đại Khiêm Như
Published 20 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15844/15844.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate crypto trading signals from Binance data with GPT-4o and Telegram do?

Automated crypto TA scanner that calculates 15+ indicators from Binance data, uses AI to generate objective BUY/SELL/HOLD signals with entry/SL/TP levels, and delivers alerts via Telegram with Goog...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading, AI Summarization use case.