This version is much lighter than Dividender. It takes information about amounts to be paid from CSV file.
Files can be downloaded from http://nuget.cplugin.com/feeds/apps/CPlugin.DividenderLT/versions, simply unzip it using your favorite tool (we use free http://7-zip.org)
Program needs these files to be under applications' folder:
- mt4manapi.dll (you can get if from your Administrator terminal, navigate to its installation folder, under /api/ subfolder you will notice ManagerAPI.zip. Unpack it somewhere and take only mtmanapi.dll file)
- config.cfg
- dividends.csv
When application starts it:
1. read data from dividends.csv file
2. read open trades from MT4
3. calculates dividends (if [-w] parameter specified, execute trade transaction in MT4)
Be sure your server has Visual Studio 2015 redistributable package installed https://www.microsoft.com/en-US/download/details.aspx?id=48145
By default when you call application it run in read-only mode to avoid mistakes. To enable write-mode use `-w` command line switch. Or simply call shipped file run_prod.bat that will do the same.
Without license program only calculates dividends and do not make any trade transactions in MT4.
config.cfg #
This files contains information that will be used between starts.
Now it has these parameters:
MT4_server = 127.0.0.1:443 MT4_login = 1 MT4_password = manager |
Ensure that this account is a Manager and have enought rights to request trades and make trade transaction.
dividends.csv #
This file should be populated using comma separated values notation, for example:
MSFT,0.15 APPL,0.24 DAX30,-0.12 |