RWA Stocks Workflow(English Version)


创建日期: 2025-09-30 11:17:39 最后修改: 2025-10-11 08:56:03
复制: 0 点击次数: 93
avatar of ianzeng123 ianzeng123
2
关注
319
关注者
策略源码
{"type":"n8n","content":"{\"workflowData\":{\"nodes\":[{\"parameters\":{\"model\":{\"__rl\":true,\"value\":\"anthropic/claude-sonnet-4\",\"mode\":\"list\",\"cachedResultName\":\"anthropic/claude-sonnet-4\"}},\"type\":\"n8n-nodes-base.lmOpenAi\",\"typeVersion\":1,\"position\":[-128,640],\"id\":\"164b0bc5-8e52-4016-9ac2-dd01254c1112\",\"name\":\"OpenAI Model\",\"credentials\":{\"openAiApi\":{\"id\":\"54d0b567-b3fc-4c6a-b6be-546e0b9cd83f\",\"name\":\"openrouter\"}}},{\"parameters\":{\"model\":{\"__rl\":true,\"value\":\"anthropic/claude-sonnet-4\",\"mode\":\"list\",\"cachedResultName\":\"anthropic/claude-sonnet-4\"}},\"type\":\"n8n-nodes-base.lmOpenAi\",\"typeVersion\":1,\"position\":[816,608],\"id\":\"12e0245f-007f-4871-8e70-ea5590bd77d6\",\"name\":\"OpenAI Model1\",\"credentials\":{\"openAiApi\":{\"id\":\"54d0b567-b3fc-4c6a-b6be-546e0b9cd83f\",\"name\":\"openrouter\"}}},{\"parameters\":{\"operation\":\"getPosition\",\"exchange\":0,\"symbol\":{\"__rl\":true,\"value\":\"={{$vars.stock}}_USDT.swap\",\"mode\":\"id\"}},\"type\":\"n8n-nodes-base.accountInfo\",\"typeVersion\":1,\"position\":[-304,-112],\"id\":\"763b93ba-6561-4e29-94fe-6c64fe83d309\",\"name\":\"Account Info\"},{\"parameters\":{\"model\":{\"__rl\":true,\"value\":\"anthropic/claude-sonnet-4\",\"mode\":\"list\",\"cachedResultName\":\"anthropic/claude-sonnet-4\"}},\"type\":\"n8n-nodes-base.lmOpenAi\",\"typeVersion\":1,\"position\":[1216,880],\"id\":\"4148d105-d688-4e58-bbfa-bcbe94069bfc\",\"name\":\"OpenAI Model2\",\"credentials\":{\"openAiApi\":{\"id\":\"54d0b567-b3fc-4c6a-b6be-546e0b9cd83f\",\"name\":\"openrouter\"}}},{\"parameters\":{\"operation\":\"buy\",\"exchange\":0,\"symbol\":{\"__rl\":true,\"mode\":\"list\",\"value\":\"\"},\"amount\":1,\"comment\":\"\",\"additionalOptions\":{}},\"type\":\"n8n-nodes-base.tradingExecutor\",\"typeVersion\":1,\"position\":[1776,-16],\"id\":\"4f2267bd-f2cf-4b86-a0e7-b4c02bb645ad\",\"name\":\"Open Long\"},{\"parameters\":{\"operation\":\"sell\",\"exchange\":0,\"symbol\":{\"__rl\":true,\"mode\":\"list\",\"value\":\"\"},\"amount\":1,\"comment\":\"\",\"additionalOptions\":{}},\"type\":\"n8n-nodes-base.tradingExecutor\",\"typeVersion\":1,\"position\":[1776,192],\"id\":\"57947105-9397-4297-936d-5deef173b058\",\"name\":\"Open Short\"},{\"parameters\":{\"operation\":\"close\",\"exchange\":0,\"symbol\":{\"__rl\":true,\"mode\":\"list\",\"value\":\"\"},\"closeOption\":\"all\",\"comment\":\"\",\"additionalOptions\":{}},\"type\":\"n8n-nodes-base.tradingExecutor\",\"typeVersion\":1,\"position\":[1776,384],\"id\":\"e508700e-8dca-4ec0-ac6c-b0dc54a4f291\",\"name\":\"Close Long\"},{\"parameters\":{\"operation\":\"close\",\"exchange\":0,\"symbol\":{\"__rl\":true,\"mode\":\"list\",\"value\":\"\"},\"closeOption\":\"all\",\"comment\":\"\",\"additionalOptions\":{}},\"type\":\"n8n-nodes-base.tradingExecutor\",\"typeVersion\":1,\"position\":[1776,576],\"id\":\"38c2ed39-14f5-4d6b-bcf2-ece1f825ba64\",\"name\":\"Close Short\"},{\"parameters\":{\"input\":\"={{$vars.stock}}\",\"operation\":510251},\"type\":\"n8n-nodes-base.tradingPlugin\",\"typeVersion\":1,\"position\":[1776,960],\"id\":\"21bfd5ea-1e92-4265-bb83-743bed8ec310\",\"name\":\"Stop Loss Take Profit Plugin\"},{\"parameters\":{\"notice\":\"\",\"rule\":{\"interval\":[{\"field\":\"days\",\"daysInterval\":1,\"triggerAtHour\":21,\"triggerAtMinute\":30}]}},\"type\":\"n8n-nodes-base.scheduleTrigger\",\"typeVersion\":1.2,\"position\":[-800,384],\"id\":\"043a8666-1a9b-4c56-b37b-bff6391bf649\",\"name\":\"Schedule Trigger\"},{\"parameters\":{\"notice\":\"\",\"content\":\"=Based on current technical indicators and sentiment analysis, recommending long position entry.\"},\"type\":\"n8n-nodes-base.mobilePush\",\"typeVersion\":1,\"position\":[2000,-16],\"id\":\"2563e240-3a3c-4382-bdc7-c0c7c8488096\",\"name\":\"Open Long Push Notification\"},{\"parameters\":{\"notice\":\"\",\"content\":\"Based on current technical indicators and sentiment analysis, recommending short position entry.\"},\"type\":\"n8n-nodes-base.mobilePush\",\"typeVersion\":1,\"position\":[2000,192],\"id\":\"51c98287-629a-4ce6-853a-de77a5fe3d1b\",\"name\":\"Open Short Push Notification\"},{\"parameters\":{\"notice\":\"\",\"content\":\"Based on current technical indicators and sentiment analysis, recommending long position closure.\"},\"type\":\"n8n-nodes-base.mobilePush\",\"typeVersion\":1,\"position\":[2000,384],\"id\":\"7135d660-72e5-4dda-a0cc-e99d8381de05\",\"name\":\"Close Long Push Notification\"},{\"parameters\":{\"notice\":\"\",\"content\":\"Based on current technical indicators and sentiment analysis, recommending short position closure.\"},\"type\":\"n8n-nodes-base.mobilePush\",\"typeVersion\":1,\"position\":[2000,576],\"id\":\"48b0d4d2-0b3b-4728-ac82-4d83a6d08167\",\"name\":\"Close Short Push Notification\"},{\"parameters\":{\"notice\":\"\",\"content\":\"Based on current technical indicators and sentiment analysis, recommending no trading action at this time.\"},\"type\":\"n8n-nodes-base.mobilePush\",\"typeVersion\":1,\"position\":[1776,768],\"id\":\"0a58bc7b-dedb-414f-b79c-ce2c84aa4a9f\",\"name\":\"No Action Push Notification\"},{\"parameters\":{\"endpointUrl\":\"https://mcp.alphavantage.co/mcp?apikey='HCTH32FPOI6UPF66'\",\"authentication\":\"none\",\"tool\":\"NEWS_SENTIMENT\",\"tickers\":\"={{$vars.stock}}\"},\"type\":\"@n8n/n8n-nodes-langchain.mcpClient\",\"typeVersion\":1.1,\"position\":[-336,384],\"id\":\"1b87d005-8cc6-42f7-9454-d3f31a7f42ec\",\"name\":\"Get Sentiment Score\"},{\"parameters\":{\"endpointUrl\":\"https://mcp.alphavantage.co/mcp?apikey='HCTH32FPOI6UPF66'\",\"authentication\":\"none\",\"tool\":\"TIME_SERIES_DAILY\",\"symbol\":\"={{$vars.stock}}\",\"outputsize\":\"compact\"},\"type\":\"@n8n/n8n-nodes-langchain.mcpClient\",\"typeVersion\":1.1,\"position\":[-336,864],\"id\":\"d7f23487-ef91-459a-a481-aa184fc9bc8b\",\"name\":\"Get K-line Data\"},{\"parameters\":{\"input\":\"={{ $json.text }}\",\"operation\":510250},\"type\":\"n8n-nodes-base.tradingPlugin\",\"typeVersion\":1,\"position\":[-48,864],\"id\":\"94cd429e-2a1d-49d5-a4b7-41df9ff929f0\",\"name\":\"Technical Indicators Plugin\"},{\"parameters\":{\"text\":\"=You are a high-intelligence precision sentiment analysis tool specialized in analyzing US stock markets. For the stock {{$vars.stock}}, you will analyze the sentiment of the provided text using two methodologies:\\n\\nShort-term Sentiment:\\n\\nEvaluate immediate market reactions, recent news impact, and technical volatility\\nDetermine sentiment category: \\\"Positive\\\", \\\"Neutral\\\", or \\\"Negative\\\"\\nCalculate a numerical score between -1 (extremely negative) and 1 (extremely positive)\\nProvide concise reasoning for short-term sentiment (detailed responses and appropriate headlines for major events and recent company performance)\\n\\n\\nLong-term Sentiment:\\n\\nEvaluate overall market outlook, fundamentals, and regulatory or macroeconomic factors\\nDetermine sentiment category: \\\"Positive\\\", \\\"Neutral\\\", or \\\"Negative\\\"\\nCalculate a numerical score between -1 (extremely negative) and 1 (extremely positive)\\nProvide detailed reasoning for long-term sentiment (detailed responses and appropriate headlines for major events and macroeconomic environment)\\n\\nYour output must be exactly a JSON object with two keys: \\\"shortTermSentiment\\\" and \\\"longTermSentiment\\\". Each key's value must be an object with three keys: \\\"category\\\", \\\"score\\\", and \\\"rationale\\\". Do not output any additional text.\\nFor example, your output should look like this, strictly following this format:\\n{\\n\\\"shortTermSentiment\\\": {\\n\\\"category\\\": \\\"Positive\\\",\\n\\\"score\\\": 0.7,\\n\\\"rationale\\\": \\\"....\\\"\\n},\\n\\\"longTermSentiment\\\": {\\n\\\"category\\\": \\\"Neutral\\\",\\n\\\"score\\\": 0.0,\\n\\\"rationale\\\": \\\"...\\\"\\n}\\n}\\nNow, analyze the following text and generate your JSON output:\\n{{ $json.text }}\",\"options\":{}},\"type\":\"@n8n/n8n-nodes-langchain.agent\",\"typeVersion\":1,\"position\":[-128,384],\"id\":\"bc691121-a168-4157-acde-70505e90463f\",\"name\":\"AI Sentiment Analysis\"},{\"parameters\":{\"mode\":\"append\",\"numberInputs\":3},\"type\":\"n8n-nodes-base.merge\",\"typeVersion\":3.2,\"position\":[272,368],\"id\":\"5f07cea4-6359-438c-9e5a-99b1f3036cbe\",\"name\":\"Data Merge\"},{\"parameters\":{\"mode\":\"runOnceForAllItems\",\"language\":\"javaScript\",\"jsCode\":\"// Initialize containers for each set of data.\\nlet posData = null;\\nlet contentData = null;\\nlet technicalIndicators = null;\\n// Loop over each item from the merge node.\\nfor (const item of items) {\\n    // If the item has position output, store it.\\n    if (item.json.operation == 'getPosition' && item.json.result !== undefined) {\\n        posData = item.json.result;\\n        posData.amount = posData.amount == 0 ? \\\"No Position\\\" : posData.amount > 0 ? \\\"Long Position\\\" : \\\"Short Position\\\" \\n    }\\n\\n    // If the item has sentiment analysis output, store it.\\n    if (item.json.output !== undefined) {\\n        contentData = item.json.output;\\n    }\\n\\n    // If the item has technical indicators (MACD, RSI, ATR, OBV), store it.\\n    if (item.json.MACD !== undefined || item.json.RSI !== undefined || \\n        item.json.ATR !== undefined || item.json.OBV !== undefined) {\\n        technicalIndicators = {\\n            \\\"Trend Indicator MACD\\\": item.json.MACD,\\n            \\\"Oscillator RSI\\\": item.json.RSI,\\n            \\\"Volatility ATR\\\": item.json.ATR,\\n            \\\"Volume Analysis OBV\\\": item.json.OBV\\n        };\\n    }\\n}\\n// Return a single item with sentiment content and technical indicators.\\nreturn [{\\n    json: {\\n        \\\"Position Data\\\": posData,\\n        \\\"Sentiment Analysis\\\": contentData,\\n        technicalIndicators\\n    }\\n}];\",\"notice\":\"\"},\"type\":\"n8n-nodes-base.code\",\"typeVersion\":2,\"position\":[496,384],\"id\":\"6ca70947-2549-480a-9357-7541659d0197\",\"name\":\"Data Standardization\"},{\"parameters\":{\"operation\":\"sendMessage\",\"chatId\":{\"__rl\":true,\"value\":\"=-4935504511\",\"mode\":\"id\"},\"text\":\"={{ $json.output }}\",\"parseMode\":\"HTML\"},\"type\":\"n8n-nodes-base.telegram\",\"typeVersion\":1.2,\"position\":[1200,208],\"id\":\"c1b9a7ea-07d1-477e-b832-b6921e41be80\",\"name\":\"Telegram Push\",\"credentials\":{\"telegramApi\":{\"id\":\"64b40791-c845-4775-9d67-0efc4122d162\",\"name\":\"Telegram account\"}}},{\"parameters\":{\"text\":\"=**Data Structure:**\\n{{ $vars.stock}} comprehensive market data:\\n- Position Information: {{ JSON.stringify($json[\\\"Position Data\\\"]) }}\\n- Sentiment Analysis: {{ $json[\\\"Sentiment Analysis\\\"] }}\\n- Technical Indicators: {{ JSON.stringify($json.technicalIndicators) }}\\n\\nPosition Data Format: Contains trading pair, position size, position price\\nSentiment Data Format: Contains short-term and long-term sentiment analysis, each including category, score and detailed rationale\\nTechnical Indicators Format: \\n- Trend Indicator: MACD line, signal line, histogram arrays\\n- Oscillator: RSI momentum indicator arrays\\n- Volatility Indicator: ATR volatility indicator arrays  \\n- Volume Analysis: OBV volume indicator arrays\\n\\n**Analysis Framework:**\\n\\n**Position Status Assessment:**\\n- Check the amount field in position data to determine if there are any positions\\n- If positions exist, judge position quality based on technical indicator trends (whether technical analysis supports holding)\\n- Adjust operation recommendations based on position status (add/reduce/close vs open)\\n\\n**Short-term Analysis:**\\n- Based on the latest 5-10 periods of technical indicator data\\n- Combined with short-term sentiment analysis score and category\\n- Consider current position status to formulate operation strategy\\n- Focus on immediate trading opportunities and risk points\\n\\n**Long-term Analysis:**\\n- Based on complete technical indicator trends\\n- Combined with long-term sentiment analysis outlook\\n- Adjust investment recommendations based on position status\\n- Identify major trends and structural opportunities\\n\\n**Output Requirements:**\\n\\n**Format:** Telegram HTML format\\n**Date:** {{ $vars.stock}} Analysis {{ $now }}\\n\\n**Use the following template for output:**\\n\\n```\\n<b>📊 {{ $vars.stock}} Technical Analysis Report</b>\\n<i>Analysis Time {{ $now }}</i>\\n\\n<b>💼 Current Position Status</b>\\n<pre>Position Status [Has Position/No Position]\\nPosition Size [Specific amount or none]\\nPosition Cost [Specific price or none]\\nTechnical Assessment [Favorable/Unfavorable/No Position]</pre>\\n\\n<b>⚡ Short-term Operation Recommendation</b> (1-7 days - Recommended <code>30-50%</code> position)\\n<pre>Operation Strategy [Buy/Sell/Hold/Add/Reduce/Close]\\nEntry Price Specific price\\nStop Loss Price Specific price\\nTarget Price Specific price</pre>\\n\\n<blockquote><b>Technical Basis</b>\\nConcise description based on latest MACD/RSI signals, position status and short-term sentiment analysis, within 80 characters</blockquote>\\n\\n<b>🎯 Long-term Investment Recommendation</b> (1-4 weeks - Recommended <code>20-30%</code> position)\\n<pre>Strategy Direction [Buy/Sell/Hold/Build/Clear]\\nBuilding Range Price range\\nStop Loss Setting Specific price\\nTarget Area Price range</pre>\\n\\n<blockquote><b>Trend Judgment</b>\\nConcise description based on overall trend indicator movement, position considerations and long-term sentiment outlook, within 80 characters</blockquote>\\n\\n<b>📈 Key Technical Indicators</b>\\n<pre>MACD Signal [Bullish/Bearish/Neutral] - Brief explanation\\nRSI Value XX.XX [Normal/Overbought/Oversold] - Brief explanation\\nVolume [Expanding/Contracting/Stable] - Brief explanation\\nVolatility [High/Medium/Low] - Brief explanation</pre>\\n\\n<b>💭 Market Sentiment</b>\\n<pre>Short-term Sentiment [Positive/Negative/Neutral] Score XX.X\\nCore Reason Concise explanation within 50 characters\\n\\nLong-term Outlook [Optimistic/Pessimistic/Cautious] Score XX.X\\nCore Reason Concise explanation within 50 characters</pre>\\n\\n<blockquote><b>⚠️ Risk Warning</b>\\nMarket volatility is high, strict stop-loss strategy execution recommended, control position risk. Technical analysis is for reference only, should be combined with fundamentals and market environment for comprehensive judgment. Position holders should pay special attention to stop-loss level settings.</blockquote>\\n\\n<i>Data Source Real-time technical indicators and AI sentiment analysis</i>\\n```\\n\\n**Key Guiding Principles:**\\n\\n1. **Position Priority**: First assess position status, prioritize risk management when positions exist\\n2. **Differentiated Recommendations**: Position holders focus on add/reduce/close, non-holders focus on entry timing\\n3. **Risk Control**: Stricter stop-loss recommendations for position holders, more flexible entry strategies for non-holders\\n4. **Technical Indicators Priority**: Prioritize using latest values from technical indicator arrays for short-term analysis\\n5. **Sentiment Analysis Integration**: Combine sentiment analysis scores (-1 to 1) and categories to judge market bias\\n6. **Key Signal Identification**: MACD histogram reversal as key signal\\n7. **Overbought/Oversold Assessment**: RSI values above 70 as overbought, below 30 as oversold areas for special attention\\n8. **Volume Confirmation**: Volume indicators confirm price breakout validity\\n9. **Concise Expression**: Control each rationale within 50-80 characters\\n10. **Plain Language**: Eliminate technical jargon, use intuitive descriptions\\n11. **Actionability**: Focus on actionable insights\\n12. **Direct and Concise**: Use direct, concise language\\n\\n**Strict Formatting Requirements:**\\n\\n1. Each <b> tag must have corresponding </b>\\n2. Each <code> tag must have corresponding </code>  \\n3. Each <pre> tag must have corresponding </pre>\\n4. <blockquote> tags must have corresponding </blockquote>\\n5. <i> tags must have corresponding </i>\\n6. Text content must not contain HTML special characters like < > &\\n7. All descriptive text should avoid symbols that might be misparsed\\n8. Separate numerical descriptions with spaces, not colons\\n9. Use specific numbers for prices, no dollar signs or other currency symbols\\n10. Do not include html code block markers in output\\n11. Replace all colons with spaces or omit them\\n12. Write percentage symbols directly after numbers, like 30%\\n\",\"options\":{}},\"type\":\"@n8n/n8n-nodes-langchain.agent\",\"typeVersion\":1,\"position\":[720,384],\"id\":\"c87b8ff5-b105-4959-a084-8df2fc2de17e\",\"name\":\"AI Trading Analysis\"},{\"parameters\":{\"inputText\":\"=Please analyze the technical indicators and market signals in {{ $json.output }}, and make trading decisions based on the following key factors:\\n\\n**Decision Priority Factors:**\\n1. **Technical Indicator Combination**: MACD signal strength, RSI overbought/oversold status, volume change trends\\n2. **Price Position**: Current price relative to building range, stop loss level, target level relationships\\n3. **Market Sentiment**: Comprehensive evaluation of short-term sentiment score and long-term outlook score\\n4. **Position Status**: Whether there are current positions and position cost situation\\n\\n**Trading Decision Options:**\\n- **Open Long**: When technical indicators turn bullish, price is at lower end of building range, market sentiment is positive and no positions\\n- **Open Short**: When technical indicators turn bearish, price breaks stop loss level, market sentiment is pessimistic\\n- **Close Long**: When holding long positions and price reaches target or falls below stop loss\\n- **Close Short**: When holding short positions and technical indicators turn bullish or price rebounds to close level\\n- **No Action**: When signals are unclear, in consolidation range or risk is too high, maintain watch\\n\\n**Special Notes:**\\n- Strictly follow stop loss price levels set in the report\\n- Combine short-term and long-term recommendations for position management\\n- Consider market volatility and risk warnings in decision making\\n\\n**Final Output Format:**\\nBased on the above analysis, current trading decision is: [Open Long/Open Short/Close Long/Close Short/No Action]\",\"options\":{\"categories\":\"Open Long,Open Short,Close Long,Close Short,No Action\",\"includeDetailedResults\":false}},\"type\":\"n8n-nodes-base.sentimentAnalysis\",\"typeVersion\":1.1,\"position\":[1120,560],\"id\":\"cd0b45b6-0a80-46ee-a1d8-525aa94f40f0\",\"name\":\"AI Trading Decision\"}],\"pinData\":{},\"connections\":{\"OpenAI Model\":{\"ai_languageModel\":[[{\"node\":\"AI Sentiment Analysis\",\"type\":\"ai_languageModel\",\"index\":0}]]},\"OpenAI Model1\":{\"ai_languageModel\":[[{\"node\":\"AI Trading Analysis\",\"type\":\"ai_languageModel\",\"index\":0}]]},\"Account Info\":{\"main\":[[{\"node\":\"Data Merge\",\"type\":\"main\",\"index\":0}]]},\"OpenAI Model2\":{\"ai_languageModel\":[[{\"node\":\"AI Trading Decision\",\"type\":\"ai_languageModel\",\"index\":0}]]},\"Open Long\":{\"main\":[[{\"node\":\"Open Long Push Notification\",\"type\":\"main\",\"index\":0}]]},\"Open Short\":{\"main\":[[{\"node\":\"Open Short Push Notification\",\"type\":\"main\",\"index\":0}]]},\"Close Long\":{\"main\":[[{\"node\":\"Close Long Push Notification\",\"type\":\"main\",\"index\":0}]]},\"Close Short\":{\"main\":[[{\"node\":\"Close Short Push Notification\",\"type\":\"main\",\"index\":0}]]},\"Schedule Trigger\":{\"main\":[[{\"node\":\"Account Info\",\"type\":\"main\",\"index\":0},{\"node\":\"Get Sentiment Score\",\"type\":\"main\",\"index\":0},{\"node\":\"Get K-line Data\",\"type\":\"main\",\"index\":0}]]},\"Get Sentiment Score\":{\"main\":[[{\"node\":\"AI Sentiment Analysis\",\"type\":\"main\",\"index\":0}]]},\"Get K-line Data\":{\"main\":[[{\"node\":\"Technical Indicators Plugin\",\"type\":\"main\",\"index\":0}]]},\"Technical Indicators Plugin\":{\"main\":[[{\"node\":\"Data Merge\",\"type\":\"main\",\"index\":2}]]},\"AI Sentiment Analysis\":{\"main\":[[{\"node\":\"Data Merge\",\"type\":\"main\",\"index\":1}]]},\"Data Merge\":{\"main\":[[{\"node\":\"Data Standardization\",\"type\":\"main\",\"index\":0}]]},\"Data Standardization\":{\"main\":[[{\"node\":\"AI Trading Analysis\",\"type\":\"main\",\"index\":0}]]},\"AI Trading Analysis\":{\"main\":[[{\"node\":\"Telegram Push\",\"type\":\"main\",\"index\":0},{\"node\":\"AI Trading Decision\",\"type\":\"main\",\"index\":0}]]},\"AI Trading Decision\":{\"main\":[[{\"node\":\"Open Long\",\"type\":\"main\",\"index\":0}],[{\"node\":\"Open Short\",\"type\":\"main\",\"index\":0}],[{\"node\":\"Close Long\",\"type\":\"main\",\"index\":0}],[{\"node\":\"Close Short\",\"type\":\"main\",\"index\":0}],[{\"node\":\"Stop Loss Take Profit Plugin\",\"type\":\"main\",\"index\":0},{\"node\":\"No Action Push Notification\",\"type\":\"main\",\"index\":0}]]}},\"active\":false,\"settings\":{\"timezone\":\"Asia/Shanghai\",\"executionOrder\":\"v1\"},\"tags\":[],\"credentials\":{},\"id\":\"3d36c208-711d-458b-b77e-def20dcecdf4\",\"plugins\":{\"510250\":{\"id\":510250,\"args\":\"[]\",\"name\":\"Stock Indicator Calculation\"},\"510251\":{\"id\":510251,\"args\":\"[]\",\"name\":\"TP-SL Plugin (stocks)\"}},\"mcpClients\":{\"NEWS_SENTIMENT\":{\"name\":\"NEWS_SENTIMENT\",\"description\":\"Returns live and historical market news & sentiment data from premier news outlets worldwide.\",\"properties\":[{\"displayName\":\"tickers\",\"name\":\"tickers\",\"type\":\"string\",\"description\":\"Stock/crypto/forex symbols to filter articles. Example: \\\"IBM\\\" or \\\"COIN,CRYPTO:BTC,FOREX:USD\\\".\",\"displayOptions\":{\"show\":{\"tool\":[\"NEWS_SENTIMENT\"]}},\"placeholder\":\"Enter tickers\"},{\"displayName\":\"topics\",\"name\":\"topics\",\"type\":\"string\",\"description\":\"News topics to filter by. Example: \\\"technology\\\" or \\\"technology,ipo\\\".\",\"displayOptions\":{\"show\":{\"tool\":[\"NEWS_SENTIMENT\"]}},\"placeholder\":\"Enter topics\"},{\"displayName\":\"time_from\",\"name\":\"time_from\",\"type\":\"string\",\"description\":\"Start time range in YYYYMMDDTHHMM format. Example: \\\"20220410T0130\\\".\",\"displayOptions\":{\"show\":{\"tool\":[\"NEWS_SENTIMENT\"]}},\"placeholder\":\"Enter time_from\"},{\"displayName\":\"time_to\",\"name\":\"time_to\",\"type\":\"string\",\"description\":\"End time range in YYYYMMDDTHHMM format. Defaults to current time if time_from specified.\",\"displayOptions\":{\"show\":{\"tool\":[\"NEWS_SENTIMENT\"]}},\"placeholder\":\"Enter time_to\"},{\"displayName\":\"sort\",\"name\":\"sort\",\"type\":\"string\",\"description\":\"Sort order - \\\"LATEST\\\" (default), \\\"EARLIEST\\\", or \\\"RELEVANCE\\\".\",\"displayOptions\":{\"show\":{\"tool\":[\"NEWS_SENTIMENT\"]}},\"placeholder\":\"Enter sort\"},{\"displayName\":\"limit\",\"name\":\"limit\",\"type\":\"number\",\"description\":\"Number of results to return. Default 50, max 1000.\",\"displayOptions\":{\"show\":{\"tool\":[\"NEWS_SENTIMENT\"]}}}]},\"TIME_SERIES_DAILY\":{\"name\":\"TIME_SERIES_DAILY\",\"description\":\"Returns raw daily time series (OHLCV) of the global equity specified, covering 20+ years of historical data.\",\"properties\":[{\"displayName\":\"symbol\",\"name\":\"symbol\",\"type\":\"string\",\"description\":\"The name of the equity. For example: symbol=IBM\",\"default\":\"\",\"displayOptions\":{\"show\":{\"tool\":[\"TIME_SERIES_DAILY\"]}},\"placeholder\":\"Enter symbol\"},{\"displayName\":\"outputsize\",\"name\":\"outputsize\",\"type\":\"string\",\"description\":\"\\\"compact\\\" (100 data points) or \\\"full\\\" (20+ years of historical data)\",\"displayOptions\":{\"show\":{\"tool\":[\"TIME_SERIES_DAILY\"]}},\"placeholder\":\"Enter outputsize\"},{\"displayName\":\"datatype\",\"name\":\"datatype\",\"type\":\"string\",\"description\":\"By default, datatype=csv. Strings json and csv are accepted with the following specifications:\",\"displayOptions\":{\"show\":{\"tool\":[\"TIME_SERIES_DAILY\"]}},\"placeholder\":\"Enter datatype\"},{\"displayName\":\"entitlement\",\"name\":\"entitlement\",\"type\":\"string\",\"description\":\"\\\"delayed\\\" for 15-minute delayed data, \\\"realtime\\\" for realtime data\",\"displayOptions\":{\"show\":{\"tool\":[\"TIME_SERIES_DAILY\"]}},\"placeholder\":\"Enter entitlement\"}]}}},\"startNodes\":[],\"triggerToStartFrom\":{\"name\":\"Schedule Trigger\"}}"}