Blog

Installing and using the RangeBar Chart plug-in on Metatrader4

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):

mt4-setup

Make sure that you have enabledAllow 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:

rangebar-installer

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.

choosing-the-installation-folder-of-mt4

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.

Placing the Range Bars indicator onto the M1 chart in Metatrader4

This action will bring up the following screen, where you can set the plug-in parameters:

Various rangebar indicator settings

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)
    This variable influences the size of each bar (range from high to low). On Forex symbols this simply means how many regular pips will each candle measure.

    When using the plug-in with CFDs, Indices, etc., the range bar size value will reflect the number of points (from high to low) that each candle will measure.

    _DE30-3-tick-range-bar-chart

Once you set the values described above to the desired settings, you will need to click the [ Show chart ] button.

10-pip-range-bars-EURJPY

This will open the RangeBar chart in your terminal.

EURJPY range bar chart

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:

  1. Backtesting using completed bar analysis only (this method is very old and is not recommended)
  2. 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.

2

Comments

  1. IBEX 35 Cac 40  August 28, 2018

    When I originally commented I clicked the “Notify me when new comments are added” checkbox and
    now each time a comment is added I get four emails
    with the same comment. Is there any way you can remove me from that
    service? Thank you!

    reply
    • admin  September 2, 2018

      Hi, In the notification emails, you should see a link to “Manage Subscriptions”. By clicking on that link, you will have the option to remove the subscription to the comments on the page.

      reply

Add a Comment