Version 1.1 2025.08.31
Performance Optimization with New Bar Check

Change: In OnTick(), added a check for a new bar using iTime(_Symbol, PERIOD_M15, 0) so that calculations are performed only on a new bar instead of every tick.
Goal: Reduce CPU load, especially during high tick frequency.
Benefit: According to tests on similar systems, this can reduce resource usage by up to 50% under heavy load, while maintaining the accuracy of trading signals.
Impact: Improves the EA’s efficiency, especially when testing over long periods or in live trading on fast-moving markets.

Change: In CalculateLotSize(), added a check for the total position volume, limiting exposure to 5% of the account balance (totalExposure > AccountInfoDouble(ACCOUNT_BALANCE) * 0.05 / 1000.0).
Goal: Prevent excessive position accumulation, which is a common risk in grid strategies.
Benefit: Limits potential losses during strong market moves, protecting capital.
Impact: Increases safety by controlling exposure, especially with aggressive multiplier settings.