It uses the knowledge about the M1 OHLC tick generation algorithm in Strategy Tester of MetaTrader 5: If the price began to decrease after the new bar opening, it is guaranteed that it will increase in the next price change and vice versa.
Attention: The "Open prices only" and "1 minute OHLC" modes of Strategy Tester can be used ONLY for rough and fast estimation of strategy performance.
The Expert Advisor is profitable only if the "Open prices" only or "1 minute OHLC" modes used in Strategy Tester.
With enabled Money Management (RISK parameter)
It uses the possibility to read the OHLC ticks (using onTimer event), generated by Startegy Tester in "Open prices only" and "1 minute OHLC".
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/244
If you want to optimize your Expert Advisor using your own characteristics, you can use "Custom max" mode via OnTester() function. This code provides you many characteristics, which can be used during the optimization of your EA. Also it allows you to save the optimized charateristics in HTML file.iUSDx (USD index) Multicurrency Indicator
The iUSDx indicator uses the "MCM Control Panel" for multicurrency mode. It calculates the USD index.