Overlay Chart Modified to not repaint on each bar – indicator for...

Overlay Chart Modified to not repaint on each bar – indicator for MetaTrader 4


image: Modified Overlay Chart USDJPY vs USDCHF (4hr chart)

Thank you for reading this post, don't forget to subscribe!


The Original Overlay Chart is used to have two currencies or 2 assets on 1 chart.

The relative price of the one currency can be seen in terms on the other currency.
For example, on the EURUSD chart, using this indicator, The USDCHF could be added and the USDCHF price will be shown in terms of EURUSD price.


This could be useful for strategies that depend on the convergence or divergence of 2 currencies or assets. Some people informally refer to this as ‘correlation’ or ‘arbitrage’ or more formally ‘co-integration’ strategies or ‘relative value’.


The Original indicator will re-center its calculation on every bar, and hence the price will keep shifting up and down and so the historical relative values do not remain constant. This indicator was modified so that the ‘center’ or initial relative reference point stays fixed and does not update each bar. It will only update the initial center point (Re-initialize) when the indicator is reloaded or settings are changed. (The indicator does however show the changes of the current prices on the same chart, just to clarify).

This indicator also paints for history far back, while the original does not. I may have also changed one or two other things in the original code, you can find the original code here.

The SET CENTER input is which bar back in the history the indicator should use to be the fixed initial point to compare the 2 currencies or assets.

MT4 Indicators – Download Instructions

Overlay Chart Modified to not repaint on each bar is a Metatrader 4 (MT4) indicator and the essence of the forex indicator is to transform the accumulated history data.Subway provides for an opportunity to detect various peculiarities and patterns in price dynamics which are invisible to the naked eye.

Based on this information, traders can assume further price movement and adjust their strategy accordingly.

How to install the software?

  • Download the mq4 file from the zip file.
  • Copy the mq4 file to your Metatrader Directory / experts / indicators /
  • Start or restart your Metatrader Client
  • Select Chart and Timeframe where you want to test your indicator
  • Search “Custom Indicators” in your Navigator mostly left in your Metatrader Client
  • Right click on the mq4 file.
  • Attach to a chart
  • Modify settings or press ok
  • Indicator should be available on your Chart

How to remove tim.mq4 from your Metatrader 4 Chart?

  • Select the Chart where is the Indicator running in your Metatrader Client
  • Right click into the Chart
  • “Indicators list”
  • Select the Indicator and delete

MT4 Indicators Download below:

Overlay Chart Modified to not repaint on each bar – indicator for MetaTrader 4