Termos de Referência
I am looking for an experienced programmer specialized in MQL4 to develop a plug-in for MetaTrader 4. The plug-in is for the processing and distribution of dividends in relation to opened positions in shares and indices. You can find a detailed description on how the plug-in functions below ( examples included)
Example 1: A trader has a short position of 8 Apple shares. On 23.03.2018 (the ex-date) Apple decides to pay a dividend of 8 USD per share. This means that the following amount shall be deducted and reflected in the trader’s account:
8 (number of shares the trader owns) x 8 (amount of distributed dividend) = -64 USD
Example 2: If a client has a long position of 8 Apple shares. On 23.03.2018 (the ex-date) Apple decides to pay a dividend of 8 USD per share. This means that the following amount must be added and reflected in the trader’s account:
8 (number of shares a client has) x 8 (the dividend amount) = +64 USD
In this scenario (example 2) when adding the dividend amount to the traders’ account a tax must be deducted from the overall dividend payment.
The tax of the trader could be different but let’s suppose it is set to 10%, thus the deducted tax will be 10% x 64= -6.4 USD
In this case the total amount paid to the trader must be 64 – 6.4= +57.6 USD.
This means that we need the plug-in/tool to execute the following operations:
1) Check which traders have an opened position in the instruments subject to dividend payment at the specified ex-date;
2) To deduct gross dividend from the traders free funds on short positions;
3) To pay net dividends to the client on long positions;
4) To deduct the tax from the dividend payments on long positions. When deducting the tax we see ourselves setting a tax percentage for each client individually (perhaps adding it in one of the MT4 manager fields). In the tool we should set the dividend amount per contract and the instrument.
If you are interested and feel comfortable that you will be able to execute this project I would be glad to discuss further details regarding the task and get to a deal.
p.s. We can also discuss the payment scheme and negotiate a payment scheme that is convenient for both sides. Once we make the arrangement regarding the execution of this project and you confirm that you will complete the task, then we will further discuss the details regarding the best suitable payment. Basically I prefer a payment scheme with fixed amount which to be based on your proposal. Once i get your proposal I will let you know if my budget will be enough.