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.
The question is simple. I printed a log file of the function:
for(int k=0; k<10000; k++)
{
Print("shift: ",k," ",TimeToStr(iTime(symbol, timeframe, k)));
}
Premise that ALL the history has been correctly downloaded for ALL timeframes. The problem is not a little one: everything after a certain bar shift - independentely on when the test starts - becomes zero all of a sudden (prices are obviously the cause, becoming they first null), with no apparent reasons.
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1197 2009.06.25 12:35
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1198 2009.06.25 12:30
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1199 2009.06.25 12:25
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1200 2009.06.25 12:20
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1201 2009.06.25 12:15
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1202 2009.06.25 12:10
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1203 2009.06.25 12:05
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1204 2009.06.25 12:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1205 2009.06.25 11:55
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1206 2009.06.25 11:50
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1207 2009.06.25 11:45
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1208 2009.06.25 11:40
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1209 2009.06.25 11:35
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1210 2009.06.25 11:30
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1211 2009.06.25 11:25
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1212 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1213 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1214 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1215 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1216 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1217 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1218 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1219 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1220 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1221 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1222 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1223 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1224 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1225 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1226 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1227 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1228 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1229 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1230 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1231 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1232 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1233 1970.01.01 00:00
11:25:09 2009.07.01 17:35 test EURUSD,M1: shift: 1234 1970.01.01 00:00
This happens only with EA, because I first coded a script to extract past data (over than 10,000 bars shift) with no any problems.
What could be related to?
Thanks in advance for any kind of help.
Simon