주시
1
0
포크
이미 MQL5-Google-Onedrive을(를) 포크했습니다
0
MQL5-Google-Onedrive/mt5/MQL5
저장소 파일(최신 커밋부터)
파일 이름 최신 커밋 메시지 최근 커밋 날짜
google-labs-jules[bot] 6d6f370d8a ⚡ Bolt: Optimize IsTradingAllowed hot path in ExpertMAPSARSizeOptimized_Improved.mq5
This commit implements significant performance optimizations for the Expert Advisor's hot path:

1. **Environment API Caching**: Implements 1-second caching for `TerminalInfoInteger(TERMINAL_TRADE_ALLOWED)` and `MQLInfoInteger(MQL_TRADE_ALLOWED)`. These cross-process API calls were previously executed on every price tick, causing unnecessary overhead.

2. **Pre-calculated Time Bounds**: Trading start and end hours are now pre-calculated into seconds since midnight during `OnInit`.

3. **Optimized Time Filter**: Replaces expensive hour-extraction math in `IsTradingAllowed` with fast modulo arithmetic (`now % 86400`) and simple integer comparisons against the pre-calculated bounds.

These changes reduce CPU overhead and improve execution speed during high market volatility.
2026-02-13 18:23:42 +00:00
..
Experts ⚡ Bolt: Optimize IsTradingAllowed hot path in ExpertMAPSARSizeOptimized_Improved.mq5 2026-02-13 18:23:42 +00:00
Indicators ⚡ Bolt: Optimized SMC_TrendBreakout_MTF indicator performance 2026-02-06 10:52:52 +00:00