mirror of
https://github.com/A6-9V/MQL5-Google-Onedrive.git
synced 2026-04-11 04:40:57 +00:00
In MQL5 'hot paths', environment API calls like TerminalInfoInteger(TERMINAL_TRADE_ALLOWED) and MQLInfoInteger(MQL_TRADE_ALLOWED) can be a significant bottleneck during high tick frequency. This commit optimizes IsTradingAllowed in ExpertMAPSARSizeOptimized_Improved.mq5 by caching these states for 1 second using a static datetime flag to control refresh frequency, significantly reducing terminal API overhead during rapid price ticks. |
||
|---|---|---|
| .. | ||
| EXNESS_GenX_Trader.mq5 | ||
| ExpertMACD_Enhanced.mq5 | ||
| ExpertMAMA_Enhanced.mq5 | ||
| ExpertMAPSAR_Enhanced.mq5 | ||
| ExpertMAPSAR_Filtered.mq5 | ||
| ExpertMAPSAR_Improved.mq5 | ||
| ExpertMAPSAR_RiskBased.mq5 | ||
| ExpertMAPSARSizeOptimized.mq5 | ||
| ExpertMAPSARSizeOptimized_Improved.mq5 | ||
| SMC_TrendBreakout_MTF_EA.mq5 | ||