dogabot dogabot

strategy

分批加仓规则

dogabot 的分批加仓规则如何在设定价格水平加仓,并可选数量乘数。

strategyscalingposition

分批加仓 在价格穿越相对平均入场价的预设 levels 时加仓——适用于 DCA 式分批建仓或金字塔加仓。

行为

默认参数

参数默认值
typedistance
trendSidefalse
levels[1, 2, 3]
multipliers[1, 1, 1]

type:相对平均入场价的 percentagedistance

multipliers 按水平缩放订单大小(如回撤加深时用 1、1.5、2 加大加仓)。

提示

示例

示例

做多入场 $100type percentagelevels [1, 2, 3]multipliers [1, 1, 2]maxSteps 3。跌至 $99(−1%)→ 第一次加仓(1× 规模)。$98(−2%)→ 第二次(1×)。$97(−3%)→ 第三次(2×)。maxSteps 为 3 时不再第四次加仓。

延伸阅读

Related in the app

Ready to put this into practice?

Create a free account and explore dogabot with paper trading.

Try Backtest