Manual

Backtest

Backtest and real trading/simulation trades may not be exactly the same. Historical ASK/BID prices are not provided by the exchanges. So exact open and close prices cannot be reproduced. This may lead to a different open price in the backtest, which in turn can lead to completely different close prices and consequently different subsequent trades. However, in general, in the long run, backtest results should be very simillar to the real results of trading in close to the backtested period market conditions.
To run a backtest on a strategy click on the in the "Backtest" column of the "Strategies List" table. Click on "Results" to see the results.
crypto trading bot - start backtest
The backtest parameters lets you choose:
  • time period for which you want the coin to be backtested. Choose larger periods to capture diverse price moves or rerun the backtest on different small periods.
  • trade size is good to be set. During real trading it can be hard to get in and out of position with big trade size on illiquid coin. Big trade sizes on illiquid coins can move the price of the coin while they are being filled. This can turn profitable positions into losing ones. If you enter trade size the backtest will account for it in the open and close price of the trades.
  • commission rate - you can adjust it according to the commission for your exchange account
  • parameters of the strategy to optimize. The Advanced options lets you select which rules exactly you want to be optimized.
crypto trading bot - strategy backtest parameters
In the Backtest results you can see the performance, check the trades on the chart and inspect their details.
crypto trading strategy backtest - performance and statistical distribution
On the table with positive/ negative trades or in the Trades List click on a trade to see it on the candle chart. Trades list gives you details about all trades made by the strategy. Results include the set commission rate.
crypto trading strategy backtest - trades chart, candle chart, trades list
Charts for strategies with two timeframes:

When your strategy has two different timeframes the candlestick chart will be on the smaller timeframe. The indicator on the bigger timeframe will have the same value displayed for the composing small-timeframe-candles. For example, let's say you have a 5 min timeframe and a 15 min timeframe in your strategy. The indicator on the 15 min timeframe will change its value every 15 minutes. That value will correspond to every 5-min-candle that is in the 15-min-candle.
Crosses of the indicators will always appear between candles. But actually they can happen at any time during the candle. The cross implies that the indicator moved from one value to another and with that it crossed a line. In the previous example – the cross will appear between the 15 min candles. But it could have happened due to a move in the price that happened in the middle of the 15-min-candle.
There can be more than 1 trade in one big-timeframe-candle. For example, in the previous 15 minutes the Stochastic had a value of 12. Now, the price is changing and the indicator jumps to 18, which makes it cross the D-line from bottom to top. That’s the buy rule in the strategy and the bot triggers a buy. At some point during the current 15 minutes the price reaches the stoploss and the bot closes the trade. After the close it checks again the buy rules. The K-line now has a value of 15. As we are still in the same 15-minute-candle the previous value of Stochastic K-line remains 12. Let’s hypothesise that the D-line also fell and the value of 15 is above it. That means that we still have a cross. Thus, the buy rule is true and the bot triggers a new trade.
strategy rules and trading candle chart