dogabot dogabot

strategy

价格距离交易规则

dogabot 价格距离规则如何使用 EMA 上下带宽产生突破式买入与卖出信号。

strategyprice-distanceema

价格距离 规则在价格相对 EMA 带宽移动达到设定距离时触发。

指标公式见 EMA — 公式

信号

条件信号
价格 MA + 带宽买入
价格 MA − 带宽卖出

默认参数

参数默认值
maPeriod20 (EMA length)
typepercentage
value1

type 可为 percentage(带宽为 MA 的百分比)或 distance(绝对价格单位)。

适用位置

entryincreasereversalexit方向性过滤器。趋势类。

提示

示例

示例

maPeriod 20type percentagevalue 1BTC/USDT 1h。EMA = $100,000 → 买入带自 $101,000(+1%)起。收盘 $101,050买入。收盘 $99,000(低于 MA −1%)→ 卖出。适合确认突破,而非每次触及均线。

延伸阅读

Related in the app

Ready to put this into practice?

Create a free account and explore dogabot with paper trading.

Try Backtest