First of all, ensure your server has Visual Studio 2015 redistributable installed https://www.microsoft.com/en-US/download/details.aspx?id=48145
Package could be downloaded from here: http://nuget.cplugin.com/feeds/apps/CPlugin.Dividender/versions
In MySQL you need to have table like this:
table example #
CREATE TABLE `dividends` ( `name` VARCHAR(12) NULL DEFAULT NULL COMMENT 'symbol name', `amount` DECIMAL(10,6) NULL DEFAULT NULL COMMENT 'amount', `ddate_expiration` DATE NULL DEFAULT NULL COMMENT 'expiration date' ) ENGINE=InnoDB;
Program needs these files to be in applications' folder:
- config.cfg [to run app with default parameters]
Copy config.cfg.example to config.cfg to use it as default settings file.
When application starts it:
- read data from MySQL DB
- read open trades from MT4
- calculates those dividends which
ddate_expirationequals current date
- make trade transactions in MT4
Program maintain storage for successfully credited dividends, to avoid duplicated trade transactions after multiple executions during single day.
By default when you call application it run in read-only mode to avoid mistakes. To enable write-mode use `-w` command line switch.
Without valid license program only calculates dividends, actual trade transaction in MT4 will not happen.