Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1726

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
First of all, it depends on the indicator that draws the fractals
How do I know? I can find out if there is a signal on the n-th candle. But how do I know if the signal is present on the interval of n candlesticks?
Use a cycle. Go through n for x bars and find out if there were signals there or not
Use a cycle. Go through n for x bars and find out if there were signals there or not
Unfortunately, I'm not that good at programming( That's why I ask such nerdy questions(
Can you tell me how to take the value of a candle a long time ago? That is, a very far back value. For example, if I write Close[10000], then the terminal will swear.
How does it affect me? What is in the log? Indicator or Expert Advisor?
EA (training, without trading functions)
EURUSD,M1: array out of range in 'Tutorial.mq4'
extern int Period_check = 10000;
//+------------------------------------------------------------------+
void OnTick()
{
Print("High = ", High[Period_check], ", Low = ", Low[Period_check]); // тут ошибка EURUSD,M1: array out of range in 'Учебный.mq4' )
}
EA (training, without trading functions)
EURUSD,M1: array out of range in 'Tutorial.mq4'
If it is an Expert Advisor, download its history.
Use iBars to check it.
Please, advise how to take the value of a candlestick a long time ago? That is, a very distant value. For example, if you write Close[10000], the terminal swears
Before accessing an array, make sure that the index does not exceed its limits. That is, find out the size of the array.
For timeseries this is iBars or Bars.
If an EA, download the history
Use iBars to check.
Before you access an array, you need to make sure that the index does not go beyond its limits. That is, find out the size of the array.
For time series, it is iBars or Bars.
Thank you.
I wrote Print("Bar count on the 'EURUSD,M1' is ",iBars("EURUSD",PERIOD_M1));), from the documentation. The terminal logged the number 1001.) Although, the history is loaded, the max is more than 1000000 bars in the settings.Please advise how to solve the problem