MT4 Portable and array out of range error

Discussion of the latest application betas including reports of bugs, issues and suggestions before it is made available as a general release.
Post Reply
isubrady
Posts: 1
Joined: Thu May 15, 2025 8:05 pm

MT4 Portable and array out of range error

Post by isubrady »

Hello,

I am having issues backtesting my EA in portable MT4.
I am trying to keep all of my MT4 files off of my operating system hard drive C.
I installed the MT4 terminal on the D: Drive, in which I then made it a portable MT4 terminal.

For some reason no matter what I do MT4 seems to create the folder structure under users/user/AppData/Roaming/MetaQuotes/Terminal onto my C: Drive.

Before I make the MT4 portable I move all of the files in from the C:Drive User folder over to the similar folder onto the D:Drive.

TickStory data I am saving out to a different folder on my D:Drive.
I have selected the MT4 terminal in the TickStory settings. I used the TickStoryInfo EA to get the data needed for exporting.

When I open the MT4 terminal from TicksStory and I test the Moving Average EA in Strategy Tester I get the 99.9% quality backtest but when I try to test my EA I am getting an array out of range error.

I am able to backtest my EA on a basic MT4 terminal without it being linked to TickStory or being made portable.

I was curious if anyone has had a similar issue to this or if anyone might have a solution it would be helpful.
Thanks in advance.
tickstory
Posts: 5288
Joined: Sun Jan 06, 2013 12:27 am

Re: MT4 Portable and array out of range error

Post by tickstory »

Hi Isubrady,

It sounds like you are starting up MT4 without specifying the "/portable" switch when starting it. This will cause MT4 to use the default C:\Users\(xx)\AppData location. Please check out our guide on how to set up portable mode. Our manual also has more information on configuring Tickstory for portable mode.

Regarding your "array out of range" error, this is caused by a programming error in the EA. You can search our forum for more help on how you can address this.

Thanks.
Post Reply