An update for this algorithm is currently pending moderation. Please revisit this page shortly to access the algorithm's latest version.
Description
Beta Version of my Copy Trader to synch positions between cTrader and DXtrade accounts. Please test it on demo account first!
In case you find a bug or have an idea for an improvement, please leave a comment and I will look into it. And in case you like it, please leave a thumbs up.
Thanks in advance!
Known Issues
- I haven't tested yet partial closure of positions. This might not work properly.
- SOLVED: DXtrade API has a very low limit for request. Just one request per second (!?). This might cause issues when creating or closing multiple positions at the same time. Like several positions having the same SL or TP. I will look into this and try to come up with a solution.
- I changed the name of the Algo-File to DXtrade Copy Trader. Keep this in mind when installing the latest version.
This cBot is work in progress. It does not cover pending orders (limit or stop orders). It also does not yet copy stop loss and take profit information. But it closes your DXtrade position once your position in cTrader is closed. Can be done manually or by your stop loss / take profit settings in cTrader.
Features
- Sends orders to DXtrade for any new position or closed position in cTrader. It does not sync pending orders, but sends an order to DXtrade once your pending order is filled or your position is closed in cTrader. Since DXtrade has a very low limit for sending orders (just one per second) I have added a queue which will process several orders one after each other making a short pause in-between. It is not ideal as this delays the opening or closing in DXtrade, but they would need to raise the limit in order to improve the situation.
- You can adjust the volume by changing the parameter Volume Multiplier.
- You can filter by symbol name. Just enter a valid symbol name in the parameter Filter by Symbol and only those positions will be synched.
- You can filter by label (of your cBot). Just copy the label property of your cBot positions in the parameter Filter by Label and only those positions will be synched.
- The mapping between cTrader and DXtrade is stored in a simple CSV file. So even when you restart cTrader or this cBot it will keep the mapping information.
Parameters
- Account Settings
- Base URL: the domain address of you DX.trade web application provided by your broker or prop firm (e.g.: https://dxtrade.ftmo.com with no backslash or anything else at the end)
- Account Code: the account number of your DXtrade account
- User Name: your DXtrade user name which you also use to login to your DXtrade web application
- Password: your DXtrade password which you also use to login to your DXtrade web application
- Copy Settings
- Volume Multipier: the volume of each position in cTrader will be multiplied by this value before send to DXtrade
- Filter Settings
- Filter by Symbol: enter a symbol name here and only cTrader positions of this symbol will be synched
- Filter by Label: enter the label of your cBot and only positions belonging to this cBot will be synched. Works only with cBots using the label property.
Installation
- Add this cBot to your cTrader installation.
- Add one instance by selecting any symbol or timeframe. Both doesn't matter as it will simply react to any open or closed position.
The author decided to hide the source code.
Best.Algo.Trader
Joined on 24.05.2023
- Distribution: Free
- Language: C#
- Trading platform: cTrader Automate
- File name: DXtrade Copy Trader.algo
- Rating: 5
- Installs: 302
- Modified: 28/03/2024 13:17
Warning! Running cBots downloaded from this section may lead to financial losses. Use them at your own risk.
Note that publishing copyrighted material is strictly prohibited. If you believe there is copyrighted material in this section, please use the Copyright Infringement Notification form to submit a claim.
Comments
Log in to add a comment.
Hi and thanks for making this algo. I'm trying to get in running but it doesn't want to play nice. I am sure that all of the parameters are correct except for the “Label”. Can you please tell me where I find the cBot label? The only this I can see is the display name for the cBot. Another question - GBPUSD on cTrader with my broker Is called GBP/USD on my DXTrade account that I wish to copy to. Which title do I need to use in the parameter field?