Preparing for Trading
Last updated
Last updated
Before launching automated trading, you can use the built-in backtesting module to select optimal parameters. The configuration process is described below.
The backtester has an intuitive interface for configuration. Below, you can find a breakdown of each parameter:
Enable backtest: Activates the backtesting function, allowing you to test the strategy on historical data. Check the box to enable it. This option must also be active during automated trading.
Capital: The initial capital for the backtest. Specify the amount that the strategy will use during testing.
Fixed capital: This parameter is required for automated trading. When enabled, the strategy will use a fixed amount of capital (entered in the Capital field) rather than the entire available balance.
Compound profit: When enabled, the profit earned will be added to the capital for reinvestment (only for backtesting).
Entry volume type: Select the type of entry volume for the position:
Contracts/Coins: The type where you need to specify the exact volume for entering a position in the Entry volume size field.
Risk per trade: The volume type where it is calculated automatically by the bot based on the risk percentage and stop size. The volume will be calculated such that your risk per trade is n% of the deposit entered in the Entry volume size field.
Entry volume size: The size of the entry volume for each trade, or the risk per trade (see the description of the setting above).
Available trade direction: The trading direction available for the strategy (e.g., any direction, only buy, or only sell).
Stop loss offset: A setting to increase the stop-loss size in ticks.
Take Profits
Quantity to fill: The percentage of the volume that must be filled to lock in profit. The total of all take profits should equal 100%.
Risk:Reward: The risk-to-reward ratio. It defines the ratio for setting the take profit.
Trailing/Breakeven
Trailing mode:
Trailing: Trailing mode, where the stop loss is continuously moved based on defined parameters until a stop loss is hit (there is no take profit in this mode).
Breakeven: A trailing mode where the stop loss is moved to break even based on defined parameters.
Off: Trailing is disabled.
Trailing step: The trailing step defines the distance over which the stop loss is moved. It works like Risk:Reward, but instead of a risk-to-reward ratio, it is based on Risk:Step.
Trailing size: The size of the trailing, which determines the distance by which the stop loss will be moved. It works like Risk:Reward, but instead of a risk-to-reward ratio, it is based on Risk:Size.
Currency mode: The currency mode for risk calculations (by default, in %).
Maximum positions: The maximum number of positions that can be open simultaneously.
Daily/Weekly/Monthly loss: Limits for daily, weekly, and monthly losses.
Daily/Weekly/Monthly profit: Limits for daily, weekly, and monthly profits.
Trailing drawdown: A trailing loss limit that reduces risks in the case of a series of losing trades. When enabled, the loss limit, determined by the Daily/Weekly/Monthly loss, will adjust upward as profits are gained.
Commission
Currency mode: The currency mode setting for commissions (by default, in %).
Fee taker/side: The commission for the side or the transaction.
Sessions
Enable sessions: Allows you to configure time intervals for the strategy's operation.
Close orders on end session: Automatically closes all trades at the end of the trading session.
List sessions: Time intervals during which the strategy will operate. Multiple sessions can be configured.
Enable text statistic: Activates the display of statistics in text format on the chart. When enabled, key metrics will be displayed as text in the upper-left corner of the chart.
Closed trades: Shows the total number of closed trades over the selected period.
Take profits: Displays the number of trades that ended with a take profit condition, i.e., a realized profit.
Stop losses: Displays the number of trades that ended with a stop loss condition, i.e., a realized loss.
Breakevens: Shows the number of trades that ended at break-even.
Profit in Ticks: Displays the total profit in ticks (the smallest price change unit).
Profit currency: Shows the total profit in the currency of the traded asset.
Max profit: Displays the maximum profit achieved during the entire analysis period.
Max drawdown: Shows the largest drawdown (loss) from the initial capital.
Max drawdown in moment: Displays the largest capital drawdown recorded at any point in time during trading.
Percent profitable: Shows the percentage of profitable trades out of the total number of closed trades.
PnL: Displays the total profit or loss for the entire trading period.
Capital: Shows the current account capital, including profits and losses.
Commission: Displays the total commission costs for all trades.
Text color: Allows you to choose the color of the text statistics to make them more visible or match the chart style.
Text size: Allows you to adjust the font size for displaying the statistics, ensuring readability.
Enable chart statistic: Activates the display of statistics in the form of a chart. When enabled, key statistical indicators will be presented graphically in the lower-right corner of the chart.
Multiplier height: Allows you to adjust the chart height scale, affecting the height ratio of the chart for better graphical representation.
Color chart line: Selects the color for the chart line. This parameter allows you to choose the color for the profitability line.
Color chart axis: Defines the color of the axes on the chart.
Color chart background: Allows you to set the background color of the chart to ensure comfortable visual perception.