Strategie Tester: OnTick critical error

Einloggen oder registrieren, um einen Kommentar zu schreiben
lindomatic
321
lindomatic  

Hallo,

wo bekomme ich da weitere Info zu? Im RealTime-Test bekomme ich kein Fehler, ich wollte meinen EA nun mal auf ein paar Zeiträume und Instrumente laufen lassen und fahr' leider vor die Pumpe.
Hier ist das Log:

JJ    0     23:47:47.133       Tester   expert file added: Experts\Goldesel-fx_3.ex5. 87793 bytes loaded

DM   0     23:47:47.143       Tester   initial deposit 10000.00 EUR, leverage 1:10

QR   0     23:47:47.148       Tester   successfully initialized

EQ   0     23:47:47.148       Network 109 Kb of total initialization data received

NF   0     23:47:47.148       Tester   Intel Pentium 4  2.40GHz, 16384 MB

LQ   0     23:47:47.820       Symbols EURUSD: symbol to be synchronized

HE   0     23:47:47.821       Symbols EURUSD: symbol synchronized, 3720 bytes of symbol info received

DK   0     23:47:47.822       History EURUSD: history synchronization started

JQ   0     23:47:47.830       History EURUSD: load 27 bytes of history data to synchronize in 0:00:00.005

NG   0     23:47:47.830       History EURUSD: history synchronized from 2018.01.02 to 2019.12.12

CD   0     23:47:48.393       History EURUSD,H1: history cache allocated for 12088 bars and contains 12053 bars from 2018.01.02 03:00 to 2019.12.09 23:00

IE   0     23:47:48.393       History EURUSD,H1: history begins from 2018.01.02 03:00

JO   0     23:47:48.394       Tester   EURUSD,H1 (AdmiralMarkets-Demo): every tick generating

HI   0     23:47:48.394       Tester   EURUSD,H1: testing of Experts\Goldesel-fx_3.ex5 from 2019.12.10 00:00 to 2019.12.12 00:00 started

ME   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   Anzahl PositionsTotal: 0

ID   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   ***************pos_bid   : 1.10631

PN   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   ***************pos_spread: 0.00005

JR   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   ***************pos_oprice: 0.00000

RQ   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   ***************pos_cprice: 0.00000

NG   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   ***************winclosest: -0.00055

RE   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   ***************notstopst: 0.00050

RN   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   ***************winclosebt: 0.00055

KO   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   ***************notstopbt: -0.00050

JK   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   openPosition: false

GG   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   PositionType: 0

GR   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   Current Volume: 0.0

JR   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   glBuyPlaced: false

LK   0     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   Trade gelaufen: false

FO   2     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   array out of range in 'Goldesel-fx_3.mq5' (172,49)

KM   2     23:47:49.393       Tester   OnTick critical error

PG   0     23:47:49.395       Tester   EURUSD,H1: 1 ticks, 1 bars generated. Environment synchronized in 0:00:00.749. Test passed in 0:00:01.581 (including ticks preprocessing 0:00:00.032).

JN   0     23:47:49.395       Tester   EURUSD,H1: total time from login to stop testing 0:00:02.330 (including 0:00:00.749 for history data synchronization)

LO   0     23:47:49.395       Tester   210 Mb memory used including 0.94 Mb of history data, 32 Mb of tick data

EG   0     23:47:49.395       Tester   log file "C:\Program Files\AdmiralMarkets MetaTrader 5\Tester\Agent-127.0.0.1-3000\logs\20191212.log" written

FL   0     23:47:49.395              test Experts\Goldesel-fx_3.ex5 on EURUSD,H1 thread finished

ID   0     23:47:49.491       127.0.0.1     prepare for shutdown

1000 Dank & Gruß, Chris

Otto Pauser
2168
Otto Pauser  
FO   2     23:47:49.393       Goldesel-fx_3 (EURUSD,H1)     2019.12.10 00:05:00   array out of range in 'Goldesel-fx_3.mq5' (172,49)

Einer der typischen 'Array out of range' Fehler.

Das musst du im Debugger überprüfen!

Das Log sagt dir ja auch Zeile 172, Position 49

lindomatic
321
lindomatic  
Otto Pauser:

Einer der typischen 'Array out of range' Fehler.

Das musst du im Debugger überprüfen!

Das Log sagt dir ja auch Zeile 172, Position 49

Ok, super, danke, ich  musste ein dynamisches Array in ein fixes ändern; die Ausmaße sind mir noch nicht klar, in wieweit sich dann alles mit dem Tester testen lässt.

Einloggen oder registrieren, um einen Kommentar zu schreiben