-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/v3.006-dev' into v3.008-dev-new
* origin/v3.006-dev: (109 commits) More of C++/MT4/MT5 error fixes. Looks like C++/MT4/MT5 errors are fixed. Looks like C++/MT4 errors are fixed. Need some additional fixed for MT5. C++ and MQL fixes. Cleaned up Std.h regarding array/reference macros. Added Visual Studio file exclusions into .gitignore. C++ tests now compiles. WIP. Fixing C++ errors. One step further. WIP. Fixing C++ errors. Closer to the end. WIP. Fixing C++ errors. Closer to the end. WIP. Fixing C++ errors. Stuck on ValueStorage's macros. Removes CustomMovingAverage indicator in favor of MA Removes Color Line indicator Removes Color Candles Daily indicator Removes ColorBars indicator Indicators: Corrects comments Adds Indi_Universal (GH-683) PriceRange: Adds README.md Adds description for AMA, AO, ATR, DEMA and MA indicators Adds description for ASI (Accumulation Swing Index) indicator Removes SymbolInfoTest from Test GHA workflow Adds PriceRange/tests/Makefile ...
- Loading branch information
Showing
862 changed files
with
16,096 additions
and
8,452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
name: Check | ||
|
||
# yamllint disable rule:truthy | ||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
push: | ||
|
@@ -10,6 +10,10 @@ jobs: | |
Pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
- uses: pre-commit/[email protected] | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: pre-commit|${{ hashFiles('.pre-commit-config.yaml') }} | ||
- uses: actions/setup-python@v3 | ||
- uses: pre-commit/[email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,50 +4,31 @@ name: Compile C++ | |
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
paths: | ||
- '**.h' | ||
- '**.mq?' | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
paths: | ||
- '**.h' | ||
- '**.mq?' | ||
|
||
jobs: | ||
|
||
FileList: | ||
outputs: | ||
filelist: ${{ steps.get-files.outputs.filelist }} | ||
Compile-Cpp: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set output with list of files | ||
id: get-files | ||
run: | | ||
import glob, json, os | ||
files = glob.glob("**/tests/*.cpp") | ||
print("::set-output name=filelist::{}".format(json.dumps(files))) | ||
shell: python | ||
- name: Display output | ||
run: echo ${{ steps.get-files.outputs.filelist }} | ||
|
||
Compile: | ||
runs-on: ubuntu-latest | ||
needs: [FileList] | ||
strategy: | ||
matrix: | ||
file: ${{ fromJson(needs.FileList.outputs.filelist) }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Emscripten toolchain | ||
uses: mymindstorm/setup-emsdk@v11 | ||
- uses: actions/checkout@v3 | ||
- name: Install CPP compiler | ||
uses: rlalik/[email protected] | ||
with: | ||
compiler: gcc-latest | ||
- name: Compile ${{ matrix.file }} via emcc | ||
if: always() | ||
run: > | ||
emcc -s WASM=1 -s ENVIRONMENT=node -s EXIT_RUNTIME=0 -s NO_EXIT_RUNTIME=1 -s ASSERTIONS=1 -Wall -s | ||
MODULARIZE=1 -s ERROR_ON_UNDEFINED_SYMBOLS=0 --bind -s EXPORTED_FUNCTIONS="[]" -g -std=c++17 | ||
"${{ matrix.file }}" | ||
- name: Compile ${{ matrix.file }} via g++ | ||
if: always() | ||
run: g++ -g -std=c++17 -c "${{ matrix.file }}" | ||
- name: Compile via make | ||
run: make | ||
Compile-Emscripten: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install Emscripten toolchain | ||
uses: mymindstorm/setup-emsdk@v11 | ||
- name: Compile via emcc | ||
run: make CC=emcc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
--- | ||
name: Test Exchange/SymbolInfo | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
paths: | ||
- 'Exchange/SymbolInfo/**' | ||
- '.github/workflows/test-exchange/symbolinfo.yml' | ||
push: | ||
paths: | ||
- 'Exchange/SymbolInfo/**' | ||
- '.github/workflows/test-exchange/symbolinfo.yml' | ||
|
||
jobs: | ||
|
||
Compile: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Compile | ||
uses: fx31337/mql-compile-action@master | ||
with: | ||
init-platform: true | ||
path: 'Exchange/SymbolInfo/tests' | ||
verbose: true | ||
- name: Print compiled files | ||
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname' | ||
shell: powershell | ||
- name: Upload artifacts (MQL4) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: files-ex4 | ||
path: '**/*.ex4' | ||
- name: Upload artifacts (MQL5) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: files-ex5 | ||
path: '**/*.ex5' | ||
|
||
Tests-MQL4: | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: Exchange/SymbolInfo/tests | ||
needs: Compile | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test: | ||
- SymbolInfo.test | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: files-ex4 | ||
- name: Run ${{ matrix.test }} | ||
uses: fx31337/mql-tester-action@master | ||
with: | ||
Script: ${{ matrix.test }} | ||
timeout-minutes: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
--- | ||
name: Test Indicators (Bitwise) | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
paths: | ||
- 'Indicator/**' | ||
- 'Indicators/Bitwise/**' | ||
- '.github/workflows/test-indicators-bitwise.yml' | ||
push: | ||
paths: | ||
- 'Indicator**' | ||
- 'Indicators/Bitwise/**' | ||
- '.github/workflows/test-indicators-bitwise.yml' | ||
|
||
jobs: | ||
|
||
Compile: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Compile | ||
uses: fx31337/mql-compile-action@master | ||
with: | ||
init-platform: true | ||
path: 'Indicators/Bitwise/tests' | ||
verbose: true | ||
- name: Print compiled files | ||
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname' | ||
shell: powershell | ||
- name: Upload artifacts (MQL4) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: files-ex4 | ||
path: '**/*.ex4' | ||
- name: Upload artifacts (MQL5) | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: files-ex5 | ||
path: '**/*.ex5' | ||
|
||
Tests-MQL4: | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: Indicators/Bitwise/tests | ||
needs: Compile | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test: | ||
- Indi_Candle.test | ||
- Indi_Pattern.test | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: files-ex4 | ||
- name: Run ${{ matrix.test }} | ||
uses: fx31337/mql-tester-action@master | ||
with: | ||
BtDays: 4-8 | ||
BtMonths: 1 | ||
BtYears: 2021 | ||
GitHubApiToken: ${{ github.token }} | ||
RunOnError: show_logs 200 | ||
TestExpert: ${{ matrix.test }} | ||
timeout-minutes: 10 |
Oops, something went wrong.