dogabot dogabot

Strategy

区间位置门控

区间位置门控:按收盘价在高低区间中的位置通过或拦截。可在模拟模式测试。

strategyfiltersrangedonchian

The Range Position Gate filter is a pass/block gate on where close sits in the lookback high–low range (Donchian location, 0–100): (close − minLow) / (maxHigh − minLow) × 100. When that position meets your compare condition against a threshold, the filter passes; otherwise it blocks. It never fires a buy or sell by itself.

0 is the bottom of the range; 100 is the top. Default position ≤ 80 avoids chasing tops; flip to position ≥ 20 when you want dips only.

When to use it

What you’ll set in the app

Add Range position gate under filters.

Warm-up history or a flat range (maxHigh ≤ minLow) blocks the gate. Disabled passes.

Tips

Example

Entry filters: Range position gate, lookback 20, position ≤ 80. A breakout long only passes when close is not already sitting in the top fifth of the recent range.

Related in the app

Ready to put this into practice?

Create a free account and explore dogabot with paper trading.

Try Backtest