Commit graph

3 commits

Author SHA1 Message Date
google-labs-jules[bot]
73c42f43dd Merge feature and fix branches to main
Merged the following branches:
- feat-genx-trader-bot-bridge (ZOLO bridge, Docker updates)
- feature/zolo-integration-update (ZOLO bridge improvements)
- feature/add-web-request (Requests support)
- fix-mql5-ask-bid-usage (Fix for MQL5)
- update-documentation-and-setup-script (Docs update)
- update-trading-bridge-zolo (Bridge IP update)
- expert-mapsar-improvements (MAPSAR EA improvements)
- remote-control-intelligence-tools-integration (Remote control guide)
- feat/cli-documentation (CLI docs)
- perf-optimize-validator (Validator script optimization)
- jules-docker-run-verification (Verification doc update)

Resolved conflicts in:
- mt5/MQL5/Experts/SMC_TrendBreakout_MTF_EA.mq5 (Version 1.21, merged improvements)
- scripts/ci_validate_repo.py (Kept optimized version)
- render.yaml (Merged configs)
- docker-compose.yml (Merged configs)
- README.md & docs (Merged updates)

Security fixes:
- Removed hardcoded credentials from setup_github_secrets.ps1 and docs/GITHUB_CI_CD_SETUP.md.
2026-01-22 01:09:16 +00:00
google-labs-jules[bot]
3fe2d901ee
fix(MQL5): Correct off-by-one error in Donchian lookback (#87)
This commit corrects a subtle off-by-one error in the array boundary check for the Donchian channel lookback period.

The original condition `if(donStart + donCount >= needBars)` would incorrectly cause an early exit if the required number of bars for the lookback precisely matched the number of available bars in the array. This prevented valid signals from being processed at the edge of the dataset.

The condition has been changed to `if(donStart + donCount > needBars)`, which is the correct boundary check. This ensures the calculation proceeds when exactly enough data is available and only exits if there is insufficient data, improving the EA's robustness.

This issue was identified during a code review for a separate performance optimization attempt.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-01-11 02:10:59 +07:00
google-labs-jules[bot]
4d34289b02 feat(perf): Cache MTF confirmation to reduce redundant calculations
Implements a caching mechanism for the multi-timeframe (MTF) trend confirmation in `GetMTFDir`.

The trend direction from the lower timeframe is now calculated only when a new bar forms on that timeframe, instead of on every tick of the main chart. The result is cached and returned on subsequent calls until the next lower timeframe bar appears.

This avoids expensive and redundant `CopyBuffer` calls, significantly improving the EA's performance and efficiency, especially when the signal timeframe is much shorter than the confirmation timeframe. Logic was carefully updated to read from the last *completed* bar to prevent any change in trading behavior.
2026-01-07 10:37:51 +00:00