if it always prints the close price for last bar only (bar #0), then probably iBarShift always returns -1
EDIT : define array type for timeAndDateArray , if not already.
Eric Gennadivich: ... Also, how would I "append" these values to another array...
better to use one array from start. and just populate it with new values.
Eric Gennadivich: This just returns the same price over and over again
-
Why did you post your MT4 question in the
Root /
MT5 EA section
instead of the
MQL4 section, (bottom of the Root page?)
General rules and best pratices of the Forum. - General - MQL5 programming forum
Next time post in the correct place. The moderators will likely move this thread there soon. -
On MT4: Unless the current chart is that specific pair/TF referenced, you must handle 4066/4073 errors.
Download history in MQL4 EA - MQL4 and MetaTrader 4 - MQL4 programming forum

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
Hi I am running into some problems with my code:
This just returns the same price over and over again (I checked to make sure it is different). What am I doing wrong? Also, how would I "append" these values to another array.
Thanks in advance!