Version 1.6 2021.11.24
Recompilation.
Version 1.5 2016.06.13
Fixed an error in the calculation of the relative scaling of symbols with ScalingMode set to 1 (by volatility).
Version 1.4 2015.11.19
New parameters added for notifications on new signals (red histogram) and zero crossings by difference line (yellow dotted): EnableNotifications (enable/disable flag), SignalSound (sound file name), ZeroCrossingSound (sound file name). If sounds are empty, alert is shown. If a sound is specified, it's played without an alert. Signals are created on just closed 1-st bar.
Version 1.3 2014.07.22
- Improved scaling in volatility mode;
- Added new mode of scaling: by ratio of price percentage change; to use it, specify 3 in ScalingMode (former scaling mode by custom coefficient is "moved" from 3 to 4); when the mode 3 is enabled, the threshold for divergence signals should be specified in ScalingHint as a minimal difference between symbols in percentage terms, for example, 0.01 for 1%.
Version 1.2 2014.07.10
Fixed "array out of range" error.
Version 1.1 2014.07.08
- Fixed bar synchronization problem.
- Added new parameters: ScalingMode and MA.

ScalingMode allows applying additional scaling for the leading symbol either by monthly volatilities ratio (1), or required margins ratio (2). Also a custom scale coefficient can be specified in ScalingHint parameter, where initially a hint about scaling is shown. This works when ScalingMode is 3.

When MA parameter is greater than 0, a smoothing of the given period is applied for the calculation of prices at bars with TimeGap offset. By default, MA=0, and close prices of the bars are used, in the same way as it was in the version 1.0.