forked from EA31337/EA31337-classes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v3.009-dev-new' of https://github.com/EA31337/EA31337-c…
…lasses into v3.009-dev-new--get-lowest-highest-checks
- Loading branch information
Showing
66 changed files
with
1,222 additions
and
481 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
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,73 @@ | ||
--- | ||
name: Test Strategy | ||
|
||
env: | ||
TEST_PATH: Strategy/tests | ||
TEST_SKIP: ${{ secrets.MT5_LOGIN == '' }} | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
paths: | ||
- .github/workflows/test-strategy.yml | ||
- Strategy/** | ||
push: | ||
paths: | ||
- .github/workflows/test-strategy.yml | ||
- Strategy/** | ||
|
||
jobs: | ||
|
||
compile: | ||
name: Compile | ||
uses: ./.github/workflows/compile-mql.yml | ||
with: | ||
artifact_prefix: mt | ||
path: Strategy/tests | ||
skip_cleanup: true | ||
|
||
test: | ||
defaults: | ||
run: | ||
shell: bash | ||
working-directory: ${{ env.TEST_PATH }} | ||
name: Test | ||
needs: compile | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test: | ||
- Strategy.test | ||
- Strategy-RSI.test | ||
version: [5] | ||
max-parallel: 4 | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: files-ex${{ matrix.version }} | ||
- name: List compiled files | ||
run: find . -name '*.ex?' -type f -print | ||
- if: ${{ env.TEST_SKIP != true && env.TEST_SKIP != 'true' }} | ||
name: Run ${{ matrix.test }} | ||
uses: fx31337/mql-tester-action@master | ||
with: | ||
Login: ${{ secrets.MT5_LOGIN }} | ||
Password: ${{ secrets.MT5_PASSWORD }} | ||
Server: MetaQuotes-Demo | ||
TestDeposit: 2000 | ||
TestExpert: ${{ matrix.test }} | ||
TestFromDate: ${{ matrix.year }}.01.01 | ||
TestPeriod: M1 | ||
TestSymbol: EURUSD | ||
TestToDate: ${{ matrix.year }}.01.14 | ||
# yamllint disable-line rule:line-length | ||
UrlExpert: file://${{ github.workspace }}/${{ env.TEST_PATH }}/${{ matrix.test }}.ex${{ matrix.version }} | ||
Version: 5 | ||
- if: ${{ failure() && runner.debug == '1' }} | ||
uses: mxschmitt/action-tmate@v3 | ||
timeout-minutes: 20 | ||
|
||
cleanup: | ||
name: Clean-up | ||
needs: [compile] | ||
uses: ./.github/workflows/cleanup.yml |
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
{ | ||
"files.associations": { | ||
"indicatorcandle.h": "c", | ||
"*.mqh": "c" | ||
"*.h": "cpp", | ||
"*.mq4": "cpp", | ||
"*.mq5": "cpp", | ||
"*.mqh": "cpp" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,12 +1,40 @@ | ||
CC := g++ # C++ compiler | ||
CFLAGS := -Wall -Wextra -std=c++17 -w # Compiler flags | ||
SRCS := $(wildcard *.cpp) # Get all .cpp files in the current directory | ||
OBJS := $(SRCS:.cpp=.o) # Object files corresponding to the source files | ||
MTE4 := metaeditor.exe | ||
MTE5 := metaeditor64.exe | ||
CFLAGS := -Wall -Wextra -std=c++17 -w | ||
SRCS_CPP := $(wildcard *.cpp) | ||
SRCS_MQ4 := $(wildcard *.mq4) | ||
SRCS_MQ5 := $(wildcard *.mq5) | ||
OBJS_EX4 := $(SRCS_MQ4:.mq4=.ex4) | ||
OBJS_EX5 := $(SRCS_MQ5:.mq5=.ex5) | ||
OBJS_O := $(SRCS_CPP:.cpp=.o) | ||
|
||
all: $(OBJS) | ||
# Check if the system is Linux | ||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
WINE := wine | ||
# Set WINEPATH to include MetaTrader directory. | ||
export WINEPATH := $(WINEPATH);"C:\Program Files\MetaTrader 4;C:\Program Files\MetaTrader 5" | ||
else | ||
WINE := | ||
endif | ||
|
||
.PHONY: all cpp mql mql4 mql5 | ||
|
||
all: $(OBJS_O) | ||
cpp: $(OBJS_O) | ||
mql4: $(OBJS_EX4) | ||
mql5: $(OBJS_EX5) | ||
mql: mql4 mql5 | ||
|
||
%.ex4: %.mq4 | ||
$(WINE) $(MTE4) /compile:$< /log:CON | ||
|
||
%.ex5: %.mq5 | ||
$(WINE) $(MTE5) /compile:$< /log:CON | ||
|
||
%.o: %.cpp | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
clean: | ||
rm -v $(OBJS) | ||
rm -v $(OBJS_EX4) $(OBJS_EX5) $(OBJS_O) |
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,12 +1,40 @@ | ||
CC := g++ # C++ compiler | ||
CFLAGS := -Wall -Wextra -std=c++17 -w # Compiler flags | ||
SRCS := $(wildcard *.cpp) # Get all .cpp files in the current directory | ||
OBJS := $(SRCS:.cpp=.o) # Object files corresponding to the source files | ||
MTE4 := metaeditor.exe | ||
MTE5 := metaeditor64.exe | ||
CFLAGS := -Wall -Wextra -std=c++17 -w | ||
SRCS_CPP := $(wildcard *.cpp) | ||
SRCS_MQ4 := $(wildcard *.mq4) | ||
SRCS_MQ5 := $(wildcard *.mq5) | ||
OBJS_EX4 := $(SRCS_MQ4:.mq4=.ex4) | ||
OBJS_EX5 := $(SRCS_MQ5:.mq5=.ex5) | ||
OBJS_O := $(SRCS_CPP:.cpp=.o) | ||
|
||
all: $(OBJS) | ||
# Check if the system is Linux | ||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
WINE := wine | ||
# Set WINEPATH to include MetaTrader directory. | ||
export WINEPATH := $(WINEPATH);"C:\Program Files\MetaTrader 4;C:\Program Files\MetaTrader 5" | ||
else | ||
WINE := | ||
endif | ||
|
||
.PHONY: all cpp mql mql4 mql5 | ||
|
||
all: $(OBJS_O) | ||
cpp: $(OBJS_O) | ||
mql4: $(OBJS_EX4) | ||
mql5: $(OBJS_EX5) | ||
mql: mql4 mql5 | ||
|
||
%.ex4: %.mq4 | ||
$(WINE) $(MTE4) /compile:$< /log:CON | ||
|
||
%.ex5: %.mq5 | ||
$(WINE) $(MTE5) /compile:$< /log:CON | ||
|
||
%.o: %.cpp | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
clean: | ||
rm -v $(OBJS) | ||
rm -v $(OBJS_EX4) $(OBJS_EX5) $(OBJS_O) |
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,12 +1,40 @@ | ||
CC := g++ # C++ compiler | ||
CFLAGS := -Wall -Wextra -std=c++17 -w # Compiler flags | ||
SRCS := $(wildcard *.cpp) # Get all .cpp files in the current directory | ||
OBJS := $(SRCS:.cpp=.o) # Object files corresponding to the source files | ||
MTE4 := metaeditor.exe | ||
MTE5 := metaeditor64.exe | ||
CFLAGS := -Wall -Wextra -std=c++17 -w | ||
SRCS_CPP := $(wildcard *.cpp) | ||
SRCS_MQ4 := $(wildcard *.mq4) | ||
SRCS_MQ5 := $(wildcard *.mq5) | ||
OBJS_EX4 := $(SRCS_MQ4:.mq4=.ex4) | ||
OBJS_EX5 := $(SRCS_MQ5:.mq5=.ex5) | ||
OBJS_O := $(SRCS_CPP:.cpp=.o) | ||
|
||
all: $(OBJS) | ||
# Check if the system is Linux | ||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
WINE := wine | ||
# Set WINEPATH to include MetaTrader directory. | ||
export WINEPATH := $(WINEPATH);"C:\Program Files\MetaTrader 4;C:\Program Files\MetaTrader 5" | ||
else | ||
WINE := | ||
endif | ||
|
||
.PHONY: all cpp mql mql4 mql5 | ||
|
||
all: $(OBJS_O) | ||
cpp: $(OBJS_O) | ||
mql4: $(OBJS_EX4) | ||
mql5: $(OBJS_EX5) | ||
mql: mql4 mql5 | ||
|
||
%.ex4: %.mq4 | ||
$(WINE) $(MTE4) /compile:$< /log:CON | ||
|
||
%.ex5: %.mq5 | ||
$(WINE) $(MTE5) /compile:$< /log:CON | ||
|
||
%.o: %.cpp | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
clean: | ||
rm -v $(OBJS) | ||
rm -v $(OBJS_EX4) $(OBJS_EX5) $(OBJS_O) |
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
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 |
---|---|---|
@@ -1,12 +1,40 @@ | ||
CC := g++ # C++ compiler | ||
CFLAGS := -Wall -Wextra -std=c++17 -w # Compiler flags | ||
SRCS := $(wildcard *.cpp) # Get all .cpp files in the current directory | ||
OBJS := $(SRCS:.cpp=.o) # Object files corresponding to the source files | ||
MTE4 := metaeditor.exe | ||
MTE5 := metaeditor64.exe | ||
CFLAGS := -Wall -Wextra -std=c++17 -w | ||
SRCS_CPP := $(wildcard *.cpp) | ||
SRCS_MQ4 := $(wildcard *.mq4) | ||
SRCS_MQ5 := $(wildcard *.mq5) | ||
OBJS_EX4 := $(SRCS_MQ4:.mq4=.ex4) | ||
OBJS_EX5 := $(SRCS_MQ5:.mq5=.ex5) | ||
OBJS_O := $(SRCS_CPP:.cpp=.o) | ||
|
||
all: $(OBJS) | ||
# Check if the system is Linux | ||
UNAME_S := $(shell uname -s) | ||
ifeq ($(UNAME_S),Linux) | ||
WINE := wine | ||
# Set WINEPATH to include MetaTrader directory. | ||
export WINEPATH := $(WINEPATH);"C:\Program Files\MetaTrader 4;C:\Program Files\MetaTrader 5" | ||
else | ||
WINE := | ||
endif | ||
|
||
.PHONY: all cpp mql mql4 mql5 | ||
|
||
all: $(OBJS_O) | ||
cpp: $(OBJS_O) | ||
mql4: $(OBJS_EX4) | ||
mql5: $(OBJS_EX5) | ||
mql: mql4 mql5 | ||
|
||
%.ex4: %.mq4 | ||
$(WINE) $(MTE4) /compile:$< /log:CON | ||
|
||
%.ex5: %.mq5 | ||
$(WINE) $(MTE5) /compile:$< /log:CON | ||
|
||
%.o: %.cpp | ||
$(CC) $(CFLAGS) -c $< -o $@ | ||
|
||
clean: | ||
rm -v $(OBJS) | ||
rm -v $(OBJS_EX4) $(OBJS_EX5) $(OBJS_O) |
Oops, something went wrong.