i need you to develop a simple desktop app for our Trading platform. you can make it using .net/c# . at the end i want its code and executable file that i can run.
if a client keeps his position overnight then we need to charge him
for example he bought today gold 1 lot and he kept the position opened till tomorrow then we need to charge him for example 14 dollars.
1) The app will require Dealer Login. Once logged in, you will add the client/group username that you want to monitor and calculate swap to.
2) When you add the username of the client or of the group that you want to add the swap to, you will put the swap rate per symbol, per day (you will have 7 columns for each symbol, one for each day).
3) You will add the date for each username for newer open positions calculation. Means, If you set the date as (1/Mar/2019) all already opened positions before 1/Mar/2019 will not calculate swap for them, but any newer positions will calculate swap to them.
4) You will set the time to calculate the Swap in the options for the entire plugin.
5) When the time tick That we configured at the middle of the night as example, we will get all open details positions Report for the added usernames, and update their swap by adding the swap value for that day.
Make Adjustment as money transaction either plus or minus value, and add in the comment: SWAP and opened ticket ID
6) We will store all positions' information for tickets that we calculated swap to in a local database, so you can generate a report and see the needed details.
7) We will add a (Manual Swap Calculation) tab, this tab will allow you to choose (From) and (To) Dates, we will take all opened tickets that belong to the added usernames on that period, and see how many days they were open (we will check the date difference between open date and close date), then calculate entire swap at once by updating the closed position.
The plugin will track orders and will charge only those that are open longer than a specified period ( A date option where the user can set the desired duration for example, he wants to calculate the open and closed positions from August till October only)
The plugin should work per Client not per group, it would be better for his business structure.
The amount should be fixed amount, not rate, he wants to charge 15$ for every long 100 Gold Oz, we should only insert 15$)
An option also to only calculate new positions ( for example, we want to charge a client with new positions starting from 25thFebruary , any position that still floating before that date should NOT be included)
A report that we can generate from the plugin in order to check the swap rates status for each client ( how much swap calculated, the positions that have interest…etc , more like account status)
Check Box to add the opened price or not
Text Box: Add Contract Size
Text Box: Value Of Swap for Sell (Accept Minus) and does not accept Zero
Text Box: Value Of Swap for Buy (Accept Minus) and does not accept Zero
swap formula : swap formula : Amount Value of swap Number of days
API to use:
[login to view URL]
Main API End Points:
from open position report
and update market order