Indicators: Overlay Chart Modified to not repaint on each bar

 

Overlay Chart Modified to not repaint on each bar:

Used to compare 2 currencies on one chart, the Original indicator will recenter 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 reinitialize when the indicator is reloaded or settings are changed.

Overlay Chart Modified to not repaint on each bar

Author: Brian Rumbles

Overlay Chart Modified to not repaint on each bar
Overlay Chart Modified to not repaint on each bar
  • www.mql5.com
image: Modified Overlay Chart USDJPY vs USDCHF (4hr chart) 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...
 

I am getting an error message  'array out of range'  (178,26)

Would there be a fix for this error?

Thank you

The checks a trading robot must pass before publication in the Market
The checks a trading robot must pass before publication in the Market
  • www.mql5.com
Before any product is published in the Market, it must undergo compulsory preliminary checks, as a small error in the expert or indicator logic can cause losses on the trading account. That is why we have developed a series of basic checks to ensure the required quality level of the Market products. If any errors are identified by the Market...
 
it doesn't seem to want to open on my mt4 platform.. any suggestions?