return res; } //orderCode has to be a unique key //instrument is the symbol name at dxtrade //quantity is the order absolute volume (not in lots) //positionEffect can be OPEN or CLOSE //positionCode is the position id at dxtrade for close operations //side can be BUY or SELL int placeOrder(string orderCode, string instrument, double quantity, string positionEffect, string positionCode, string side, ulong& orderId){ string url = BASE_URL+"accounts/default:"+ACCOUNT_FTMO+"/orders"; char post[], result[]; string headers = "Content-Type: application/json Accept: application/json Authorization: DXAPI "+token+" "; string resultHeader;
This is awesome Rene, you built the whole solution is just a week. Hats off!! Thank you once again for sharing the knowleage. and giving hope. God bless you and your family.
I learned most of everything I know in MQL5 from you. Your videos have helped me a lot and continue to help me. Above all, don't give up on work because of a few negative comments. You can't be good for everyone.
Excellent, thank you very much. My prop firm is transferring to DX trade. And I run my Ea on mt5. This is very helpful and Thanks again👍🏻. Great explanation on youtube.
Hi Rene, Thanks for the video on how to create a bridge from MT5 to DXtrade. I would like to know how to change the code to trade just one symbol, add the ".r" suffix to the symbol, and increase lot size in DXtrade. These are the things keeping me from using the bridge. Alan,
Sorry.... that's what I mean. An MT5 to ctrader bridge. So to copy trades from an mt5 account to a ctrader account. The reason I ask, is that for some incredibly strange reason, my funded account has disabled API access to dxtrade 🤦♂️
The FXBlue Trade Copier is so fantastic. It would be great to integrate similar options in DXTradeCopier like variable lot size ratios or fixed lot size in copied trades.
@ I thoroughly checked the API documentation, couldn't find how to send SL and TP in the order request Could you please help look into it. I will greatly appreciate thanks!
Hi Rene. Genau das, wonach ich gesucht habe! Nur leider für den MT5. Würdest du auch ein Video machen, in dem du zeigst, wie das mit dem MT4 funktioniert? Das wäre der Knaller 😊
8 месяцев назад
Aktuell fokussiere ich mich auf den MT5, weshalb ich das für den MT4 nicht noch einmal aufnehmen werde.
Hi... I went along with both videos and built this system ,and it works perfectly on the FTMO demo challenge account. However when I tried to apply it to my active fx2 funding active challenge, I got error 404 at the place order function ,after some reading of the documentation I came to the conclusion that it might be due to the face that ,unlike ftmo ,fx2 dxtrade login isn't the same as the account number ,maybe because FTMO has their own servers so a in-between isn't needed. I there proceed to use the account number at in the place order function ,still got the same error... can some perhaps point me in the direction of anything information that could help with this problem.... thank you
Same here, nothing works if you have a US based FTMO DXTrade account. I'm told they have placed some restrictions on their API. They want all of us to fail so that they can keep the spoils :(
thank you so much brother the trading community is lucky to have you!! also, if I have magic keys on my mt5 and I set it to fixed money per trade would it send the same fixed money trade over to dxtrade? or is the copier copying the lot size? because my mt5 broker might have different lot size than my funded account
8 месяцев назад
You can define the lotsize in the json payload for the api request.
Hi Rene, I can bet that you are perfect teacher for mql5. Your videos are awesome. I have one question regarding dxtrade bridge that what are best options to make bridge crash proof. For example if you close mt5, how can you still get it work. I mean hashdata will be lost during restart right? Thanks in advance. ❤
8 месяцев назад
Yes but you could just save the hash map to an external file
Awesome video - but where did you find the detail around adding default:{account number}? im trying to get the market data request to work and wondering if there is other help or contacts you used other than the swagger ui or the rest api specification?
8 месяцев назад
Thanks! I just used the api documentation and the swagger ui and then a lot of trial and error :D
Hi , Can you make a software that copy one to another account from my other EA ? I mean to say that we put manually trade every copier but I want to use my EA so the copier copy trades from my personal EA, Is it possible ??? And thankyou for your great content every video I learn something new.❣
Please please please Rene, teach us how to use the hash map to make it trade a symbol that looks different in my broker. On my broker i have "GBPUSD" while on dx trade i have "GBP/USD" and the trades are not copying
Sorry for all the comments. Thank you foe the tutorials. However i am not a programmer by any means. Can you do a video showing to set it up please? From install on mt5 to inputting credentials from dxtrade to test. Tha nk you very much. If you are unable to, would a quick private session be available?
8 месяцев назад
My channel is about programming ;) maybe you want to give it a try. I have many free tutorials on the channel already. It is not hard. Everyone can learn it and it is definitely worth it ;)
Yes I know its about programming, i so appreciate it. I understand some, very basic, which is how i am able to watch and follow to some extent. However for this: i am highly just interested in bridging my dxtrade with my mt5 as i hate the dxtrade platform. I cant afford at the moment to try to learn programming just to bridge my account. I have followed the instructions best i could, i compiled and got 5 errors, which i am unsure of what to do at this point. Are you able to assist me? It is in regards to the json line with my account username@
I've been working with dxtrade API for a while now but I can't seem to find how to send Take Profit and Stop Loss values while posting an order with dxtrade API. How do I define these take profit and stop loss fields in the body of the post order request? Your swift response will be highly appreciated. Thanks!
8 месяцев назад
I did not have a look at tp and sl yet so won't be a big help here :D I think you can possibly do it with the order api request but not sure.
Vert good job … i think i’m gonna use it for my prop firm… I got a question and for you.. could you make a simple Cbot on ctrade ??
8 месяцев назад+1
Make sure to test the bridge first. Not sure how stable it is in the long run. Just tested with few trades. I nevrr really worked with cTrader.. have to check it out maybe
Yeah i’m testing the bridge on a demo account … for the next 2 week i want to check if it works fine … for CTrade i hope you do it … Thank for all your suggestion e all your course I bought che mt5 masterclass and it’s Amazing.. trans you for all again and havegood trades 👌
8 месяцев назад+1
@@GianlucaEsposito-u8o Sounds great! Keep it up :)
First of all, thank you in advance! Greetings from latam! It would be great if you could convert it into a file with an interface so that we only have to place the parameters, I don't understand much about code, but I'm very grateful, I'll try it!
Well done. I have a question, in MT5, nasdaq symbol is "USTEC", but in DXtrade the symbol is "NAS100", Could you please add addition code on this video comment to handle it, I usually trade this.
8 месяцев назад
I do not think I will make another tutorial for dxtrade soon. But you just have to use the correct symbol name for the "instrument" key in the json that it used for the api call.
Great video, Do you know if it is possible to add risk management for the dxtrade I mean if I enter trade on mt5 with 0.01 and I want dxtrade to enter on 10k account and risk 1% for the accout
Hi Rene, there is an update in the API of the dxtrade, in the login function, it now returns RBAC access denied with status 403 forbidden, how do I fix this to make the code start working again? Much appreciated.
Hi Rene, great job!, could you make a video showing how a bot from one terminal can receive low latency tick data from other mt5 terminal?. Like two accounts linked with server-client in order to compare real time tick. would be very usefull for arbitrage, correlation and fast frequency strategies.
8 месяцев назад+1
Not sure if this works since forex/cfd is not really regulated.. every broker has its own prices
@ReneBalke what I would like to know Is this script already finished and all I need to do is input my base url account and password? Or do I need to input the web request and go down the list of the first video?
Will the chart in mt5 have the same chart as dxtrade? As far as I know, especially the index chart has differences in each broker, is it possible if we have the same chart? in mt5 is it the same as in dxtrade?
Hey René, Could you fidure out how to delete a pending order with the orderId? I could only make it work with the orderCode but in the documentation they say both should work.
8 месяцев назад
I did not try this yet and I do not think I will work with the dxtrade platform more. But make sure to contact the dxtrade support if the api documentation is wrong or insufficient. They are the ones that can help you best :)
anyone successfull connected to any other DXTrade other than the FTMO one? MT5 to FTMO DXTrade is working fine. but when i change the URL to any other DXTrade servers of any other propfirm i am not able to place a trade. server login is successfull but when i place a trade i get a 404 error message.
it looks like its a problem with the Symbol difference on MT5 and DXTrade. when i use any MT5 broker with FTMO DxTrade it works because FTMO DxTrade is the only one that uses the Symbols without a / in between. for example EURUSD vs EUR/USD. when the DxTrade plattform uses a EUR/USD Symbol its not possible to copy any trades.@@shenrg86 But i was not able to solve this problem, due to my very limited programming skills :) @ReneBalke do you have any ideas to solve this?
Hi Rene, wonderful work, you are top!!!! Would it be possible to do it in MT4 as well? In MT4 I didn't find this function: "OnTradeTransaction", how to replace it? it's possible? thank you in advance
8 месяцев назад
Yeah the mt4 does not have this function. You would have to use the ontick or ontimer function and check for new trades.
can we use this for ctrader or only it works in web based dxtrade
8 месяцев назад
This specific EA will only work for dxtrade. But I am pretty sure you can also create a similar bridge (web based or just on your local pc) for cTrader
Hi Rene, thank you for your great work. I don't know how is that working, but when I try to close positions I'm getting server faild 409 with code description 100. Any idea why, is seting position effect to close, and positionCode to position from DX ?
8 месяцев назад+1
Dunno what does 409 mean? You can read it in the documentation usually ;)
@ I know, I have fought with it 2 days now :D their docs are so crap, is all perfect when I want to open position, works as a charm, but closing is pain in a neck :( , in their docs status 409 means conflict and error code 100 mean Order with this id already exists, which is obvious as I want to close that position :) heeeelp :D This is what I got in respond, after open and close MT4 to DX ETHUSD,M5: sentOrder server request failed: 409 ,{"errorCode":"100","description":"Entity already exists at server"} MT4 to DX ETHUSD,M5: {"account": "default:1210006051","orderCode": "227079869","type": "MARKET","instrument": "EURUSD","quantity": 1000,"positionEffect":"CLOSE","positionCode": "5110260","side": "BUY","tif": "GTC"} MT4 to DX ETHUSD,M5: sentOrder server request succesfull: 200 ,{"orderId":5110260,"updateOrderId":5110260} MT4 to DX ETHUSD,M5: {"account": "default:1210006051","orderCode": "227079869","type": "MARKET","instrument": "EURUSD","quantity": 1000,"positionEffect":"OPEN","positionCode": "","side": "BUY","tif": "GTC"}
@ I know, I try for 2 day to sort it out, status 409 mean conflict, error code 100 mean that position exist on server, which is obvious as I want to close that position :( their docs are so crap to be honset.
this is what i got in response: MT4 to DX ETHUSD,M5: sentOrder server request failed: 409 ,{"errorCode":"100","description":"Entity already exists at server"} MT4 to DX ETHUSD,M5: {"account": "default:1210006051","orderCode": "227079869","type": "MARKET","instrument": "EURUSD","quantity": 1000,"positionEffect":"CLOSE","positionCode": "5110260","side": "BUY","tif": "GTC"} MT4 to DX ETHUSD,M5: sentOrder server request succesfull: 200 ,{"orderId":5110260,"updateOrderId":5110260} MT4 to DX ETHUSD,M5: {"account": "default:1210006051","orderCode": "227079869","type": "MARKET","instrument": "EURUSD","quantity": 1000,"positionEffect":"OPEN","positionCode": "","side": "BUY","tif": "GTC"}
8 месяцев назад+1
@@michalc1763 when i had the 'conflict' it was because i did not send a different request id (order id.. don't know the name of the json key right now :D)
how are u able to place a trade on the gooeytrade server? its only working for me on MT5 to FTMO DXTRADE. when i try to add any URLs of other propfirms, server login successfull, but when i place a trade i get a 404 error message
I also received this error, I solved it just as you said, now my error is the following: placeorder>server request failed... code:404 Do you know how I could fix it?@
#include
#include
#define BASE_URL "dxtrade.ftmo.com/dxsca-web/"
#define ACCOUNT_FTMO "1210004351"
#define PASSWORD_FTMO "Password1!"
string token;
datetime timeout;
CHashMap positions;
int OnInit(){
login();
return(INIT_SUCCEEDED);
}
void OnTick(){
if(TimeCurrent() > timeout - 300) ping();
}
void OnTradeTransaction(const MqlTradeTransaction& trans, const MqlTradeRequest& request, const MqlTradeResult& result){
if(trans.type == TRADE_TRANSACTION_DEAL_ADD){
CDealInfo deal;
if(HistoryDealSelect(trans.deal)){
deal.Ticket(trans.deal);
string orderCode = IntegerToString(deal.Ticket());
string instrument = deal.Symbol();
double quantity = deal.Volume();
if(SymbolInfoInteger(deal.Symbol(),SYMBOL_TRADE_CALC_MODE) == SYMBOL_CALC_MODE_FOREX) quantity *= 100000;
string side = deal.DealType() == DEAL_TYPE_BUY ? "BUY" : "SELL";
ulong orderId;
if(deal.Entry() == DEAL_ENTRY_IN){
string positionEffect = "OPEN";
for(int i = 0; i < 10; i++){
int res = placeOrder(orderCode,instrument,quantity,positionEffect,"",side,orderId);
if(res == 200){
positions.Add(trans.position,orderId);
Print(__FUNCTION__," > Successfully sent pos #",trans.position," to dxtrade as order #",orderId,"...");
break;
}
Sleep(500);
}
}else if(deal.Entry() == DEAL_ENTRY_OUT){
string positionEffect = "CLOSE";
ulong value;
if(!positions.TryGetValue(trans.position,value)){
Print(__FUNCTION__," > Unable to find dxtrade position for mt5 position #",trans.position,"...");
return;
}
string positionCode = IntegerToString(value);
for(int i = 0; i < 10; i++){
int res = placeOrder(orderCode,instrument,quantity,positionEffect,positionCode,side,orderId);
if(res == 200){
positions.Remove(trans.position);
Print(__FUNCTION__," > Successfully closed pos #",trans.position," at dxtrade with order #",orderId,"...");
break;
}
Sleep(500);
}
}
}
}
}
int login(){
string url = BASE_URL+"login";
char post[], result[];
string headers = "Content-Type: application/json
Accept: application/json
";
string resultHeader;
string json = "{\"username\": \""+ACCOUNT_FTMO+"\", \"domain\": \"default\", \"password\": \""+PASSWORD_FTMO+"\"}";
StringToCharArray(json,post,0,StringLen(json));
ResetLastError();
int res = WebRequest("POST",url,headers,5000,post,result,resultHeader);
if(res == -1){
Print(__FUNCTION__," > web request failed... code: ",GetLastError());
}else if(res != 200){
Print(__FUNCTION__," > server request failed... code: ",res);
}else{
string msg = CharArrayToString(result);
Print(__FUNCTION__," > server request success... ",msg);
token = getJsonStringValue(msg,"sessionToken");
timeout = TimeCurrent() + PeriodSeconds(PERIOD_M1)*30;
Print(__FUNCTION__," > token: ",token,", timeout: ",timeout);
}
return res;
}
int ping(){
string url = BASE_URL+"ping";
char post[], result[];
string headers = "Content-Type: application/json
Accept: application/json
Authorization: DXAPI "+token+"
";
string resultHeader;
ResetLastError();
int res = WebRequest("POST",url,headers,5000,post,result,resultHeader);
if(res == -1){
Print(__FUNCTION__," > web request failed... code: ",GetLastError());
}else if(res != 200){
Print(__FUNCTION__," > server request failed... code: ",res);
}else{
string msg = CharArrayToString(result);
Print(__FUNCTION__," > server request success... ",msg);
timeout = TimeCurrent() + PeriodSeconds(PERIOD_M1)*30;
Print(__FUNCTION__," > token: ",token,", timeout: ",timeout);
}
return res;
}
//orderCode has to be a unique key
//instrument is the symbol name at dxtrade
//quantity is the order absolute volume (not in lots)
//positionEffect can be OPEN or CLOSE
//positionCode is the position id at dxtrade for close operations
//side can be BUY or SELL
int placeOrder(string orderCode, string instrument, double quantity, string positionEffect, string positionCode, string side, ulong& orderId){
string url = BASE_URL+"accounts/default:"+ACCOUNT_FTMO+"/orders";
char post[], result[];
string headers = "Content-Type: application/json
Accept: application/json
Authorization: DXAPI "+token+"
";
string resultHeader;
string json;
StringConcatenate(json,
"{",
"\"account\": \"default:"+ACCOUNT_FTMO+"\",",
"\"orderCode\": \"",orderCode,"\",",
"\"type\": \"MARKET\",",
"\"instrument\": \"",instrument,"\",",
"\"quantity\": ",quantity,",",
"\"positionEffect\": \"",positionEffect,"\",",
"\"positionCode\": \"",positionCode,"\",",
"\"side\": \"",side,"\",",
"\"tif\": \"GTC\"",
"}");
StringToCharArray(json,post,0,StringLen(json));
ResetLastError();
int res = WebRequest("POST",url,headers,5000,post,result,resultHeader);
if(res == -1){
Print(__FUNCTION__," > web request failed... code: ",GetLastError());
}else if(res != 200){
Print(__FUNCTION__," > server request failed... code: ",res);
}else{
string msg = CharArrayToString(result);
Print(__FUNCTION__," > server request success... ",msg);
orderId = getJsonLongValue(msg,"orderId");
Print(__FUNCTION__," > orderId: ",orderId);
}
return res;
}
string getJsonStringValue(string json, string key){
int indexStart = StringFind(json,key)+StringLen(key)+3;
int indexEnd = StringFind(json,"\"",indexStart);
return StringSubstr(json,indexStart,indexEnd-indexStart);
}
long getJsonLongValue(string json, string key){
int indexStart = StringFind(json,key)+StringLen(key)+2;
int indexEnd = StringFind(json,",",indexStart);
return StringToInteger(StringSubstr(json,indexStart,indexEnd-indexStart));
}
/*
int listOpenPositions(){
string url = BASE_URL+"accounts/default:"+ACCOUNT_FTMO+"/positions";
char post[], result[];
string headers = "Content-Type: application/json
Accept: application/json
Authorization: DXAPI "+token+"
";
string resultHeader;
ResetLastError();
int res = WebRequest("GET",url,headers,5000,post,result,resultHeader);
if(res == -1){
Print(__FUNCTION__," > web request failed... code: ",GetLastError());
}else if(res != 200){
Print(__FUNCTION__," > server request failed... code: ",res);
}else{
string msg = CharArrayToString(result);
Print(__FUNCTION__," > server request success... ",msg);
// 2024.03.02 03:52:02.514 DxTradeBridge (BTCUSD,H1) listOpenPositions > server request success... {"positions":[{"account":"default:1210004351","version":60,"positionCode":"4936633","symbol":"BTCUSD","quantity":0.01,"side":"BUY","quantityNotional":0.01,"openTime":"2024-03-02T02:44:06.632Z","openPrice":62096.56,"lastUpdateTime":"2024-03-02T02:44:06.632Z","marginRate":0.3},{"account":"default:1210004351","version":56,"positionCode":"4936628","symbol":"BTCUSD","quantity":0.01,"side":"BUY","quantityNotional":0.01,"openTime":"2024-03-02T02:44:02.648Z","openPrice
}
return res;
}
*/
❤
Thank you so much
Excellent!
What to do in situations where the naming of the instrument differs.
Like BTCUSD on mt5, e.g, and BTC/USD on ftmo/dxtrade?
....and DOGUSD vs DOGEUSD. Same instrument
This is awesome Rene, you built the whole solution is just a week. Hats off!! Thank you once again for sharing the knowleage. and giving hope. God bless you and your family.
I learned most of everything I know in MQL5 from you. Your videos have helped me a lot and continue to help me. Above all, don't give up on work because of a few negative comments. You can't be good for everyone.
I have no more words to thank you, Mr René 🙏
So excited, this framework is a lifesaver but also so excited to have an EA that helps me learn coding. Thank-you, thank-you, THANKYOU!
Excellent, thank you very much. My prop firm is transferring to DX trade. And I run my Ea on mt5. This is very helpful and Thanks again👍🏻. Great explanation on youtube.
One more time, big thank you René :) Thank you for take the time for make this gold content!
I might look into using or creating one that does MT4 to DXTrade also but thank you for sharing this in the meantime
Thanks René, you are doing great solution with what happening in Prop firm. Can you make the same copy trade from MT5 to Ctrade platform.
Never worked with cTrader.. so not really planned right now
Useful to copy trades from our MT5 to Prop that doesn't have Metatrader?
Hi Rene, Thanks for the video on how to create a bridge from MT5 to DXtrade. I would like to know how to change the code to trade just one symbol, add the ".r" suffix to the symbol, and increase lot size in DXtrade. These are the things keeping me from using the bridge. Alan,
Im not a user of dxtrade but it's cool of you to share such a resource free.
Thanks for making this guide Rene.
Could you do one for Ctrader too?
Not sure yet. I mean I could but I still have to decide if I want to :D
@ please help us also...
Legit stuff my coding G !!!!
can you make one that has stop loss and take profit?
Hi Rene 👋
I just wondered if you have any tutorial for an mt5 to ctrader bridge? Love your content, mate. Thank you 🙏🙏🙏🙏
nope i only work with mt5 right now
Sorry.... that's what I mean. An MT5 to ctrader bridge. So to copy trades from an mt5 account to a ctrader account.
The reason I ask, is that for some incredibly strange reason, my funded account has disabled API access to dxtrade 🤦♂️
The FXBlue Trade Copier is so fantastic. It would be great to integrate similar options in DXTradeCopier like variable lot size ratios or fixed lot size in copied trades.
Brother! Loving your channel! thank you so much for sharing this info! Im considering taking your MQL5 course to learn more about this stuff
You will love the course :)
@ definitely will join if i can solve this symbol match issue
Thanks a lot for the great video and the code and explaining it.
Anything for Ctrader? Great video 👍👍💯
Never worked with cTrader.. so not planned too soon I think
That was nice! What I didn't find in the document it's what to send in the json to get SL and TP in the order
Did not look into this. But I also just read the documentation ;)
The documentation has nothing about it, do you have any idea how to do it? @
@@mikesum64 Did not try to do it so far. I think the api request for the order placement had some options for this.
@ I thoroughly checked the API documentation, couldn't find how to send SL and TP in the order request Could you please help look into it. I will greatly appreciate thanks!
I read the documentation too. Can't figure out how to send sl modify signals to dxtrade. @ReneBalke
Hi Rene.
Genau das, wonach ich gesucht habe! Nur leider für den MT5.
Würdest du auch ein Video machen, in dem du zeigst, wie das mit dem MT4 funktioniert? Das wäre der Knaller 😊
Aktuell fokussiere ich mich auf den MT5, weshalb ich das für den MT4 nicht noch einmal aufnehmen werde.
Hi... I went along with both videos and built this system ,and it works perfectly on the FTMO demo challenge account. However when I tried to apply it to my active fx2 funding active challenge, I got error 404 at the place order function ,after some reading of the documentation I came to the conclusion that it might be due to the face that ,unlike ftmo ,fx2 dxtrade login isn't the same as the account number ,maybe because FTMO has their own servers so a in-between isn't needed. I there proceed to use the account number at in the place order function ,still got the same error... can some perhaps point me in the direction of anything information that could help with this problem.... thank you
I'm getting the same problem. It works for FTMO but when you change to another URL it gives you the 404 error. Does anyone have a fix?
Connection works perfectly, but when i try to open a trade i get error 404. The documentation says that simply can' t access the resource why?
Same here, nothing works if you have a US based FTMO DXTrade account. I'm told they have placed some restrictions on their API. They want all of us to fail so that they can keep the spoils :(
Can it be used for bybit or other exchanges, brilliant
Wow, that's great. Thank you very much ❤
thank you so much brother the trading community is lucky to have you!! also, if I have magic keys on my mt5 and I set it to fixed money per trade would it send the same fixed money trade over to dxtrade? or is the copier copying the lot size? because my mt5 broker might have different lot size than my funded account
You can define the lotsize in the json payload for the api request.
@ but what if the lot size for us500 for example is different on my dxtrade prop firm and my mt5 broker account?
Hello. Thanks for the amazing creation. Is there a way to add a delay to the execution of trade places and trade closed?
Sure. You can just use variables (datetime) to store the open time and then check them frequently (in the OnTimer function for example)
Hi Rene, I can bet that you are perfect teacher for mql5. Your videos are awesome. I have one question regarding dxtrade bridge that what are best options to make bridge crash proof. For example if you close mt5, how can you still get it work. I mean hashdata will be lost during restart right? Thanks in advance. ❤
Yes but you could just save the hash map to an external file
Hi René, Amazing 🔥 Thank you.
René, are you able to code a similar Trade copier to bridge MT5 with Match Trader?
Wow! Thank you so much, Rene! Would you consider doing the same for an MT5 to Match Trader solution by chance?
Never heard of this match trader so not really planned soon
Ah okay, understood! The 5%ers has just switched all their accounts to Match Trader and I believe some other prop firms have as well. Thanks again!
@@pnw9957 ah got it. Yeah let us see how things go with the platforms. I will stick to mt5 as long as i can use it :)
Same here!
@ Surgetrader switch there to, and I would really like so help to make an EA that copies to Match Trader.
Awesome video - but where did you find the detail around adding default:{account number}? im trying to get the market data request to work and wondering if there is other help or contacts you used other than the swagger ui or the rest api specification?
Thanks! I just used the api documentation and the swagger ui and then a lot of trial and error :D
wow didnt know you can do it like this, do you by any chance know how to make similar thing with SIRIX (they have api too)
Hello buddy please can you paste all the code used in the demonstration so we can make the adjustment while watching the tutorial
Hi , Can you make a software that copy one to another account from my other EA ? I mean to say that we put manually trade every copier but I want to use my EA so the copier copy trades from my personal EA, Is it possible ??? And thankyou for your great content every video I learn something new.❣
Please please please Rene, teach us how to use the hash map to make it trade a symbol that looks different in my broker. On my broker i have "GBPUSD" while on dx trade i have "GBP/USD" and the trades are not copying
any copier for match trader??
Sorry for all the comments. Thank you foe the tutorials. However i am not a programmer by any means. Can you do a video showing to set it up please? From install on mt5 to inputting credentials from dxtrade to test. Tha nk you very much. If you are unable to, would a quick private session be available?
My channel is about programming ;) maybe you want to give it a try. I have many free tutorials on the channel already. It is not hard. Everyone can learn it and it is definitely worth it ;)
Yes I know its about programming, i so appreciate it. I understand some, very basic, which is how i am able to watch and follow to some extent. However for this: i am highly just interested in bridging my dxtrade with my mt5 as i hate the dxtrade platform. I cant afford at the moment to try to learn programming just to bridge my account. I have followed the instructions best i could, i compiled and got 5 errors, which i am unsure of what to do at this point. Are you able to assist me? It is in regards to the json line with my account username@
How about myfunded fx dxtrade? How to setting?
The API has now been disabled for FTMO users in DX Trade. I’m assuming there is no way around this?
I've been working with dxtrade API for a while now but I can't seem to find how to send Take Profit and Stop Loss values while posting an order with dxtrade API. How do I define these take profit and stop loss fields in the body of the post order request? Your swift response will be highly appreciated. Thanks!
I did not have a look at tp and sl yet so won't be a big help here :D I think you can possibly do it with the order api request but not sure.
Have you tried it with a different prop firm than FTMO
Hi, René
Will you add this bridge EA to your MQL5 store?
Maybe a version between MT4 and DXtrader as well?
Not sure how stable this EA is so I do not think I will upload it to mql5. But you can just get it from the video here ;)
Thank you so much for this....any chance of a MT4 version?
Not planned. I focus on mt5 right now
Im a US trader with FTMO and now stuck manual trades with DXTrade so i thought I would ask anyway. Thank you for your time and great MT5 option.
Vert good job … i think i’m gonna use it for my prop firm… I got a question and for you.. could you make a simple Cbot on ctrade ??
Make sure to test the bridge first. Not sure how stable it is in the long run. Just tested with few trades. I nevrr really worked with cTrader.. have to check it out maybe
Yeah i’m testing the bridge on a demo account … for the next 2 week i want to check if it works fine … for CTrade i hope you do it … Thank for all your suggestion e all your course I bought che mt5 masterclass and it’s Amazing.. trans you for all again and havegood trades 👌
@@GianlucaEsposito-u8o Sounds great! Keep it up :)
thank you very much buddy
First of all, thank you in advance! Greetings from latam! It would be great if you could convert it into a file with an interface so that we only have to place the parameters, I don't understand much about code, but I'm very grateful, I'll try it!
Thank you @ReneBalke for the videos, do you have one for MetaTrader to Ctrader? Thanks
No
Well done. I have a question, in MT5, nasdaq symbol is "USTEC", but in DXtrade the symbol is "NAS100", Could you please add addition code on this video comment to handle it, I usually trade this.
I do not think I will make another tutorial for dxtrade soon. But you just have to use the correct symbol name for the "instrument" key in the json that it used for the api call.
@Thank you, I'll try as per your suggestion.
@@JCYS1860did it work for you?
I have the same problem with nasdaq but im not a pro of coding (:
@@JCYS1860 Did it work for you?
Thanks
sending order not working for "accounts\default:" how to know the correct string?
Great video,
Do you know if it is possible to add risk management for the dxtrade I mean if I enter trade on mt5 with 0.01 and I want dxtrade to enter on 10k account and risk 1% for the accout
Hi Rene, there is an update in the API of the dxtrade, in the login function, it now returns RBAC access denied with status 403 forbidden, how do I fix this to make the code start working again? Much appreciated.
I am having the same issue. Please Rene, how can I get this to work again? ;(
Hi Rene, great job!, could you make a video showing how a bot from one terminal can receive low latency tick data from other mt5 terminal?. Like two accounts linked with server-client in order to compare real time tick. would be very usefull for arbitrage, correlation and fast frequency strategies.
Not sure if this works since forex/cfd is not really regulated.. every broker has its own prices
I am not a programmer by any means. Can you proved the file that I van just install with instructions? Or the script that I could just compile?
@@LiquidEntourage first pinned comment is the code ;)
@ReneBalke yes I am watching the first video now to see hoe install and configure now. Thanks.
@ReneBalke what I would like to know Is this script already finished and all I need to do is input my base url account and password? Or do I need to input the web request and go down the list of the first video?
Can you use this and run a trade manager EA? Sorry I know nothing about programming
How are the trades being mirrored if there multiple subaccounts under a single login?
Still it's working ?
I'm getting error 403
Can you resolve it ?
Will the chart in mt5 have the same chart as dxtrade? As far as I know, especially the index chart has differences in each broker, is it possible if we have the same chart? in mt5 is it the same as in dxtrade?
Thank you!!
Can this work on other brokers other than ftmo? Can you post the link in here talking about previously talks about the setup
Thanks for your good job, is there any ways to send tp and sl while sending order or modify it after sending. Thanks
I think so.. but did not do it yet. I am pretty sure you can learn about it if you read the documentation.
Hi @zhilwansalih79, have you found a way to send tp and sl with the order? I really need this. Thanks!
@@GodsfavourIdowu-Agida no as i said i did not do/try it yet ;)
@ Please "do/try it yet" for me 🥺 ;)
Hey René, Could you fidure out how to delete a pending order with the orderId? I could only make it work with the orderCode but in the documentation they say both should work.
I did not try this yet and I do not think I will work with the dxtrade platform more. But make sure to contact the dxtrade support if the api documentation is wrong or insufficient. They are the ones that can help you best :)
I LOVE THIS DUDE I OWE YOU A DONATION
Hello buddy please can you paste all the code used in the demonstration so we can make the adjustment while watching the tutorial
Have one way to create an similar Bridge to work on Binance ??
Not planned. I am not really into crypto actually..
anyone successfull connected to any other DXTrade other than the FTMO one? MT5 to FTMO DXTrade is working fine. but when i change the URL to any other DXTrade servers of any other propfirm i am not able to place a trade. server login is successfull but when i place a trade i get a 404 error message.
same here, did you find a solution?
it looks like its a problem with the Symbol difference on MT5 and DXTrade. when i use any MT5 broker with FTMO DxTrade it works because FTMO DxTrade is the only one that uses the Symbols without a / in between. for example EURUSD vs EUR/USD. when the DxTrade plattform uses a EUR/USD Symbol its not possible to copy any trades.@@shenrg86
But i was not able to solve this problem, due to my very limited programming skills :)
@ReneBalke do you have any ideas to solve this?
me too guys
I'm getting the same problem. It works for FTMO but when you change to another URL it gives you the 404 error. Does anyone have a fix?
same problem, only works with FTMO
Hello do you have mt4 to dx trade thanks
Any ideas on sending pending orders?
How about with dxtrade myfunded FX? Please help
im testing it with instantfunding but i have the error 403
Link to 1st video?
If I do not have funds in my mt4 account could I use mt5 demo account to dxtrade?
Sir will DX trade EA will be better than MT5?
I think there is end to EAs now 😢
Can the bridge be used together with an EA, executing trades of an EA? Thanks 🙏
Yes
thanks for the code bro
How abt ctrade
Hi, this will also work with mt4?
Can I use this for tft with Voyage Markets-DX Trade
Dunno i never worked with tft
Hi Rene, wonderful work, you are top!!!!
Would it be possible to do it in MT4 as well?
In MT4 I didn't find this function: "OnTradeTransaction", how to replace it?
it's possible?
thank you in advance
Yeah the mt4 does not have this function. You would have to use the ontick or ontimer function and check for new trades.
I copypasted the code and it always copies 1 volume, no matter if FX or indices.
Did you try to change the volume in the http request?
can we use this for ctrader or only it works in web based dxtrade
This specific EA will only work for dxtrade. But I am pretty sure you can also create a similar bridge (web based or just on your local pc) for cTrader
Could I use this with Tradovate API? ir is a totally different code.
I do not know their api but I think you have to change the code for this.
I dont see the code, where can i get it?
First pinned comment
Are you thinking about my request as a follower Dxtrade to MT5.......
Not really actually I am sorry. I think most people are more interested in mt5 -> dxtrade
How can get this code brother....great work🎉🎉🎉
in the first coment
Here is what I am having as issue on the placeOrder function > server request failed... code: 404
I get the same. Did you resolve?
Can this close partial trades? or is it entire trade open/close only?
Not sure did not try partials. Maybe you can read about it in the documentation or you can just try it and see if it works ;) let us know
Hi Rene, thank you for your great work. I don't know how is that working, but when I try to close positions I'm getting server faild 409 with code description 100. Any idea why, is seting position effect to close, and positionCode to position from DX ?
Dunno what does 409 mean? You can read it in the documentation usually ;)
@ I know, I have fought with it 2 days now :D their docs are so crap, is all perfect when I want to open position, works as a charm, but closing is pain in a neck :( , in their docs status 409 means conflict and error code 100 mean Order with this id already exists, which is obvious as I want to close that position :) heeeelp :D
This is what I got in respond, after open and close
MT4 to DX ETHUSD,M5: sentOrder server request failed: 409 ,{"errorCode":"100","description":"Entity already exists at server"}
MT4 to DX ETHUSD,M5: {"account": "default:1210006051","orderCode": "227079869","type": "MARKET","instrument": "EURUSD","quantity": 1000,"positionEffect":"CLOSE","positionCode": "5110260","side": "BUY","tif": "GTC"}
MT4 to DX ETHUSD,M5: sentOrder server request succesfull: 200 ,{"orderId":5110260,"updateOrderId":5110260}
MT4 to DX ETHUSD,M5: {"account": "default:1210006051","orderCode": "227079869","type": "MARKET","instrument": "EURUSD","quantity": 1000,"positionEffect":"OPEN","positionCode": "","side": "BUY","tif": "GTC"}
@ I know, I try for 2 day to sort it out, status 409 mean conflict, error code 100 mean that position exist on server, which is obvious as I want to close that position :( their docs are so crap to be honset.
this is what i got in response:
MT4 to DX ETHUSD,M5: sentOrder server request failed: 409 ,{"errorCode":"100","description":"Entity already exists at server"}
MT4 to DX ETHUSD,M5: {"account": "default:1210006051","orderCode": "227079869","type": "MARKET","instrument": "EURUSD","quantity": 1000,"positionEffect":"CLOSE","positionCode": "5110260","side": "BUY","tif": "GTC"}
MT4 to DX ETHUSD,M5: sentOrder server request succesfull: 200 ,{"orderId":5110260,"updateOrderId":5110260}
MT4 to DX ETHUSD,M5: {"account": "default:1210006051","orderCode": "227079869","type": "MARKET","instrument": "EURUSD","quantity": 1000,"positionEffect":"OPEN","positionCode": "","side": "BUY","tif": "GTC"}
@@michalc1763 when i had the 'conflict' it was because i did not send a different request id (order id.. don't know the name of the json key right now :D)
can you connect multiple dxtrade accounts?? like 2 or 3, mean from mt5 to 2 or 3 dxtrade account
Sure why not. Theoretically you can do it with as many accounts as you like.
like execute from one mt5 account and copy to 2 or 3 dxtrade accounts the same trades??
@@joyskillian sure. You need to modify the code of course but it is possible. Just call the dxtrade api multiple times for different accounts.
@ could you make a video showing how to do it, I will appreciate it so much thanks for the effort of course
@@joyskillian Not planning to do more dxtrade videos soon
This will also copy SL & TP ?
No it just send opening and closing operations
Can you do mt4????
I focus on mt5 right now.
Looks like ftmo turned off demo api
Is this similar to Telegram?
ummm not sure what you mean. it has nothing to do with telegram. but yeah telegram also provides an api if this is what you mean :D
Is it working for everyone??
I refuse to use any broker or prop firm that has switched to DXTrade, absolute dogshit platform.
I also prefer the metatrader :D
There already is a copy trader for DXtrade lol
But is it free, however?
Rene is gonna upload his own copy trader on the mql5 market, you think it’s gonna be free?
@@danchanner7887 that is not free xD
@@jasbdfx4866 xD
Bro :D this video is not really about the copier but more about programming and using the api. I think you are not my target audience here ;) :D
Anyone facing slowness when using this copier with MT4 & gooeytrade server?
This works with MT4 ? I thought it was only for mt5
how are u able to place a trade on the gooeytrade server? its only working for me on MT5 to FTMO DXTRADE. when i try to add any URLs of other propfirms, server login successfull, but when i place a trade i get a 404 error message
how are u able to use the gooeytrade server? when i place a trade i get the 404 error message all the time
have you resolved?@@blckfxcapital
great video ... i 'm getting this error can you please help me out ...i'm very new to coding "web request failed... code: 4014"
Did you add the url to the list of allowed urls in your mt5? Watch the previous video i made about the api. I explain everything ;)
@ Thank you for the response mate. Sure I will do
I also received this error, I solved it just as you said, now my error is the following:
placeorder>server request failed... code:404
Do you know how I could fix it?@