Skip to main content

Tesla 1hour & 1day klines tool (Candlestick & volume AI pattern detector)

Workflow preview

Workflow preview
100%
Tesla 1hour & 1day klines tool (Candlestick & volume AI pattern detector) preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Detect key candlestick reversal patterns and volume divergence on Tesla (TSLA) using GPT 4.1 and real time OHLCV data. This AI agent evaluates 1 hour and 1 day candles and is an essential part o...

Best for

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

Tools used

n8n-nodes-base.executeworkflowtrigger, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.toolhttprequest, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Don Jayamaha Jr.

Original n8n.io source

1.1 Workflow description

Title
Tesla 1hour & 1day klines tool (Candlestick & volume AI pattern detector)
Workflow name
Tesla 1hour & 1day klines tool (Candlestick & volume AI pattern detector)

πŸ“‰ Detect key candlestick reversal patterns and volume divergence on Tesla (TSLA) using GPT-4.1 and real-time OHLCV data. This AI agent evaluates 1-hour and 1-day candles and is an essential part of the Tesla Financial Market Data Analyst Tool. It identifies signals like Doji, Engulfing, Hammer, and volume anomalies to support trade entry and exit logic.

⚠️ Not a standalone template β€” must be triggered by the Tesla Financial Market Data Analyst Tool πŸ” Requires:

  • Alpha Vantage Premium API Key
  • OpenAI GPT-4.1 access

πŸ” What This Agent Does

  1. Calls Alpha Vantage to fetch:

    • πŸ• 1-hour OHLCV data
    • πŸ“… 1-day OHLCV data
  2. GPT-4.1 evaluates:

    • πŸ“Š Candlestick patterns like Doji, Engulfing, Shooting Star
    • πŸ”„ Volume divergence (price/volume inconsistency)
  3. Returns a structured JSON output like:

{
  "summary": "Bearish signs detected on 1-day chart. A shooting star formed on high volume while RSI is elevated. Volume divergence seen on 1h chart as price rises but volume weakens.",
  "candlestickPatterns": {
    "1h": "None",
    "1d": "Shooting Star"
  },
  "volumeDivergence": {
    "1h": "Bearish",
    "1d": "None"
  },
  "ohlcv": {
    "1h": {
      "close": 174.1,
      "volume": 1430000,
      "high": 175.0,
      "low": 173.8
    },
    "1d": {
      "close": 188.3,
      "volume": 21234000,
      "high": 189.9,
      "low": 183.7
    }
  }
}

πŸ› οΈ Setup Instructions

  1. Import the Workflow

    • Name it: Tesla_1hour_and_1day_Klines_Tool
  2. Install Dependencies

  3. Add Required Credentials

    • Alpha Vantage Premium β†’ via HTTP Query Auth
    • OpenAI GPT-4.1 β†’ via OpenAI credentials
  4. Verify Web Access

    • This tool fetches data live from Alpha Vantage:

      • /query?function=TIME_SERIES_INTRADAY&interval=60min
      • /query?function=TIME_SERIES_DAILY
  5. Run via Execute Workflow Trigger This tool will activate only when called by the Financial Analyst Agent. Inputs:

    • message (optional)
    • sessionId (used for memory continuity)

🧠 Agent Architecture

Component Description
Candlestick Data Hour Fetches 60min TSLA candles via Alpha Vantage
Candlestick Data Day Fetches daily TSLA candles via Alpha Vantage
OpenAI Chat Model GPT-4.1 reasoning engine for pattern detection
Simple Memory Maintains short-term logic context
Tesla Klines Agent LangChain AI agent analyzing both candle and volume

πŸ“Œ Sticky Notes Overview

  • πŸ“˜ Workflow Purpose
  • 🧠 Short-Term Memory Notes
  • πŸ” 1h/1d Data Fetch Logic
  • πŸ“‰ Candlestick Pattern Types Detected
  • πŸ“Š Volume Divergence Definitions
  • πŸ€– GPT-4.1 Prompt Configuration

πŸ” Licensing & Support

Β© 2025 Treasurium Capital Limited Company Logic, pattern reasoning, and prompt structure are proprietary IP.

πŸ”— Don Jayamaha – LinkedIn πŸ”— n8n Creator Profile


πŸš€ Automate technical edge: detect TSLA candle reversals and volume anomalies with precision using GPT-4.1 and Alpha Vantage. Required by the Tesla Financial Market Data Analyst Tool.

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 - When Executed by Another Workflow

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

Block 2 - Simple Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 3 - Tesla 1hour and 1day Klines Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 4 - Candlestick Data Hour

Type / Role
@n8n/n8n-nodes-langchain.toolHttpRequest - toolHttpRequest
Config choices
Version 1.1

Block 5 - Candlestick Data Day

Type / Role
@n8n/n8n-nodes-langchain.toolHttpRequest - toolHttpRequest
Config choices
Version 1.1

Block 6 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 7 - Sticky Note

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

Block 8 - Sticky Note1

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

Block 9 - Sticky Note2

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

Block 10 - Sticky Note3

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

Block 11 - Sticky Note4

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

Block 12 - Sticky Note5

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

Block 13 - Sticky Note6

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

3. Summary Table

Workflow Tesla 1hour & 1day klines tool (Candlestick & volume AI pattern detector)
Complexity intermediate
Nodes 13
Categories Crypto Trading, AI Summarization
Author Don Jayamaha Jr
Published 16 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4099/4099.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 Tesla 1hour & 1day klines tool (Candlestick & volume AI pattern detector) do?

Detect key candlestick reversal patterns and volume divergence on Tesla (TSLA) using GPT 4.1 and real time OHLCV data. This AI agent evaluates 1 hour and 1 day candles and is an essential part o...

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.