Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 722
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
I can't figure out why it hangs
while(i>=1) // Cycle through uncounted bars
i>=1always.
int i// Bar index
while(i>=1) // Loop over uncounted bars
i>=1always.
Right, I forgot about...thanks.
i--;
If to uncomment if(Count>2) ExpertRemove(), and exit by this function, thenafter EA unloading, comment "Deinit() triggered during unloading" remains displayed on the chart.
Does anyone know why, if such EA is removed from the chart via context menu, then Comment() from OnDeinit does not remain on the chart?
Shurkin:
This is an error of language design in general, defended at the highest level. Two facts:
1. The MQL4++ language allows hiding variable names in nested scopes.
2. When hiding variable names in nested scopes, there must be a warning, which cannot be disabled.
To answer the question, there are at least two possibilities:
1. use name hiding, but put up with the presence of a warning (bad, you might miss a really important other warning among the many warnings about hiding names which could help detect and eliminate a potential error).
2. Do not use name hiding, even though the language has such a feature. For example, name the global variable gErr instead of Err.
Instead of prohibiting hiding names, a non-removable warning is introduced. Take advantage of it.
In Russian: the correct option is the first, ignore the warnings.
In Russian: the correct option is the first, ignore the warnings.
Where can I find descriptions of functions in the inclusion files?
If the files are from the standard library, of course you can. You need to open this include file, and in it you will see something like the following:
Next, highlight "CChart" and copy it. Press F1 - help opens and in the tab "Search" paste the desired text + Enter.