📈

TrendMind

Disciplined, rule-based automated crypto trading. 纪律严明、规则驱动的自动化加密货币交易机器人。

Chandelier Exit + EMA Trend Following 吊灯止损 + EMA 趋势跟踪策略

Binance Compatible
Testnet Ready
Backtest Engine
Telegram Alerts
iOS + macOS
Download on the App Store 在 App Store 下载

Everything you need to trade systematically 系统化交易的一切工具

No predictions. No emotions. Just price action and a proven process — running 24/7 on autopilot. 无需预测,无需情绪。纯粹依靠价格行为与成熟流程,全天候自动运行。

🤖

Fully Automated Bot全自动交易机器人

Set it and forget it. The bot runs a daily strategy cycle at UTC 00:05, manages positions, and monitors exits — entirely on its own. 一键启动,无需干预。机器人每天UTC 00:05自动运行策略,管理持仓,全程监控止损出场。

📊

Built-in Backtesting内置回测引擎

Test any symbol over any date range with the exact strategy logic. Equity curve, Sharpe ratio, max drawdown — all in one view. 对任意交易对、任意历史区间进行策略回测,一屏呈现净值曲线、夏普比率与最大回撤。

🕯️

Chandelier Exit (CE)吊灯止损(CE)

An ATR-based trailing stop that breathes with market volatility. Wide enough to avoid noise; tight enough to protect gains. 基于ATR的动态追踪止损,随市场波动自适应调整,过滤噪音的同时有效锁定利润。

📉

EMA Trend FilterEMA 趋势过滤

Fast/Slow EMA crossover confirms trend direction before any entry. Only buy in confirmed uptrends — never fight the trend. 快/慢EMA金叉确认趋势方向后才允许入场,只在上升趋势中做多,永不逆势而行。

⚖️

ATR-Based Position SizingATR 仓位管理

Each trade risks a fixed percentage of equity. Wider stop = smaller position. Consistent risk, every single trade. 每笔交易固定风险比例,止损越宽仓位越小,无论市况如何都保持一致的风险敞口。

📲

Telegram NotificationsTelegram 实时推送

Get instant alerts for every trade signal, buy execution, stop exit, and daily cycle completion — straight to your phone. 每次交易信号、建仓、止损出场和每日周期完成,实时推送至你的手机。

The Complete Decision Flow 完整决策流程

Every day, TrendMind follows an identical, deterministic sequence. There is no guesswork — only rules. 每天,TrendMind 执行完全相同、确定性的流程序列,没有猜测,只有规则。

1

Daily Trigger — UTC 00:05 每日触发 — UTC 00:05

The strategy cycle fires exactly 5 minutes after midnight UTC. This aligns with Binance's daily candle close at UTC 00:00. The 5-minute buffer ensures the closing candle is fully settled and its OHLCV data is stable before any calculation begins. On first start, a cycle runs immediately without waiting for the timer — you get a signal check right away. 策略周期在UTC午夜后恰好5分钟触发。这与Binance每日K线在UTC 00:00收盘对齐。5分钟缓冲确保收盘K线完全稳定、OHLCV数据准确后再开始计算。首次启动时立即运行一次,无需等待定时器触发。

Trigger: UTC 00:05 daily | Startup: Immediate run
2

Fetch Daily Candles from Binance 从 Binance 拉取日线数据

The bot fetches the most recent daily OHLCV candles for each configured trading symbol from the Binance REST API. The number of candles fetched is determined by the longest indicator lookback period (CE Period + EMA Slow period + buffer). All arithmetic is performed on the closed daily candle — not tick data, not minute bars. 机器人通过Binance REST API获取每个配置交易对最新的日线OHLCV数据,拉取数量由最长指标回溯周期决定(CE周期 + 慢速EMA周期 + 缓冲)。所有计算均基于已收盘日线K线,不使用Tick数据或分钟线。

1D Candles Closed Bar Only REST API
3

Compute Indicators 计算技术指标

Two indicators are computed on every cycle: 每个周期计算两个指标:

① Chandelier Exit (CE) ① 吊灯止损(CE)
ATR is computed over N periods (default 22). The long stop is placed at the Highest High over N periods minus ATR × Multiplier (default 3.0). This creates a trailing stop that expands during volatile markets and tightens in calm ones. The key insight: a wide stop means the trade has more room to breathe; a narrow stop means the trend is maturing. ATR基于N个周期(默认22)计算。做多止损设置在N周期最高价减去ATR×倍数(默认3.0)处。这形成一个追踪止损:波动大时止损变宽,波动小时止损收紧。宽止损意味着趋势仍有发展空间;窄止损意味着趋势趋于成熟。

Long Stop = Highest High(22) − ATR(22) × 3.0

② EMA Crossover ② EMA 交叉
Fast EMA (default 20) and Slow EMA (default 50) are computed over the closing prices. The relationship between them defines the trend bias: Fast above Slow = bullish regime; Fast below Slow = bearish / neutral. This filter prevents buying into downtrends. 快速EMA(默认20日)和慢速EMA(默认50日)基于收盘价计算。两者关系定义趋势偏向:快线在慢线上方为看涨;快线在慢线下方为看跌/中性。此过滤器防止在下跌趋势中建仓。

Bullish Bias: EMA(20) > EMA(50)
4

Evaluate Signal Logic 评估信号逻辑

Signals are evaluated separately for each symbol. The bot checks two scenarios per symbol: 每个交易对独立评估信号。机器人对每个交易对检查两种情景:

🟢 Buy Condition (both must be true) 🟢 买入条件(两个条件同时满足)

Close > CE Long Stop 收盘价 > CE做多止损 EMA Fast > EMA Slow 快速EMA > 慢速EMA

The price-cross-above-CE condition fires when price recovers from a pullback and crosses above the trailing stop — a momentum confirmation event. The EMA filter ensures this happens within an established uptrend, not during a bear market dead-cat bounce. 价格上穿CE止损线表明价格从回调中恢复并突破追踪止损,是动量确认信号。EMA过滤器确保这发生在已建立的上升趋势中,而非熊市反弹。

🔴 Sell Condition 🔴 卖出条件

Close < CE Long Stop 收盘价 < CE做多止损

Exit is unconditional — if the closing price is below the Chandelier Exit level, the full position is closed regardless of EMA direction, P&L, or any other factor. No discretion. No hoping. The stop is the stop. 出场是无条件的——如果收盘价跌破吊灯止损线,立即全部平仓,无论EMA方向、盈亏或任何其他因素。没有酌情判断,没有侥幸心理,止损就是止损。

5

Position Sizing — ATR-Based Risk 仓位计算 — 基于ATR的风险管理

Before placing a buy order, the bot calculates the exact position size that risks a fixed percentage of account equity. The ATR-derived stop distance is the denominator — wider market volatility automatically produces smaller positions. 在发出买入指令前,机器人计算精确仓位,使每笔交易风险固定为账户净值的特定百分比。ATR推导的止损距离作为分母——市场波动越大,仓位自动越小。

Risk Amount = Equity × Risk %
Stop Distance = Entry Price − CE Long Stop
Quantity = Risk Amount ÷ Stop Distance

Example: $10,000 equity, 2% risk, entry at $50,000, CE stop at $47,000 → Risk = $200, Stop Distance = $3,000, Quantity = 0.0667 BTC. If the stop is wider (e.g., $43,000), the quantity shrinks to 0.0286 BTC — same dollar risk, smaller position. 示例:账户$10,000,风险2%,入场$50,000,CE止损$47,000 → 风险金额$200,止损距离$3,000,买入0.0667 BTC。若止损更宽(如$43,000),数量缩减为0.0286 BTC——相同美元风险,更小的仓位。

Volatile market → Smaller position 波动大 → 仓位小 Calm market → Larger position 波动小 → 仓位大
6

Execute Order on Binance 在 Binance 执行订单

The bot places a market order using the Binance Spot API. In default mode, orders go to Binance Testnet — a fully functional paper-trading environment that mirrors the live exchange without real money. Switching to Live mode requires explicit configuration of a Live API Key in Settings. 机器人通过Binance现货API发出市价单。默认模式下订单发往Binance Testnet(完全功能的模拟交易环境,镜像真实交易所但无真实资金)。切换至实盘模式需在设置中明确配置实盘API密钥。

Market Order 市价单 Spot API 现货API Testnet by default 默认模拟盘
7

Pyramid Adding — Adding to Winners 加仓机制 — 顺势加仓

If a buy signal fires while a position is already open (price continues trending and re-crosses CE upward), the bot adds to the position. The add-on uses half the normal risk percentage, keeping the incremental risk controlled. The average entry price is recalculated after each add — subsequent CE stops protect the blended entry. 如果在已持有仓位时再次触发买入信号(价格持续趋势上涨并再次上穿CE),机器人会加仓。加仓使用一半的正常风险比例,控制增量风险。每次加仓后重新计算平均入场价格,后续CE止损保护混合入场价。

Add-on Risk = 0.5 × Normal Risk % 加仓风险 = 正常风险% × 0.5
8

Resilience — Dual-Timer Safety Net 容错机制 — 双重定时器保障

Two independent timers protect against missed cycles. The Main Timer fires at exactly UTC 00:05 each day. The Compensation Poller runs every hour and checks whether today's cycle has already run. If the main timer was missed (app backgrounded, device slept, OS killed the process), the poller detects the gap and immediately runs the overdue cycle. Every completed cycle date is persisted to local storage — the poller compares against this record, not an in-memory flag. 两个独立定时器防止周期遗漏。主定时器每天UTC 00:05精确触发。补偿轮询器每小时运行一次,检查当日周期是否已执行。若主定时器被跳过(应用后台运行、设备休眠、系统终止进程),轮询器检测到缺口后立即运行补偿周期。每个已完成的周期日期持久化保存至本地存储,轮询器与此记录比对,而非内存标志。

Main Timer: UTC 00:05 主定时器:UTC 00:05 Poller: every 60 min 轮询器:每60分钟 Persisted cycle dates 持久化周期日期
9

App Restart Recovery 应用重启恢复

The bot does not auto-start after an app restart — you press Start Bot again. However, all state is fully restored from local storage so no trade history or position is lost: 机器人不会在应用重启后自动启动——需要重新按下启动按钮。但所有状态从本地存储完整恢复,不会丢失任何交易历史或持仓信息:

Last cycle date restored 最后周期日期恢复 Open positions restored 未平仓位恢复 Equity baseline restored 净值基准恢复

Pre-existing coin balances (held before first bot launch) are detected automatically and tagged as "Legacy" positions. The CE exit signal still applies to them. 首次启动前持有的币种余额会被自动检测并标记为"Legacy"持仓,CE出场信号同样适用于它们。

Disclaimer免责声明

TrendMind connects to Binance Testnet (paper trading) by default. Switching to live trading requires your own Binance API Key and carries significant financial risk. Cryptocurrency markets are highly volatile. Past backtest results do not guarantee future performance. You are solely responsible for your trading decisions. TrendMind默认连接至Binance Testnet(模拟交易)。切换至实盘交易需提供您自己的Binance API密钥,并承担重大财务风险。加密货币市场波动极大,历史回测结果不保证未来表现。您对自己的交易决策负全部责任。

Everything at a glance 一目了然的交易视图

📊
Dashboard仪表盘 Equity, P&L, positions, recent trades净值、盈亏、持仓、近期交易
📋
Trade History交易记录 Full log of every buy & sell所有买卖记录全览
🔬
Backtesting回测分析 Equity curve & trade detail净值曲线与交易详情
📄
Logs运行日志 Live strategy execution log实时策略执行日志
🧮
Algorithm算法说明 Full strategy documentation in-app应用内完整策略文档
⚙️
Settings设置 API keys, risk %, symbol paramsAPI密钥、风险比例、交易对参数

Start trading systematically today 立即开始系统化交易

Paper trade on Binance Testnet for free. No real money required to get started. 在Binance Testnet免费模拟交易,无需投入真实资金即可上手。

Download on the App Store 在 App Store 下载