Type/to search
Welcome to FMZ Quant Trading Platform
Programming Languages
JavaScript
TypeScript
Python
C++
MyLanguage
PINE Language
Blockly Visual Programming
Workflow
Key Security
Live Trading
Strategy Library
Docker
Deploy Docker
One-Click Docker Rental
Manual Deployment of Bot
Docker Operation Precautions
Global IP Address Specification
Command Line Parameters for Bot Program
Live Trading Data Migration
Docker Monitor
Exchange
Strategy Editor
Backtesting System
Strategy Entry Functions
Strategy Framework and API Functions
Template Library
Strategy Parameters
Interactive Controls
Options Trading
C++ Strategy Writing Guide
JavaScript Strategy Writing Guide
Web3
Built-in Libraries
Extended API Interface
MCP Service
Trading Terminal
Data Explorer
Alpha Factor Analysis Tool
General Protocol
Debugging Tool
Remote Editing
Import and Export of Complete Strategies
Multi-language Support
Live Trading and Strategy Grouping
Live Trading Display
Strategy Sharing and Renting
Live Trading Message Push
Common Causes of Live Trading Errors and Abnormal Exits
Exchange-Specific Notes

In the "Simulation Backtest" tab of the Strategy Editor Page (i.e., the backtesting system), you can configure backtest settings, strategy parameters, and other options for strategy backtesting. Backtest configuration is used to set the backtest time range, backtest exchange, trading slippage, commission fees, and other conditions; strategy parameters are used to set the parameter options of the strategy.

After setting these parameter configurations, you can perform strategy backtesting according to the settings. So how do you save these configured settings?

    1. You can use the "Save Backtest Settings" button on the Strategy Editor Page to record all backtest configuration information (including backtest settings and strategy parameter settings) in the strategy source code in the form of code.
    1. When clicking the "Save Strategy" button on the strategy editor page to save the strategy, the platform will automatically record the current backtest settings, strategy parameter configurations, and other information.

How does the backtesting system load backtest configurations?

    1. When refreshing the strategy editor page or reopening the strategy editor page, it will prioritize automatically loading the backtest configuration information recorded through the "Save Backtest Settings" button.
    1. If there is no backtest configuration information recorded in comment form backtest in the current strategy code (saved in the strategy code through the "Save Backtest Settings" button), the backtesting system will automatically configure the backtest settings to the backtest configuration information from the last time the "Save Strategy" button was clicked for this strategy.
    1. If you have modified the backtest configuration information recorded in comment form at the beginning of the strategy code in the strategy editor page, and need to synchronize the updated backtest configuration information to the options in the strategy backtest interface, you can click the "Backtest Settings" button above backtest in the strategy editing area.

Examples

  • After clicking the "Save Backtest Settings" button, there are slight differences in the format when saving backtest settings to the strategy code for JavaScript/Python/C++/MyLanguage/PINE language strategies:

    javascript
    /*backtest start: 2021-06-26 00:00:00 end: 2021-09-23 00:00:00 period: 1d basePeriod: 1h exchanges: [{"eid":"Binance","currency":"BTC_USDT"}] */
    python
    '''backtest start: 2021-06-26 00:00:00 end: 2021-09-23 00:00:00 period: 1d basePeriod: 1h exchanges: [{"eid":"Binance","currency":"BTC_USDT"}] '''
    c++
    /*backtest start: 2021-06-26 00:00:00 end: 2021-09-23 00:00:00 period: 1d basePeriod: 1h exchanges: [{"eid":"Binance","currency":"BTC_USDT"}] */
  • MyLanguage:

    mylang
    (*backtest start: 2021-06-26 00:00:00 end: 2021-09-23 00:00:00 period: 1d basePeriod: 1h exchanges: [{"eid":"Binance","currency":"BTC_USDT"}] *)
  • PINE Language:

    pine
    /*backtest start: 2021-06-26 00:00:00 end: 2021-09-23 00:00:00 period: 1d basePeriod: 1h exchanges: [{"eid":"Binance","currency":"BTC_USDT"}] */