Dukascopy
 
 
Wiki JStore Search Login

OrderSelect() Command in MQL4 Doesn't Work Properly
 Post subject: OrderSelect() Command in MQL4 Doesn't Work Properly Post rating: 0   New post Posted: Mon 13 Jan, 2014, 22:50 

User rating: 0
Joined: Sun 15 Dec, 2013, 22:31
Posts: 5
Location: CanadaCanada
Dear Support,

Since last night (Jan.12, 2014, Sunday) both DEMO and Live Platforms didn't work properly for MQL4 command of OrderSelect(). Please refer to the attachments for details.

That's really terrible for our users. I understand it’s hard for you to keep it working properly but as a platform, it must provide a high quality of service to your users. Such kind of low level mistake should not occur for a platform like Dukascopy !!! What I really don’t understand is why all these MQL4 commands worked correctly before didn’t work properly now !!! My impression to Dukascopy platforms now are unstable and lack of strong enough technical support !!!

Please correct the BUGs ASAP and let all your users a peace of mind trading.

Thanks!


Attachments:
File comment: From Live Platform
MyEA05_L.PDF [59.43 KiB]
Downloaded 69 times
File comment: From DEMO Platform
MyEA05.PDF [57.66 KiB]
Downloaded 77 times
File comment: My EA Test Program in MQL4.
MyEA05.mq4 [10.21 KiB]
Downloaded 52 times
File comment: Test Results in CSV format from Live platform
MyEA05_L.csv [4.92 KiB]
Downloaded 51 times
File comment: Test Results in CSV format from DEMO platform
MyEA05.csv [2.57 KiB]
Downloaded 47 times
File comment: Test Results from both Platforms
Dukascopy Platforms on Jan 13_ 2014.pdf [125.54 KiB]
Downloaded 72 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: OrderSelect() Command in MQL4 Doesn't Work Properly Post rating: 0   New post Posted: Tue 14 Jan, 2014, 16:26 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We are currently investigating this case.


 
 Post subject: Re: OrderSelect() Command in MQL4 Doesn't Work Properly Post rating: 0   New post Posted: Tue 21 Jan, 2014, 09:37 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We investigated this case:

1) OrderSelect() in your strategy actually works properly and shows exactly the same results in Metatrader 4 as in JForex platform. The problem is in incorrect MQL4 API usage. When OrderSelect() with SELECT_BY_POS flag is used, it expects order index as first parameter, but in your strategy order id is passed instead. See MQL4 documentation for details.
2) To make your strategy work in JForex as in Metatrader4, you need to change if statement in start() function of your strategy from "if(OrdersTotal() == 0 && CheckForOpen() == -1000 && CBarWaiting_Sign)" to "if(CheckForOpen() == -1000 && OrdersTotal() == 0 && CBarWaiting_Sign)". There is significant difference how if statements gets evaluated in MQL4 and Java, and unfortunately it can't be fixed soon.
3) We found some other small bugs, that could affect the work of your strategy. It's fixed now and will be available in new API release. The release on DEMO is scheduled this week.


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com