-
Play videoPlease edit your post.
For large amounts of code, attach it.
- buchtik: My idea is make a some pause in EA after close order - but no Sleep.Then why does your posted code have a sleep?
- buchtik: It work well in demo - but in optimalization i Tester - NO.'Testing Features and Limits in MetaTrader 4' - MQL4 Articles
To pause the Strategy tester whenever you need:
I am satisfied that the code is working well on the live and demo. This section I think has disabled for testing and optimalization.
I don't need this break in the tester . This condition is prohibited in tester but - is not working? Why ?
If it is possible, I'm looking for a custom solution, which I can understand
bool IsOptimization; bool IsTesting; bool notester; // notester = ( !IsOptimization() && !IsTesting()); // true while no-test AND no-optimalization .. . . if (notester) // only no tester or no optimalization { xxxxxxxxxxxxxx }
enum Terminal_Mode{ MODE_LIVE, MODE_VISUAL, MODE_OPTIMIZER}; /// @returns terminal mode. Terminal_Mode get_modus_operandi(void){ if(!IsTesting() ) return MODE_LIVE; if( IsVisualMode() ) return MODE_VISUAL; return MODE_OPTIMIZER; }
You try It ??? I do it but .. undeclared identifier
"IsTesting()" and "IsOptimization()" are built-in functions. They have to be called with the "()". You must be calling them incorrectly in other places in your code which you have not shown us.
In the compile error list, it tells you which line is causing that problem, yet you have hidden that information from us. If you want us to help, then show us the full code, or in the very least the section identified by the compiler errors, otherwise we are unable to help you.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
My idea is make a some pause in EA after close order - but no Sleep.
It is section in line 38-57 in the atached file. It work well in demo - but in optimalization i Tester - NO.
Yet I could not find my mistake - problematic is maybe instruction while ....