Questions from Beginners MQL5 MT5 MetaTrader 5 - page 974

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How about this?
Do it like this...
do this...
Fix initialisation blocks in EAs (OnInit() ).
What about it ? Return 0 on
Show complete MQL5 code of OnInit() function of EAs which don't reload. Show complete MQL5 code of OnDeinit() function of Expert Advisors which don't reload. Do Expert Advisors use third-party libraries? Dll?
Show full MQL5 code of OnInit() function of EAs that don't reload. Show complete MQL5 code of OnDeinit() function of EAs which don't reload. Do Expert Advisors use third-party libraries? Dll?
I don't use Dll. The code of OnInit is 1000 lines long. There is memory allocation for classes. Maybe not all memory is freed in OnDeinit. Closing the terminal with a cross is okay, but the scheduler works fine only 90% of the time.
You have already answered 90% of your question. All that's left is to find the error :)
So that when modifying orders we could explicitly specify which order to modify.
if an order Buy_Stop == wizard_2, modify it.
Good afternoon.
I have questions in connection with absence of Sleep() in the tester. I would like to know how people solve the following problems when using the strategy tester (both single runs and enumeration of input parameters):
1) How do they check if an indicator handle is ready? How would I make me wait until the indicator calculation is complete, and only then move on to the lines.
2) How do I wait for the text file called to open for reading during the EA?
3) How to wait for the response of the OrdersTotal() function? And can there be a delay in the response of this function?
4) How to wait for the OrderCalcMargin() function to respond? And can there be a delay in the response of this function?
5) Does it make sense to wait for the"trade server return code" through MqlTradeResult in the tester (even if it is not clear how).
In the terminal all these tasks were solved using Sleep(), while it doesn't work in the tester. Besides, I'm not sure if Sleep() is necessary, maybe there is a more rational solution?
Thanks already.
Hello ! decompose the construction into if... C= (i>0) ? (A>B) ? 1 : (A<B) ? 2 : C: 0;
read the help - but failed)
Hello ! decompose the construction into if... C= (i>0) ? (A>B) ? 1 : (A<B) ? 2 : C: 0;
read the help - but failed)
It seems like this:
S.S. It's got nothing to do with the help. It's about logic.