Plug-in installation
To start the installation process download the latest plug-in and follow these steps:
First, open MT4 and make sure that you have enabled DLL imports. This is done in the Expert Advisors tab of the MT4’s Options window (you can press CTRL-O to bring up this window in MT4):
Make sure that you have enabled “Allow DLL imports” as presented on the screen above. “Allow automated trading” can also be enabled, but it is not required for the plug-in to work correctly.
The screen above may look different in various MT4 builds, but the “Allow DLL imports” option is present in all of them.
When finished with the above, you’ll need to close MT4 and run the downloaded RangeBars setup program. You can follow the installation process covered in the following video or read through the text below it:
When you run the setup program you will see a window similar to the following one:
After clicking [Next > ], you’ll need to accept the license agreement and select the installation folder where RangeBars should be installed. This needs to be your MT4 installation folder (not the /experts, /experts/indicators or any other sub-folder). The installed files will automatically be synchronized with your data folder, so no manual file copying is required.
The illustration above is only an example. You’ll need to select your own MT4 installation folder, which is where you installed Metatrader and where terminal.exe is located.
When in doubt please read this short guide.
The installation process will begin once you select the destination location, click [ OK ], and press [NEXT >].
Once the installation process is complete, you’ll need to activate the software using the “Activate.exe” utility. The activation process is described in the readme file on google drive.
Using the RangeBars plug-in
To use the plug-in, first attach the RangeBars custom indicator to an M1 chart of the chosen instrument (i.e. currency pair, index, etc.). This can do this by dragging the indicator from the Navigator window’s Custom Indicators branch onto the selected M1 chart or by double-clicking the indicator name (RangeBars on the picture below) in the Navigator window.
This action will bring up the following screen, where you can set the plug-in parameters:
Note: Charts may not automatically build during the weekend but will start once the market opens on Sunday/Monday. However, clicking refresh on the chart will also force the history to build.
The variables and their meaning are described below:
- Bar size in pips for FX (in points for others)
- Display on
- Apply template to offline chart
- Automatically open offline chart
- Build history for a number of days
- Build history starting from date
- Reset Open on each trading day
- Recalculate chart on history updates
- Minimum chart update interval
- == ATR based bar size calculation ==
- == Alerts and Info ==
Once you set the values described above to the desired settings, you will need to click the [ Show chart ] button.
This will open the RangeBar chart in your terminal.
The “offline” chart will start displaying live price action as soon as new quotes are received by MT4 and new range bars will be created as they are formed.
Please note that every time the plug-in is attached (or MT4 terminal is restarted) it will recalculate all historical data so keep this in mind when you set the “RenderUsing1MhistoryBars” to 0 (all of history).
Backtesting RangeBars
There are two valid ways of backtesting range bar charts in MT4 – both have been described in separate blog posts:
- Backtesting using completed bar analysis only (this method is very old and is not recommended)
- Backtesting using tick data (every tick is backtested and taken into account)
Updating the plug-in to the latest version
The plug-in(s) can be easily updated once new plug-in features or bug fixes are released.
To update your plug-in close your MT4 terminal and run the updater program which will automatically check for newer versions, download the new files, and patch your existing plug-in installation. If you have multiple MT4 installations on your system, you should update all instances by using the updateRangeBarsPlugin.bat file, which is located in your MT4 installation folder.
APR
2014