Skip to content
CPlugin logo
  • Home
  • Blog
  • Store
  • Contact
  • FAQ
  • Cart
  • My account
  • Knowledge Base
CPlugin logo
  • Home
  • Blog
  • Store
  • Contact
  • FAQ
  • Cart
  • My account
  • Knowledge Base

General

  • How to obtain files

MT4 ManagerAPI .NET Wrapper

  • Installation
  • Connection pool
  • Price Helper

Standalone Apps

  • Join two MT4 Servers
  • Compress MT4 database
  • Quotes Monitor
  • Quotes Monitor (WPF)
  • MT4 Report Server extended replication
  • EMIR
  • DividenderLT
  • Tools to calculate dividends
  • CopyTrading
    • Sentiment Strategy (LMAX)
    • MT4 (ManagerAPI) to LMAX
    • MT4 Plugin
    • MT4 (ManagerAPI) to MT4

Plugins for MT4/MT5

  • Flexible Leverage
  • GapHelper plugin
  • Multi Account Manager (MAM)
  • Spread Extender
  • HedgeHelper
  • Multi-Tier IB
  • Multi-Tier IB advanced version

Cloud

  • General info
  • WebAPI
    • WebAPI
    • Authorization
    • Pricing and terms
    • RESTful
    • Web Sockets (SignalR)
  • Home
  • Docs
  • Standalone Apps
  • Tools to calculate dividends

Tools to calculate dividends

Installation #

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:

  • mt4manapi.dll
  • libmysql.dll
  • 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:

  1. read data from MySQL DB
  2. read open trades from MT4
  3. calculates those dividends which ddate_expiration equals current date
  4. make trade transactions in MT4

Program maintain storage for successfully credited dividends, to avoid duplicated trade transactions after multiple executions during single day.

Run #

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.

Still stuck? How can we help?

How can we help?

Updated on July 24, 2023
DividenderLT

Powered by BetterDocs

Table of Contents
  • Installation
    • table example
    • Run

Copyright © 2015  - 2025 CPlugin

Telegram Email EmailLinkedinFacebookTwitter

Powered by CPlugin