说明
本周,我们发现了一套基于 Stochastic(随机指标) 的免费策略,适用于 30 分钟周期,支持在 Binance 交易所的 BTC 期货市场进行多头和空头交易。
该策略的原始思路来源于 03.freeman。
按照本指南,您可以轻松搭建一个免费的 Binance 自动交易机器人。
这是一个趋势跟踪策略(Trend Strategy),在趋势行情中表现最佳。
策略新增了基于 EMA(指数移动平均线) 与 SMA(简单移动平均线) 相互关系的趋势识别机制。
已加入 止盈(Take Profit) 和 止损(Stop Loss) 设置。
新增回测周期输入参数,允许您按月评估策略表现。
参数设置
适用于 Binance Futures:BTC Futures(30分钟周期)
Input | Value |
Long Length for Main Stochastic | 80 |
Long SmoothK For Main Stochastic | 45 |
Long SmoothD For Main Stochastic | 22 |
Long Upper Line Value | 78 |
Short Length For Main Stochastic | 30 |
Short SmoothK For Main Stochastic | 34 |
Short SmoothD For Main Stochastic | 22 |
Short Lower Line Value | 13 |
Long Stop Loss (%) | 4 |
Trailing Stop Long | 1.1 |
Short Stop Loss (%) | 2.3 |
Trailing Stop Short | 1.1 |
修订版策略脚本代码
您可以复制以下代码并粘贴到 TradingView 中使用。

