Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1508
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
Hello!
Try to create a separate object for each button and add it to the dialogue after creation. Otherwise the dialogue understands that it has only one button inside.
Hello!
Try to create a separate object for each button and add it to the dialogue after creation. Otherwise the dialogue understands that it has only one button inside.
I tried it, it throws a critical error "Array out of range"
We should first make this array of objects, and then use its elements in a loop, calling the Create method for them. I can't write an example right now
Got it, thanks!
Somehow, I guess:
Usually create your own dialogue class by inheriting from CAppDialog. Then btns can be a field of this class. Otherwise you should make it a global variable.
Check also that you have correctly calculated the coordinates of the next button placement - the i index should somehow participate in their calculation.
Check also that you have correctly calculated the coordinates of the next button placement - the i index should somehow participate in their calculation.
Everything works! Thank you very much!
This is probably a stupid question, but I am a newbie and I haven't figured it all out yet. can you please tell me how to limit the time an EA can work? I want to give the EA for 1-2 weeks for a test. How to write it in the code of the Expert Advisor? It is necessary that after X amount of time it should give a message EA working time has expired contact the author or something like that.
That's funny, but okay.
The easiest option is to add this code to OnTick().