generated from EA31337/Strategy-Oscillator
-
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.
- Loading branch information
0 parents
commit 3286ad7
Showing
12 changed files
with
986 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: Google | ||
ColumnLimit: 120 |
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,26 @@ | ||
# git normalization file | ||
# @see http://www.kernel.org/pub/software/scm/git/docs/gitattributes.html | ||
|
||
# Shorthand for text files. | ||
# - Treat them as text. | ||
# - Ensure no CRLF line-endings, neither on checkout nor on checkin. | ||
# - Detect whitespace errors. | ||
# - Exposed by default in `git diff --color` on the CLI. | ||
# - Validate with `git diff --check`. | ||
# - Deny applying with `git apply --whitespace=error-all`. | ||
# - Fix automatically with `git apply --whitespace=fix`. | ||
[attr]utf8 text eol=lf whitespace=blank-at-eol,-blank-at-eof,-space-before-tab,tab-in-indent,tabwidth=2 | ||
[attr]utf16 encoding=UTF-16LE-BOM working-tree-encoding=UTF-16LE-BOM diff merge eol=CRLF | ||
|
||
# Shorthand for binary files. | ||
# - Do not treat them as text. | ||
# - Include binary diff in patches instead of "binary files differ." | ||
[attr]binary -text diff | ||
|
||
# Define text file attributes. | ||
*.ex? binary | ||
*.h utf8 diff=c | ||
*.json utf8 diff=c | ||
*.mq? utf8 diff=c | ||
*.mqproj utf16 diff=c | ||
*.txt utf8 diff=c |
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,87 @@ | ||
--- | ||
name: Backtest | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
branches: | ||
- '*-dev' | ||
- 'dev-*' | ||
- 'main' | ||
- 'master' | ||
paths-ignore: | ||
- '*.md' | ||
push: | ||
branches: | ||
- '*-dev' | ||
- 'dev-*' | ||
- 'main' | ||
- 'master' | ||
paths-ignore: | ||
- '*.md' | ||
|
||
jobs: | ||
Compile: | ||
defaults: | ||
run: | ||
shell: powershell | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: Include/EA31337-classes | ||
ref: v3.000.1 | ||
repository: EA31337/EA31337-classes | ||
- name: Compile for MQL4 | ||
uses: fx31337/mql-compile-action@master | ||
with: | ||
include: . | ||
init-platform: true | ||
mt-version: 5.0.0.2361 | ||
path: Stg_Oscillator.mq4 | ||
verbose: true | ||
- name: Compile for MQL5 | ||
uses: fx31337/mql-compile-action@master | ||
with: | ||
include: . | ||
mt-version: 5.0.0.2515 | ||
path: Stg_Oscillator.mq5 | ||
verbose: true | ||
- name: List compiled files | ||
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname' | ||
- run: Get-Location | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: EA | ||
path: '*.ex[45]' | ||
Test: | ||
needs: Compile | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
month: [1] | ||
year: [2019, 2020] | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: EA | ||
- name: Run strategy | ||
uses: ea31337/mql-tester-action@dev | ||
with: | ||
BtDeposit: 100000 | ||
BtDest: ${{ github.workspace }}/_results | ||
BtMonths: ${{ matrix.month }} | ||
BtYears: ${{ matrix.year }} | ||
OptFormatBrief: true | ||
OptFormatJson: true | ||
OptVerbose: true | ||
TestExpert: "Stg_Oscillator" | ||
TestPeriod: M1 | ||
TestReportName: Report-${{ matrix.year }}-${{ matrix.month }} | ||
- name: Upload results | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: results | ||
path: ${{ github.workspace }}/_results/*.* |
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,21 @@ | ||
--- | ||
name: Check | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
push: | ||
|
||
jobs: | ||
Pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- 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 | ||
with: | ||
python-version: 3.9 | ||
- uses: pre-commit/action@v3.0.0 |
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,56 @@ | ||
--- | ||
name: Compile | ||
|
||
# yamllint disable-line rule:truthy | ||
on: | ||
pull_request: | ||
branches: | ||
- 'master' | ||
- '*dev*' | ||
paths-ignore: | ||
- '*.md' | ||
- '.git*' | ||
push: | ||
branches: | ||
- 'master' | ||
- '*dev*' | ||
paths-ignore: | ||
- '*.md' | ||
- '.git*' | ||
|
||
jobs: | ||
Compile: | ||
defaults: | ||
run: | ||
shell: powershell | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
with: | ||
path: Include/EA31337-classes | ||
ref: v3.000.1 | ||
repository: EA31337/EA31337-classes | ||
- name: Compile for MQL4 | ||
uses: fx31337/mql-compile-action@master | ||
with: | ||
include: . | ||
init-platform: true | ||
mt-version: 5.0.0.2361 | ||
path: Stg_Oscillator.mq4 | ||
verbose: true | ||
- name: Compile for MQL5 | ||
uses: fx31337/mql-compile-action@master | ||
with: | ||
include: . | ||
mt-version: 5.0.0.2515 | ||
path: Stg_Oscillator.mq5 | ||
verbose: true | ||
- name: List compiled files | ||
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname' | ||
- run: Get-Location | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: EA | ||
path: '*.ex[45]' |
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,13 @@ | ||
# Ignores compiled binary files. | ||
*.ex? | ||
|
||
# Ignores temporary files. | ||
*.swp | ||
*~ | ||
|
||
# Ignores Finder metadata files on Mac | ||
.DS_Store | ||
|
||
# Ignores Python cache files. | ||
*.pyc | ||
__pycache__ |
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,38 @@ | ||
--- | ||
repos: | ||
|
||
- repo: https://github.com/adrienverge/yamllint.git | ||
rev: v1.32.0 | ||
hooks: | ||
- id: yamllint | ||
|
||
- repo: https://github.com/igorshubovych/markdownlint-cli.git | ||
rev: v0.35.0 | ||
hooks: | ||
- id: markdownlint | ||
|
||
- repo: https://github.com/jumanjihouse/pre-commit-hooks | ||
rev: 3.0.0 | ||
hooks: | ||
- id: forbid-binary | ||
exclude: (\.ico|\.mqproj)$ | ||
- id: git-check # Configure in .gitattributes | ||
# - id: markdownlint # Configure in .mdlrc.style.rb | ||
- id: require-ascii | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: check-byte-order-marker | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
- id: check-merge-conflict | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
|
||
- repo: https://github.com/thibaudcolas/curlylint | ||
rev: v0.13.1 | ||
hooks: | ||
- id: curlylint |
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,42 @@ | ||
# Strategy Oscillator | ||
|
||
[![Status][gha-image-check-master]][gha-link-check-master] | ||
[![Status][gha-image-compile-master]][gha-link-compile-master] | ||
[![License][license-image]][license-link] | ||
[![Channel][tg-channel-image]][tg-channel-link] | ||
[![Discuss][gh-discuss-badge]][gh-discuss-link] | ||
[![Twitter][twitter-image]][twitter-link] | ||
[![Edit][gh-edit-badge]][gh-edit-link] | ||
|
||
## Description | ||
|
||
Strategy based on selected oscillator-type single-valued indicators. | ||
|
||
## Dependencies | ||
|
||
| Tag | Framework | | ||
|:--------:|:---------:| | ||
| v2.000 | v3.000.1 | | ||
| v2.001 | v3.001.1 | | ||
|
||
<!-- Named links --> | ||
|
||
[gh-discuss-badge]: https://img.shields.io/badge/Discussions-Q&A-blue.svg?logo=github | ||
[gh-discuss-link]: https://github.com/EA31337/EA31337-Strategies/discussions | ||
|
||
[gh-edit-badge]: https://img.shields.io/badge/GitHub-edit-purple.svg?logo=github | ||
[gh-edit-link]: https://github.dev/EA31337/Strategy-Oscillator | ||
|
||
[gha-link-check-master]: https://github.com/EA31337/Strategy-Oscillator/actions?query=workflow:Check+branch%3Amaster | ||
[gha-image-check-master]: https://github.com/EA31337/Strategy-Oscillator/workflows/Check/badge.svg?branch=master | ||
[gha-link-compile-master]: https://github.com/EA31337/Strategy-Oscillator/actions?query=workflow:Compile+branch%3Amaster | ||
[gha-image-compile-master]: https://github.com/EA31337/Strategy-Oscillator/workflows/Compile/badge.svg?branch=master | ||
|
||
[license-image]: https://img.shields.io/github/license/EA31337/EA31337-Strategies.svg | ||
[license-link]: https://tldrlegal.com/license/gnu-general-public-license-v3-(gpl-3) | ||
|
||
[tg-channel-image]: https://img.shields.io/badge/Telegram-join-0088CC.svg?logo=telegram | ||
[tg-channel-link]: https://t.me/EA31337 | ||
|
||
[twitter-image]: https://img.shields.io/badge/EA31337-Follow-1DA1F2.svg?logo=Twitter | ||
[twitter-link]: https://twitter.com/EA31337 |
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,13 @@ | ||
//+------------------------------------------------------------------+ | ||
//| EA31337 - multi-strategy advanced trading robot | | ||
//| Copyright 2016-2023, EA31337 Ltd | | ||
//| https://github.com/EA31337 | | ||
//+------------------------------------------------------------------+ | ||
|
||
/** | ||
* @file | ||
* Implements Oscillator strategy. | ||
*/ | ||
|
||
// Includes the main code. | ||
#include "Stg_Oscillator.mq5" |
Oops, something went wrong.