Mohammadreza Rahimi: How can customize this structure?
I'm using a phone with no js. Bear with me on this piece of code. struct CustomRequest:public MqlTradeRequest{ }; This will not help if you need to access the counter after trade request, since it's used only once during ordersend. You can try doing this using MqlTradeResult, since it has information such as deal ticket, which you can use to select the position. struct CustomResult: public MqlTradeResult { int counter1, counter2; }; Then use this in your Ordersend,in stead of using MqlTradeResult.
Anonymous3 Geek: I'm using a phone with no js. Bear with me on this piece of code. struct CustomRequest:public MqlTradeRequest{ }; This will not help if you need to access the counter after trade request, since it's used only once during ordersend. You can try doing this using MqlTradeResult, since it has information such as deal ticket, which you can use to select the position. struct CustomResult: public MqlTradeResult { int counter1, counter2; }; Then use this in your Ordersend,in stead of using MqlTradeResult.
Can we pass the structure we defined to the ordersend function instead of the mqltraderequest or mqltraderesult structure?
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
How can customize this structure?
I'm using a phone with no js. Bear with me on this piece of code. struct CustomRequest:public MqlTradeRequest{ }; This will not help if you need to access the counter after trade request, since it's used only once during ordersend. You can try doing this using MqlTradeResult, since it has information such as deal ticket, which you can use to select the position. struct CustomResult: public MqlTradeResult { int counter1, counter2; }; Then use this in your Ordersend,in stead of using MqlTradeResult.