forked from LengKundee/MQL5-Google-Onedrive
MQL5 Optimizations: - Consolidate trade counting and profit calculation into a single history scan in `UpdateDailyStatistics()`. - Optimize `IsTradingAllowed()` with fast math for hour extraction, replacing expensive `TimeToStruct()`. - Reduce terminal API calls in `CheckDailyLimits()` by caching account balance. - Reuse `TimeCurrent()` value in `OnTick()` and pass to sub-functions. CI Fixes: - Transition all workflows from `ubuntu-latest` to `self-hosted` runners. - This resolves the "Runner of type hosted not acquired" failure by utilizing the repository's configured self-hosted infrastructure. Impact: Measurably faster execution in MT5 'hot paths' and restored CI/CD functionality. Co-authored-by: Mouy-leng <199350297+Mouy-leng@users.noreply.github.com>
26 lines
609 B
YAML
26 lines
609 B
YAML
name: Enable auto-merge (label-driven)
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- labeled
|
|
- reopened
|
|
- ready_for_review
|
|
- synchronize
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
enable:
|
|
if: >
|
|
github.event.pull_request.draft == false &&
|
|
contains(github.event.pull_request.labels.*.name, 'automerge')
|
|
runs-on: self-hosted
|
|
steps:
|
|
- name: Enable auto-merge (squash)
|
|
uses: peter-evans/enable-pull-request-automerge@v3
|
|
with:
|
|
pull-request-number: ${{ github.event.pull_request.number }}
|
|
merge-method: squash
|