3. Definition File
3.1 ini file
Define information about FXDaemon settings.
· Trading interface settings
<tradetool>
[api] | The trading interface |
order2back | The back testing mode |
order2virtual | The automated trading mode (virtual account) |
order2plugin | The automated trading mode (loading plugin) |
· Backtesting settings
<tradetool>
<order2back>
<startdate> | The beginning time of backtesting |
<enddate> | The ending time of backtesting |
<ticketno> | The initial value of position ID |
· Account settings
<tradetool>
<account>
<id> | The unique identification number of an account |
| ※The backtesting mode or virtual account requires settings. |
· Plugin settings
<tradetool>
<plugin>
<module>The name of library file
[name] | The name of plugin |
[config] | The name of configuration file |
[load] | The flag of loading (0:disable, 1:enable) |
· Option settings
<tradetool>
<option>
<marketopen>- Specify market beginning time (utc time) -
<wday> | The market beginning date, which specify as week:1234567(Mon·Tue·Wed·Thu·Fri·Sat·Sun) |
<time> | The market beginning time, which specify as HH:mm:ss |
<marketclose>- Specify market closing time (utc time, auto-quit after specified time) -
<wday> | The market closing date, which specify as week:1234567(Mon·Tue·Wed·Thu·Fri·Sat·Sun) |
<time> | The market closing time, which specify as HH:mm:ss |
<shm>- Shared memory setting -
<block>- The four types, which set access rights through "read" and "write" attributes -
account | The account information |
offer | The market data, which can be stored up to 200 |
trade | The position information, which can be stored up to 200 per account |
pricebar | The historical data |
[shared]
read | Read from shared memory |
write | Write into shared memory |
close | Close shared memory |
· Database connection settings
<dbserver>
<host> | The name of host |
<db> | The name of database |
<user> | The name of user |
<password> | The password of user |
· AI model settings
<tf>
<graph>- Model definition -
[path]The directory where models are located
<model>The name of model file
[name] | The name of model |
[inlayer] | The input layer |
[outlayer] | The output layer |
[load] | The loading flag (0:disable, 1:enable) |
· E-mail settings
<email>
[run] | The sending flag (0:disable, 1:enable) |
<to> | The recipient address, which can specify up to 10 (separator: comma) |
<cc> | CC address, which can specify up to 10 (separator: comma) |
<bcc> | BCC address, which can specify up to 10 (separator: comma) |
<name> | The name of user |
<address> | The mail address |
<smtp>
server | SMTP server |
userid | SMTP user ID |
password | SMTP password |
port | SMTP port |
ssl | SSL setting (0:do not use SSL, 1:use SSL for SMTP connection, 2:use "STARTTLS" command to start SSL session) |
· conf file settings
<mst>
[path] | The directory where conf files are located |
<instrument> | The definition file of symbol information |
<rate> | The definition file of candlestick chart minute-hour information |
<ta> | The definition file of technical indicators |
<implparam> | The definition file of execution plans |
· Script settings
<script>
[path] | The directory where script are located |
<js> | The js file |
· Log output settings
<Logger>
<level> | The output level (ERROR, WARN, INFO, DEBUG) |
<path> | The output location |
<name> | The prefix of output file name |
<printconsole> | The flag of standard output (0:disable, 1:enable) |
| ※Please set "disable" to avoid the process may be hungup at the Windows command prompt. |
· Historical data settings
<dat>
<startdate> | The beginning time of downloaded historical dataIf empty, the last start time of the existing data file is set . |
<enddate> | The ending time of downloaded historical dataIf empty, the current time is set. |
<path> | The storage directory |
3.2 conf file
The default configuration is "conf" directory. The location can be reset by setting the ini file.
3.2.1 mst_symbol.xml
The definition file of symbol information
[target] | The target flag (0:disable, 1:enable) |
[id] | The unique number of the symbol |
[pointsize] | The size of a pip |
3.2.2 mst_rate.xml
The definition file of candlestick chart minute-hour information
[target] | The target flag (0:disable, 1:enable) |
[isimpl] | The execution flag of "_main" callback function (0:disable, 1:enable) |
3.2.3 tst_implparam.xml
The definition file of execution plans
<implparam>
[isimpl]The execution flag of "_main" callback function (0:disable, 1:enable)
<symbol>The symbol name (To be executed only if it is defined in mst_symbol.xml)
<placeorder>[optional]
<method>
<property>
[name] | The name of property |
[value] | The value of property |
※The information defined below <placeorder> can be obtained by built-in functions.