This workflow acts as an automated market analyst for educational purposes. It scans Binance Futures (Testnet) for high-volume pairs, applies custom technical analysis (RSI, Bollinger Bands, EMA, ATR) using JavaScript, and uses AI to validate trends against recent news sentiment.
It is designed for paper trading to demonstrate how to build advanced financial logic and adaptive risk management systems in n8n without risking real funds.
💡 Why use this?
- Smart Scanning: Automatically filters top 150 pairs by volume and excludes stablecoins to find active markets.
- Dynamic Risk Management: Uses ATR (Average True Range) to calculate adaptive Stop Loss and Take Profit levels based on current market volatility.
- Custom Technical Analysis: Demonstrates how to calculate complex indicators via a Function node, eliminating the need for paid TA APIs.
- AI Sentiment Filter: Scrapes recent news and uses an LLM (OpenAI) to "vet" the technical signal against potential FUD or risks.
- Secure Execution: Shows how to sign HMAC SHA256 requests manually to interact with the Binance Futures API.
⚙️ How it works
- Filter: Runs every 15 minutes to find liquid assets on Binance.
- Calculate: Computes indicators (EMA 200, BB, RSI) and defines Entry/Exit points using ATR logic.
- Validate: If a technical signal matches, it fetches news and asks AI: "Is there any breaking news that contradicts this trade?"
- Execute: If AI returns "CONFIRM", it posts the detailed analysis to Telegram and places a paper trade order on the Testnet.
🛠 Setup Steps
- Binance Testnet: Create a free account on Binance Futures Testnet and generate API keys.
- Configuration: Open the
📝 MAIN CONFIG node and enter your Testnet Keys and Telegram Channel ID.
- Credentials: Add your OpenAI (or OpenRouter) credentials to the AI node.
Disclaimer: This workflow connects to the Binance Testnet by default. It is intended for educational purposes only. The author and n8n are not responsible for financial decisions.