Topic: "Array out of range"
As soon as I attach the following EA to a chart, it removes it instantaneously.
Screenshot: http://imgur.com/a/QFjj1
The log file says the following:
0 00:47:00.586 MaxMillion USDJPY USDJPY,H1: MaxMillion USDJPY loaded.
0 00:47:00.598 MaxMillion USDJPY USDJPY,H1: Loading data: USDJPY,H1, Minumum bars: 202...
1 00:47:00.599 MaxMillion USDJPY USDJPY,H1: array out of range in 'MaxMillion USDJPY.mq4' (1672,22)
3 00:47:00.599 MaxMillion USDJPY USDJPY,H1: not initialized
0 00:47:00.599 MaxMillion USDJPY USDJPY,H1: uninit reason 8
0 00:47:00.603 Expert MaxMillion USDJPY USDJPY,H1: removed
0 00:48:34.270 Expert MaxMillion USDJPY USDJPY,H1: loaded successfully
The following line causes the Exception (left loop in just for context):
for (int bar = 0; bar < firstBar; bar++)
indComp.Value[bar] = 0; //this one
Could anyone help me? It would be quite the pain to look into it myself, as I have no idea how FSB structures its EAs code wise.