Trade Saver Service
- Yardımcı programlar
- Semen Racheev
- Sürüm: 1.1
- Güncellendi: 28 Ekim 2024
Program - Service
Implements automatic saving of closed positions for each trading system into a file in the form of rows. This is necessary for further integration with other products by Semyon Racheev, such as the capital management service and others.
It automatically saves results into files in the following format:
File name: " <magicNumber>.csv"
Each row in the file represents a closed position in the format " <magicNumber>,<positionCloseTime>,<positionVolume>,<positionProfit>"
Algorithm:
- The service retrieves multiple closed positions from the terminal's database for the specified list of magicNumber provided in the parameters.
- The service locates files (if they exist) with the corresponding magicNumber in the directory specified in the parameters. It retrieves the set of positions described in the files.
- It combines these sets of positions for each magicNumber and saves the resulting set back into the corresponding <magicNumber>.csv files.
Thus, in the directory specified in the parameters, we have files with the current results of closed positions from history. These results can also be combined with backtest results for more accurate calculations in capital management or other analytical products by Semyon Racheev.