-
ExtMapBuffer1[i] = iCustom(NULL, TimeFrame, "Non-repaint Arrows", Email, SL_add_pips, changeLiner, Gup, 2, y); ExtMapBuffer2[i] = iCustom(NULL, TimeFrame, "Non-repaint Arrows", Email, SL_add_pips, changeLiner, Gup, 3, y);
Why did you post your MT4 question in the MT5 Indicators section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. The moderators will likely move this thread there soon. - Invalid argument to iCustom.
-
Always post all relevant code (using Code button) or attach the source file.
Did you set the number of buffers? Program Properties (#property) - Preprocessor - Language Basics - MQL4 Reference
Your code enum opt { Current, M1, M5, M15, M30, H1, H4, D1, W1 }; extern opt TimeFrame = M1; int time_use() { int time = Period(); if(TimeFrame == M1) time = 1; if(TimeFrame == M5) time = 5; if(TimeFrame == M15) time = 15; if(TimeFrame == M30) time = 30; if(TimeFrame == H1) time = 60; if(TimeFrame == H4) + time = 240; if(TimeFrame == D1) time = 1440; if(TimeFrame == W1) time = 10080; return time; }
Simplified extern ENUM_TIMEFRAMES TimeFrame = PERIOD_M1; int time_use(){ return PeriodSeconds(TimeFrame)/60; }
-
Why did you post your MT4 question in the MT5 Indicators section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. The moderators will likely move this thread there soon. -
Always post all relevant code (using Code button) or attach the source file.
Did you set the number of buffers?Program Properties (#property) - Preprocessor - Language Basics - MQL4 Reference
Your code Simplified
-
Why did you post your MT4 question in the MT5 Indicators section instead of the MQL4 section, (bottom of the Root page)?
General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
Next time, post in the correct place. The moderators will likely move this thread there soon. - Invalid argument to iCustom.
-
Always post all relevant code (using Code button) or attach the source file.
Did you set the number of buffers? Program Properties (#property) - Preprocessor - Language Basics - MQL4 Reference
Your code Simplified
Thank you William Roeder for helping me. I frankly wouldn't have figured it out without you.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
I tried to make an arrow indicator to be multi timeframe and used the tutorial from the codebase about Multi timeframe indicators. Unfortunately, when I changed timeframe from current, the indicator returns the error "Array Out of Range". Please how can I solve this? Kindly assist.
Here is the full code