Source: https://hamster-bot.com/en/algo/tv-lsb

[← All strategies](https://hamster-bot.com/en/algo)

# Long/Short-bot

Entry with a limit order from the middle of the close-price channel over `n` candles, offset by `m` standard deviations; take-profit another `K` standard deviations further. If the entry order is not filled within `auto_cancel` candles, the levels are recalculated.

- `n` - length of the channel and the standard deviation (default 30)
- `m` - entry offset in standard deviations (default 0)
- `K` - distance to the take-profit in standard deviations (default 2)
- `auto_cancel` - after how many candles to recalculate an unfilled order (default 100)

---

Backtest the strategy on historical data in the [tester](https://hamster-bot.com/en/tester) and run it in [hamster-bot](https://hamster-bot.com/en/download).
