forked from LengKundee/MQL5-Google-Onedrive
- Pre-calculate daily risk factors (g_lossFactor, g_profitFactor) in OnInit to replace divisions with multiplications in statistics updates. - Reorder IsTradingAllowed to perform time filter checks before expensive terminal API calls (TerminalInfoInteger, MQLInfoInteger). - Implement log throttling for trading status messages to prevent flooding during high-frequency ticks. - Guard new bar debug check in OnTick with log level check to avoid redundant iTime calls. - Fix invalid LogInfo/LogDebug calls by switching from multiple arguments to string concatenation. - Optimize Day-Rollover check in OnTick by using casted long for day calculation. |
||
|---|---|---|
| .. | ||
| bolt.md | ||
| deploy.yml | ||