[ARCHIVE]Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Can't go anywhere without you - 5. - page 275

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 don't see your int i string and index initialisation. Please, in the studio.
ZZY I don't speak Lithuanian well, the comments in the code throw me off a bit)))
I have zeros in the array. The array is increasing normally. It is visible in the print.
2013.04.08 23:18:37 2013.04.04 20:00 testavimas naktini fleta EURUSD,M15: ArraySize 19
but it writes zeros in the array
2013.04.08 23:18:37 2013.04.04 20:00 testavimas naktini fleta EURUSD,M15: avgPriceC[8]=0.00000000
2013.04.08 23:18:37 2013.04.04 20:00 testavimas naktini fleta EURUSD,M15: avgPriceC[7]=0.00000000
04.04 20:00 testavimas naktini fleta EURUSD,M15: avgPriceC[6]=0.00000000
2013.04.08 23:18:37 2013.04.04 20:00 testavimas naktini fleta EURUSD,M15: avgPriceC[5]=0.00000000
2013.04.08 23:18:37 2013.04.04 20:00 testavimas naktini fleta EURUSD,M15: avgPriceC[4]=0.00000000
2013.04.08 23:18:37 2013.04.04 20:00 testavimas naktini fleta EURUSD,M15: avgPriceC[3]=0.00000000
2013.04.08 23:18:37 2013.04.04 20:00 testavimas naktini fleta EURUSD,M15: avgPriceC[2]=0.00000000
2013.04.08 23:18:37 2013.04.04 20:00 testavimas naktini fleta EURUSD,M15: avgPriceC[1]=0.00000000
2013.04.08 23:18:37 2013.04.04 20:00 testavimas naktini fleta EURUSD,M15: avgPriceC[0]=0.00000000
All elements with value 0
avgPriceC[i] = Close[1];
but don't know how. May be the reason for something else. I even reinstalled my MetaTrader. It did not help.
I want to get infinite array with beginning by primary data, but end is not specified.
In the KIM example also
no, there is no global declaration, each function has its own y[].
As for your code and zeros, let me explain with an example.
If int a[],n=5; ArrayResize(a,n), then the last array element has an index n-1, not n. You have:
Obviously, it's outside the array's boundaries. Hence, there are zero values. The correct way is
Not the same at all, but very different. Read global and local data.
tara and alsu
Thank you very much.
Good afternoon, I need help with this question: there is an array Mas[10]. I need to find the product of each cell with each cell. I made such a construct, where operator if(i==j) eliminates the product of the cell itself. The problem is, I get double math, i.e. for example for i=1 and j=2 the result will be the same as for i=2 and j=1. What additional condition should be written to prevent double calculations?
Hi all!
I am not familiar with MQL4 coding. I want to try to write a good Expert Advisor based on support and resistance levels, but I don't know how to write code and program to look for support and resistance levels. I am not able to search for it in code base, I am clumsy and my time is limited.
Thanks in advance! May profits come to you, and may elks go around!)
Hi all!
I am not familiar with MQL4 coding. I want to try to write an EA based on support and resistance levels, but I don't know how to write code for a program that will look for these levels. I am not able to search for it in code base, I am clumsy and my time is limited.
Thanks in advance! May profits come to you, and may elks go around!)
Look at the indicator in CodeBase DailyPivotPoints! I think it will help you! Good Luck!