Codes

TesterSafeLots - risk lot size that stays correct in the MT4 Strategy Tester for MetaTrader 4

Risk-based lot size for MQL4 that does not depend on MODE_TICKVALUE in the Strategy Tester, so backtests of USDJPY, USDCHF or USDCAD on a USD account risk what the input says. Includes a test EA that measures the error

History Depth Check - how far back your EA can read on each timeframe for MetaTrader 5

Shows, for each timeframe and symbol, how many bars an EA, indicator or script can read on a live chart and from what date, and flags the timeframes where "Max bars in chart" cuts off older history that the terminal already has

Session Time - session hours to broker server time with daylight saving for MetaTrader 5

Converts session hours given in London, New York, Tokyo or Sydney time into broker server time, including US and EU daylight saving and the weeks when the two are out of step. Comes with a check script that verifies 15 hand-calculated cases