Questions from Beginners MQL5 MT5 MetaTrader 5 - page 1545
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 apologise for my inattention. Of course, it is not the compiler but the terminal that generates the error.
I could find that IndMax in the code
has a value of -1. Which, as I understand, cannot be. The check showed that the array has a positive number of elements with positive values. Hence a clarifying question, how to correctly set the task of determining the index of the largest element of the array?I was able to find that IndMax in the code
has a value of -1. Which, as I understand, cannot be.I may be wrong, but check the argument order of ArrayMaximum() function. It seems that 0 must come before WHOLE_ARRAY
The Volatiliti variable takes the price value instead of the value according to the formula. I don't see where the error is.
In the log file, the first 2 lines are components from which this variable is calculated according to the formula. The result is clearly the price from the market, not the result of the calculation.
Thank you for your help.
It generates this warning here:
double SL = edit7.Text();
Hello, please tell me how to fix this warning:
It generates this warning here:
The cause of this warning is elsewhere.
double SL = edit7.Text();
Hello, please tell me how to fix this warning:
It generates this warning here:
Hello!
Please tell me if there is a limit in MT4-5 on the number of indicators on one chart. I'm doing it in MT5 .Ten indicators work fine, the eleventh and further - it doesn't work.
The buffer does not initialise the eleventh array initially at initialisation, it refuses.
Ten indicators work well - the eleventh and further - it does not work.
You are doing something wrong. You need a sample code to reproduce it.