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
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
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
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
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
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!
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
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
Forex Software → Expert Advisor Studio → Tester will not trade, order send retry
Powered by PunBB, supported by Informer Technologies, Inc.