Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 629
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
There are all sorts of things. For example, if position management needs to be transferred to another advisor.
There are all sorts of things. For example, if position management needs to be transferred to another EA.
Rummaged through the help and searched the site, but couldn't find any examples of how to use the MessageBox function. Please advise:
1. Is it possible to change the location of the window displayed by MessageBox?
2. Can I change the names of the buttons, e.g. from "Ok" and "Cancel" to "aha" and "no way"?
3. what do MB_DEFBUTTON flags do in this function - which buttons are we talking about and what is it for?
Good day (or night).
Please advise, if I loop the code (for or while, whatever), and put in the loop the code of getting the value of one of indicators (or the price in a variable), will it work?
Will the variable, which is in the loop, receive its values at a new tick, because the procedure is looped?
Good day (or night).
Please advise, if I loop the code (for or while, whatever), and put in the loop the code of getting the value of one of indicators (or the price in a variable), will it work?
Will the variable situated in the loop always receive a value at a new tick, because the procedure is looped?
In such a loop, before e.g. getting the Ask price (or something else that comes with the tick), put RefreshRates() before this action to request the current Ask value, not the old Ask value that came with the tick that started the loop. If you request the indicator value inside the loop, the current value should be correct.
To be 100% sure, make a simple Expert Advisor with your loop and display the information on the chart through Comment(), and you will see immediately if the values are correct in the loop.In such a loop, before getting, for example, Ask price (or something else that comes with the tick), put RefreshRates() before this action to request the current Ask value, not the old Ask value that came with the tick that started the loop. If inside the loop you request the value of the indicator, the correct current value should be obtained.
To be 100% sure, make a simple Expert Advisor with the loop and display the information on the chart through Comment() and you will see immediately if the values obtained in the loop are correct.Thank you.
So, it will work. This is good.
By the way, is it correct to use this approach in a loop, or is it perverse?
I noticed that because of such a cycle MT4 hangs completely.
By the way, is this the right approach to the cycle or is it a bit perverse?
I've noticed that because of this cycle, MT4 hangs up completely.
And there are lovers of perversion. I mean looping.
Thank you.
So it will work. That's great.
By the way, is this approach to the cycle correct or is it a bit perverse?
I've noticed that the loop causes MT4 to freeze up completely.
From the help"Each script and each expert works in its own separate thread. "
"A looped script or Expert Advisor cannot disrupt work of other programs".
i.e. looping can be used.
I am using a script and such a template for these tasks:
I have noticed that MT4 hangs completely because of the loop.
So it will work. This is great.
By the way, is this approach to the cycle correct or is it a bit perverse?
I've noticed that this cycle causes MT4 to freeze up.