Greetings, Does any one know how to pass variables to an array e.g. I am doing something
like 1 for(i=Bars-j-1; i>=0; i=i-6){ 2 double highs[6] = {High[i], High[i+1],
High[i+2], High[i+3], High[i+4], High[i+5]}; 3 int index = ArrayMaximum(highs);
..... } and getting a compilation error: 'High' - variable expected pointing to
the second line. Your help would be much appreciated
- Relative Vigor Index - Oscillators - Indicators - Charts - MetaTrader 5 for Android
- Relative Vigor Index - Oscillators - Indicators - Chart - MetaTrader 5 for iPhone
- Relative Vigor Index - Oscillators - Technical Indicators - Price Charts, Technical and Fundamental Analysis
Just figured out myself: double highs[6]; highs[0] = High[i]; highs[1] = High[i+1];
highs[2] = High[i+2]; highs[3] = High[i+3]; highs[4] = High[i+5]; highs[5] = High[i+6];
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