forex software

Create and Test Forex Strategies

forex software

Skip to forum content

Forex Software

Create and Test Forex Strategies

You are not logged in. Please login or register.


Forex Software → Expert Advisor Studio → Tester will not trade, order send retry

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 6

Topic: Tester will not trade, order send retry

All strategies produced in EA studio for mt5 will not trade in the tester. It just reports “order send retry” over and over again.

Any advice?


Josh

Re: Tester will not trade, order send retry

Hello Josh Welcome on board!
Probaly your brokers accepts only "ORDER_FILLING_RETURN" as Filling Type

Find in the code

orderFillingType = IsFillingTypeAllowed(ORDER_FILLING_FOK) ? ORDER_FILLING_FOK : ORDER_FILLING_IOC;

and overwrite it to

orderFillingType = ORDER_FILLING_RETURN; 

try it and give a feedback; see you soon

Vinicius Pereira, Portuguese Support.
Improve your trading with my strategies & signals on MQL5. High success rate & many followers. Check them out & join my EAS telegram group for updates.

Re: Tester will not trade, order send retry

Viki

thanks for the input. i see something like this around line 331 of the code. can you take a look at the attachment please?


Josh

Post's attachments

EA Studio EURUSD M30 134.1.mq4 13.48 kb, 2 downloads since 2017-11-24 

You don't have the permssions to download the attachments of this post.

Re: Tester will not trade, order send retry

Hello Vini and Josh,

Please post the progress of the fix. If it works, I'll implement it in the standard EA code.
Please try to make it working for all broker without changes. For example the EA may detect the proper order filling settings at the initialization.

Trade Safe!

Re: Tester will not trade, order send retry

Vini and Popov,

Sorry I attached the wrong file.  I attached it now and here seems to be the closest code to match what you are saying.  I just am not sure what to do with it.



bool IsFillingTypeAllowed(int fillingType)
  {
   int filling=(int)SymbolInfoInteger(_Symbol,SYMBOL_FILLING_MODE);
   return (filling&fillingType==fillingType);
  }



Josh

Post's attachments

EA Studio EURUSD M30 134.1.mq5 14.81 kb, 1 downloads since 2017-11-24 

You don't have the permssions to download the attachments of this post.

6 (edited by ViniQ 2017-11-24 15:31:44)

Re: Tester will not trade, order send retry

here seems to be the closest code to match what you are saying.

Please look at your file again, at line 64, there is a surprise for you cool

https://i.imgur.com/vXnLW6R.png

Vinicius Pereira, Portuguese Support.
Improve your trading with my strategies & signals on MQL5. High success rate & many followers. Check them out & join my EAS telegram group for updates.

Posts: 6

Pages 1

You must login or register to post a reply

Forex Software → Expert Advisor Studio → Tester will not trade, order send retry

Similar topics in this forum