DividenderLT

This version is much lighter than Dividender. It takes information about amounts to be paid from a CSV file.

This version is much lighter than Dividender. It takes information about amounts to be paid from a CSV file.

Files can be downloaded from nuget.cplugin.com/feeds/apps/CPlugin.DividenderLT/versions — simply unzip the archive with your favorite tool (we use the free 7-Zip).

The program needs these files in the application's folder:

  • mt4manapi.dll — you can get it from your Administrator terminal: navigate to its installation folder, and under the /api/ subfolder you will find ManagerAPI.zip. Unpack it somewhere and take only the mtmanapi.dll file.
  • config.cfg
  • dividends.csv

When the application starts, it:

  1. reads data from the dividends.csv file;
  2. reads open trades from MT4;
  3. calculates dividends (if the -w parameter is specified, it also executes the trade transactions in MT4).

Make sure your server has the Visual Studio 2015 redistributable package installed: microsoft.com/en-US/download/details.aspx?id=48145.

By default, the application runs in read-only mode to avoid mistakes. To enable write mode, use the -w command-line switch, or simply run the shipped run_prod.bat file, which does the same.

Without a license the program only calculates dividends and does not make any trade transactions in MT4.

config.cfg

This file holds the information used between runs. It currently has these parameters:

MT4_server = 127.0.0.1:443
MT4_login = 1
MT4_password = manager

Ensure that this account is a Manager and has enough rights to request trades and execute trade transactions.

dividends.csv

This file should be populated using comma-separated values, for example:

MSFT,0.15
APPL,0.24
DAX30,-0.12