Errors, bugs, questions - page 2133
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. Please help me find the cause of this error. I am trying to convert an indicator from mql4 to mql5. I am using the following "shell" for iHigh functions:
As a result, I get the error 4301: "Unknown symbol", even though a string returned by the Symbol() function is passed as the symbol parameter. Here is a code fragment of the function calling iHigh
Who is "i"? What is its value before the loop?
Are you doing ResetLastError call beforeiHigh?
Who is the "i"? What is its value before the loop?
Do you make a ResetLastError call beforeiHigh?
The value of i is looped through in the OnCalculate function
I didn't make ResetLastError call, now I did - error code is the same. I use arrays low[i], high[i] etc. in OnCalculate function, and iHigh, iLow etc. in external functions.
The value of i is looped in the OnCalculate function
I didn't call ResetLastError, now I did - the error code is the same. I use arrays low[i], high[i] etc. in OnCalculate function and iHigh, iLow etc. in external functions.
Provide the MQL5 code that can be run and describe the conditions under which the error occurs.
Provide MQL5 code that can be run and describe the conditions under which the error occurs.
Seems to be something wrong with my terminal. Ran the same code on netbook on another mt5, same demo account - no error.
Here is the code itself:
I seem to have something wrong with my terminal. Ran the same code on netbook on another mt5, same demo account - no error.
Here is the code itself:
Note: You are writing in the main MQL5 forum section, this is where MQL5 is discussed. For MQL4 there is a special section:MQL4 and MetaTrader 4. Please publish your code in the appropriate section. It is even better when the publisher respects the users and immediately publishes the code in the header where the type of language can be seen.
Hello!
I can't change the timeframe of a graphical object - I can't tell if the terminal is screwing up or if it's me.
Here is the check code
The result is incorrect
But as soon as you comment out the selected line, the indicator starts working correctly
For some reason, ChartGetInteger in OnInit affects the properties of a graphical object.