Source: https://hamster-bot.com/en/algo/smartprofit

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

# SmartProfit

A long-only averaging (DCA) strategy. The bot buys with a market order, immediately places a grid of limit orders to average in below the entry price and a limit take-profit from the average position price. After the take-profit closes the position, the cycle repeats.

Entries can be limited by filters: buy only when the price is below a chosen Bollinger line, below an MA or below a set maximum price. Also works on spot - the bot calculates the average entry price from filled orders.

Order type used: Market (first entry) and Limit (averaging in and take-profit).

**⚠️ In a prolonged decline below the whole grid, the position stays at a loss. Size the grid and the martingale to your deposit.**

#### Parameters

- `take_profit` - take-profit in % of the average position price (default 2)
- `averaging` - averaging levels in % below the first entry price, separated by semicolons (default `3;6;9`)
- `martingale` - lot multiplier for each next averaging order (default 1 - all orders the same size)
- `filter_bb` - Bollinger Bands filter: `use`, `len`, `type`, `source`, `std_dev`, `condition` - which line the price must be below: `upper`, `basis` or `lower`
- `filter_ma` - MA filter: `use`, `type`, `len`, `source`, `multiplier`. Buy only when the price is below MA * `multiplier`
- `filter_max_price` - do not buy above this price. 0 - off
- `only_exit` - exit mode: no new cycles are opened, the bot only closes the current position
- `trade_on_exit_bar` - allow a new entry on the same candle where the previous position closed (on by default)

---

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).
