特斯拉金融市场数据分析工具 n8n
高级
这是一个Finance, AI领域的自动化工作流,包含 17 个节点。主要使用 Agent, LmChatOpenAi, ToolWorkflow, ExecuteWorkflowTrigger, MemoryBufferWindow 等节点,结合人工智能技术实现智能自动化。 特斯拉金融市场数据分析工具(多时间框架技术AI代理)
前置要求
- •OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "4yfxfcCRXpvlzs8o",
"meta": {
"instanceId": "a5283507e1917a33cc3ae615b2e7d5ad2c1e50955e6f831272ddd5ab816f3fb6",
"templateCredsSetupCompleted": true
},
"name": "特斯拉金融市场数据分析工具 n8n",
"tags": [],
"nodes": [
{
"id": "61273b0f-ba1c-41ef-9e47-10ff49c69970",
"name": "当由另一个工作流执行时",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-160,
240
],
"parameters": {
"workflowInputs": {
"values": [
{
"name": "message"
},
{
"name": "sessionId"
}
]
}
},
"typeVersion": 1.1
},
{
"id": "e5db0516-2692-450a-83a9-3a78a540d9b6",
"name": "特斯拉金融市场数据分析师",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
280,
240
],
"parameters": {
"text": "={{ $json.message }}",
"options": {
"systemMessage": "You are the **Tesla Financial Market Data Analyst AI**, a specialized sub-agent responsible for transforming technical indicator data and candlestick behavior into structured trading insights for **Tesla (TSLA)**. Your findings are consumed by the Tesla Quant Trading AI Agent to support trading signal generation.\n\n---\n\n### 🛠️ Connected Sub-Agents & Tool Workflows:\n\nEach tool is executed **via HTTPS webhook calls**, returning **pre-processed, 20-point formatted JSON** from Alpha Vantage indicators. Formatting occurs in a secondary Code Node after data is fetched. Tools include:\n\n1. **Tesla 15-Minute Indicators Tool**\n • Use: Short-term sentiment, scalping triggers\n • Indicators: RSI, BBANDS, SMA, EMA, ADX, MACD\n • Interval: `15min`\n • Source: Alpha Vantage via webhook\n\n2. **Tesla 1-Hour Indicators Tool**\n • Use: Mid-term trend structure and signal validation\n • Indicators: RSI, BBANDS, SMA, EMA, ADX, MACD\n • Interval: `60min`\n • Source: Alpha Vantage via webhook\n\n3. **Tesla 1-Day Indicators Tool**\n • Use: Long-term trend confirmation and macro positioning\n • Indicators: RSI, BBANDS, SMA, EMA, ADX, MACD\n • Interval: `1d`\n • Source: Alpha Vantage via webhook\n\n4. **Tesla 1-Hour and 1-Day Klines Tool**\n • Use: Price action and candlestick pattern recognition\n • Features: OHLCV data, volume divergence, reversal patterns (e.g., Doji, Engulfing)\n • Source: Alpha Vantage OHLCV via webhook\n\n---\n\n### 🧩 Workflow Tasks:\n\n1. **Parse Structured Inputs**\n You receive formatted JSON for all indicators + OHLCV candles grouped by timeframe (15m, 1h, 1d).\n\n2. **Conduct Multi-Timeframe Technical Analysis**\n • Short-term: 15m + 1h\n • Medium-term: 1h + 1d\n • Long-term: 1d + Kline patterns\n • Check for: divergence, trend alignment, overbought/oversold conditions, MACD crossover, Bollinger breakout\n\n3. **Generate Final Signal**\n Classify technical stance as:\n\n * `Buy`, `Sell`, `Hold`, or `Cautious` (conflicting signals)\n * Include supporting indicators, exact values, and timeframe context\n * Attach confidence score between 0–1\n\n4. **Format Output in JSON** for downstream AI Agent:\n\n```json\n{\n \"summary\": \"TSLA momentum is weakening short-term. 1h MACD shows bearish crossover, RSI declining. 1d candles confirm potential reversal setup.\",\n \"signal\": \"Cautious Sell\",\n \"confidence\": 0.81,\n \"multiTimeframeInsights\": {\n \"15m\": {\n \"RSI\": 68.3,\n \"ADX\": 25.1,\n \"MACD\": { \"macd\": 0.53, \"signal\": 0.61 },\n \"Comment\": \"Momentum fading, MACD flattening\"\n },\n \"1h\": {\n \"RSI\": 65.0,\n \"MACD\": { \"macd\": -0.32, \"signal\": 0.11 },\n \"Comment\": \"Bearish crossover and lower highs forming\"\n },\n \"1d\": {\n \"BBANDS\": { \"upper\": 187.5, \"lower\": 173.2, \"close\": 186.8 },\n \"MACD\": { \"macd\": 1.03, \"signal\": 1.04 },\n \"Comment\": \"Approaching upper band resistance; sideways consolidation\"\n },\n \"candlestickPatterns\": {\n \"1h\": \"Doji\",\n \"1d\": \"Bearish Engulfing\"\n },\n \"volumeDivergence\": {\n \"1h\": \"Bearish\",\n \"1d\": \"Neutral\"\n }\n }\n}\n```\n\n---\n\n💡 **Note**: Only draw conclusions backed by the majority of timeframe-aligned signals. If indicators or patterns are mixed, issue a `Cautious` signal with balanced explanation.\n\n"
},
"promptType": "define"
},
"typeVersion": 1.8
},
{
"id": "392aebbe-dd43-4722-a123-c5f56fe2e866",
"name": "简单记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-40,
560
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "31f67f63-0ede-4009-b858-77e83bf769c8",
"name": "特斯拉15分钟指标工具",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
320,
560
],
"parameters": {
"name": "Tesla_15min_Indicators_Tool",
"workflowId": {
"__rl": true,
"mode": "list",
"value": "3zhWhO9278uRWxwU",
"cachedResultName": "Work Drive — Tesla 15min Indicators Tool"
},
"workflowInputs": {
"value": {
"message": "={{ $fromAI(\"message\",\"Populate this with a relevant message to this subagent\")}}",
"sessionId": "={{ $json.sessionId }}"
},
"schema": [
{
"id": "message",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "message",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "sessionId",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "sessionId",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"typeVersion": 2.1
},
{
"id": "d0f9868b-3ef2-49f9-b49b-0427e2c41413",
"name": "特斯拉1小时指标工具",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
660,
560
],
"parameters": {
"name": "Tesla_1hour_Indicators_Tool",
"workflowId": {
"__rl": true,
"mode": "list",
"value": "1T7cRj9q0qLQk7OH",
"cachedResultName": "Work Drive — Tesla 1hour Indicators Tool"
},
"workflowInputs": {
"value": {
"message": "={{ $fromAI(\"message\",\"Populate this with a relevant message to this subagent\")}}",
"sessionId": "={{ $json.sessionId }}"
},
"schema": [
{
"id": "message",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "message",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "sessionId",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "sessionId",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"typeVersion": 2.1
},
{
"id": "ab66b9b2-e6b8-4be2-a02d-708fbc63aa1a",
"name": "特斯拉1日指标工具",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
1000,
580
],
"parameters": {
"name": "Tesla_1day_Indicators_Tool",
"workflowId": {
"__rl": true,
"mode": "list",
"value": "zFSKcrc1jZmpXoaz",
"cachedResultName": "Work Drive — Tesla 1day Indicators Tool"
},
"workflowInputs": {
"value": {
"message": "={{ $fromAI(\"message\",\"Populate this with a relevant message to this subagent\")}}",
"sessionId": "={{ $json.sessionId }}"
},
"schema": [
{
"id": "message",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "message",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "sessionId",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "sessionId",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"typeVersion": 2.1
},
{
"id": "9958af3b-a823-4c5f-b517-b1a455ef0106",
"name": "特斯拉1小时和1日K线工具",
"type": "@n8n/n8n-nodes-langchain.toolWorkflow",
"position": [
1340,
580
],
"parameters": {
"name": "Tesla_1hour_and_1day_Klines_Tool",
"workflowId": {
"__rl": true,
"mode": "list",
"value": "ny8gdg0uK8KebW7O",
"cachedResultName": "Work Drive — Tesla 1hour and 1day Klines Tool"
},
"workflowInputs": {
"value": {
"message": "={{ $fromAI(\"message\",\"Populate this with a relevant message to this subagent\")}}",
"sessionId": "={{ $json.sessionId }}"
},
"schema": [
{
"id": "message",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "message",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "sessionId",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "sessionId",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [],
"attemptToConvertTypes": false,
"convertFieldsToString": false
}
},
"typeVersion": 2.1
},
{
"id": "f660c411-a4bd-45a8-b612-68bb94315237",
"name": "OpenAI 聊天模型",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-400,
580
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4-turbo",
"cachedResultName": "gpt-4-turbo"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "yUizd8t0sD5wMYVG",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "5b0367ed-b49d-47ba-afa6-db1f07f9f456",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-240,
40
],
"parameters": {
"color": 4,
"width": 280,
"height": 380,
"content": "## 从父工作流触发"
},
"typeVersion": 1
},
{
"id": "ee87769d-e5a8-45a1-9d78-43c05bb8318a",
"name": "便签5",
"type": "n8n-nodes-base.stickyNote",
"position": [
-480,
520
],
"parameters": {
"color": 2,
"height": 380,
"content": "## GPT模型用于推理"
},
"typeVersion": 1
},
{
"id": "2c6c5035-7702-4ce1-ab7e-bb3aed59621f",
"name": "便签2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-120,
520
],
"parameters": {
"color": 3,
"height": 380,
"content": "## 短期记忆模块"
},
"typeVersion": 1
},
{
"id": "309ebf39-3705-4b27-afc2-30a5ae661c1f",
"name": "便签1",
"type": "n8n-nodes-base.stickyNote",
"position": [
140,
-180
],
"parameters": {
"color": 5,
"width": 560,
"height": 600,
"content": "## 特斯拉金融市场数据分析师(核心AI代理)"
},
"typeVersion": 1
},
{
"id": "95bf2832-ebd6-43d4-b5d6-cfaa0b903ac9",
"name": "便签3",
"type": "n8n-nodes-base.stickyNote",
"position": [
240,
520
],
"parameters": {
"color": 6,
"height": 640,
"content": "## 特斯拉15分钟指标工具"
},
"typeVersion": 1
},
{
"id": "7c712730-fee6-4c95-a5c3-1cd26fecd94d",
"name": "便签4",
"type": "n8n-nodes-base.stickyNote",
"position": [
580,
520
],
"parameters": {
"color": 6,
"height": 640,
"content": "## 特斯拉1小时指标工具"
},
"typeVersion": 1
},
{
"id": "19adabca-01d3-488a-bd76-dcc2735d7e59",
"name": "### 需要帮助?",
"type": "n8n-nodes-base.stickyNote",
"position": [
920,
540
],
"parameters": {
"color": 6,
"height": 620,
"content": "## 特斯拉1日指标工具"
},
"typeVersion": 1
},
{
"id": "70a1dd55-b697-4c3a-b21a-aa8a5b5acff1",
"name": "## 试试看!",
"type": "n8n-nodes-base.stickyNote",
"position": [
1260,
520
],
"parameters": {
"color": 6,
"height": 640,
"content": "## 特斯拉K线工具(1小时 + 1日)"
},
"typeVersion": 1
},
{
"id": "ec4abfb9-f31d-4929-8ccc-e007688f9a3e",
"name": "GET 模型",
"type": "n8n-nodes-base.stickyNote",
"position": [
1720,
-1480
],
"parameters": {
"width": 1360,
"height": 2660,
"content": "## 📘 特斯拉金融市场数据分析工具"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "c9770828-8334-4c0a-abb6-380533ec188d",
"connections": {
"Simple Memory": {
"ai_memory": [
[
{
"node": "Tesla Financial Market Data Analyst",
"type": "ai_memory",
"index": 0
}
]
]
},
"OpenAI Chat Model": {
"ai_languageModel": [
[
{
"node": "Tesla Financial Market Data Analyst",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"Tesla 1day Indicators Tool": {
"ai_tool": [
[
{
"node": "Tesla Financial Market Data Analyst",
"type": "ai_tool",
"index": 0
}
]
]
},
"Tesla 15min Indicators Tool": {
"ai_tool": [
[
{
"node": "Tesla Financial Market Data Analyst",
"type": "ai_tool",
"index": 0
}
]
]
},
"Tesla 1hour Indicators Tool": {
"ai_tool": [
[
{
"node": "Tesla Financial Market Data Analyst",
"type": "ai_tool",
"index": 0
}
]
]
},
"Tesla 1hour and 1day Klines Tool": {
"ai_tool": [
[
{
"node": "Tesla Financial Market Data Analyst",
"type": "ai_tool",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "Tesla Financial Market Data Analyst",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
高级 - 财务, 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
Binance 现货市场金融分析师工具
通过 Telegram 和 GPT-4o 获取 Binance 现货市场金融分析
Agent
Lm Chat Open Ai
Tool Workflow
+3
19 节点Don Jayamaha Jr
财务
CoinMarketCap_AI_数据分析师_代理
使用AI驱动的CoinMarketCap数据分析师分析加密货币市场
Set
Telegram
Agent
+5
12 节点Don Jayamaha Jr
财务
CoinMarketCap_DEX扫描_代理_工具
使用CoinMarketCap AI代理分析DEX流动性、交易和现货对
Agent
Lm Chat Open Ai
Execute Workflow Trigger
+3
15 节点Don Jayamaha Jr
财务
Binance SM 15分钟指标工具
Binance SM 15分钟指标工具
Agent
Http Request Tool
Lm Chat Open Ai
+3
11 节点Don Jayamaha Jr
财务
Binance SM 1日指标工具
Binance SM 1日指标工具
Agent
Http Request Tool
Lm Chat Open Ai
+3
11 节点Don Jayamaha Jr
财务
币安现货市场1小时指标工具
Binance SM 1小时指标工具
Agent
Http Request Tool
Lm Chat Open Ai
+3
11 节点Don Jayamaha Jr
财务
工作流信息
难度等级
高级
节点数量17
分类2
节点类型6
作者
Don Jayamaha Jr
@don-the-gem-dealerWith 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.
外部链接
在 n8n.io 查看 →
分享此工作流