Sending Offline Chart to Strategy Tester (25% model)
OfflineTestHelper is a simple script that helps with a simple testing strategies, nested in offline charts. The testing quality is displayed as 25%, though it highly depends on the original chart fidelity.
The Strategy Tester included in the Terminal only allows picking testing timeframes from a drop-down menu, which contains standard values M1, M5 etc. On the contrary, the offline charts never can have such timeframe value in a live terminal.
The script replaces one of the standard timeframes by the offline chart. It works with an artificial broker to prevent the refresh of such chart with on-line data.

Input Dialogue
Input lets you decide for alternative server name. It is useful, when you prepare multiple offline charts for testing, preserving all of them for later use. Otherwise keep the default.
The second option would systematically overwrite the candle open value by a close value of the preceding candle. Use this settings for offline charts with displacement of the open price, like a reversal candle on Renko charts has.

Result Dialogue
The First Steps
Watch the video from Theo on how to use the Helper with the offline chart.
What does the helper after dropping on a chart:
- Creates a virtual server folder. Absence of the on-line server will prevent the terminal from updating any chart.
- Copies essential Metatrader data to the new server folder (instrument list with latest quotes).
- Creates a copy of the current offline chart.
- Set its timeframe to M1.
- Removes zero-volume candles (they are not compatible with the tester).
- Stores the new chart into the virtual server folder.
Then it displays a result dialogue. You have a chance to stop the script now.
When you decide to stop, your data is prepared for use with any MT4 terminal instance. You may copy/move your virtual server folder to another terminal for testing, login into the virtual server in the other terminal.
When you decide to continue with the Restart, your current terminal instance will be used for testing. It will force the entire MT4 terminal restart.
- The terminal shuts down, unbinding current server data.
- Terminal starts with the virtual server “test”, the connection status remains “Disconnected”.
- Ignore whatever you see in the charts in front of you. Switch to Strategy Tester (ctrl+R) by hand.
- Pick symbol of your converted chart.
- Pick M1 timeframe (your offline chart is stored as M1).
- Pick your strategy.
- Test.
- If you finished testing, log-in back to your original account&server (double click your previous account in the Navigator).
how to correct it for backtest ….. ” some file failed to copy to the test account (probably a very fresh mt4) you can still run test s in this account(without enhancedfunctionlity)
ticks.raw copy failed
now i cant backtest by OfflineTestHelper
huw to do backtest
Posting multiple times makes no difference. I do not maintain this indicator any longer. I do not recomended it for testing the trading performance, it is useful for verifying the EA mechanics.
hi, this tool have some limit about the used lots? with us only open trades with the 0,10 lot. doents works other lot sizes. any tip for us?
Not sure, at least it was not my intention neither I encountered it myself.
Hi Milan, I noted that you mentioned back in Jan 2021 that you do not recommend this indicator for testing an EAs trading performance and previously I noted you recommended trying FXT Builder, but I wanted to know if you felt this indicator was good enough to be used to test the RELATIVE EPRFORMANCE of two different EAs tested against the same dataset e.g. US500 indice product using 6 months of data from 1 Jan – 30 Jun, and outcome of one EA was 10 times better than the outcome of the other EA – would you have any confidence about potential performance before forward testing the “best” EA in a demo account. Thanks, Greg
sear Sir , the off line tester works great with all FX pairs . but i can t test indices such DAX, Nadqa, US30. i am using IC markets MT4 . any idea how to back test indices ? they do not appear into the MT4 strategy tester .thank you
is this all obselete now Milan? I would like to find a way to backtest Renko charts
Not sure, I haven’t try a while, I am going to test it if anything changed.
Thank you 🙂
It looks like it is still working. Just there is perceptible delay when starting the test, like if MT4 computed something a lot.
hi again, which broker did you test with?, I keep getting same problem with my broker demo account on fresh install, maybe I try yours ?
Thank you Milan, really appreciate that. I shall start tests next week. Have a great weekend !
Hi, I placed script on chart, it gives error message “Unsupported legacy hst version. Use b509-compatibe script.”
I am not sure how to fix this as it worked for you ?.
In the first entry of this discussion it was explained, the script never worked with the very old chart files.
Hi, I checked, it is 110% new version 4.00 build 1441 23rd May 2025.
Dropped onto Renko chart gives the error. Might it be becuase I am testing a currency DE40 and not a pair ?
No, it is because the chart uses a very old file format.
Hello, could you tell me what is your broker, I will download their MT4