Skip to content

Commit

Permalink
Merge pull request #1 from EA31337/v2.000-dev
Browse files Browse the repository at this point in the history
Implements MA Breakout strategy
  • Loading branch information
kenorb authored Sep 23, 2023
2 parents 97be963 + 42b894c commit 2d06e43
Show file tree
Hide file tree
Showing 8 changed files with 385 additions and 294 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/backtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ jobs:
include: .
init-platform: true
mt-version: 5.0.0.2361
path: Stg_MA.mq4
path: Stg_MA_Breakout.mq4
verbose: true
- name: Compile for MQL5
uses: fx31337/mql-compile-action@master
with:
include: .
mt-version: 5.0.0.2515
path: Stg_MA.mq5
path: Stg_MA_Breakout.mq5
verbose: true
- name: List compiled files
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname'
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
OptFormatBrief: true
OptFormatJson: true
OptVerbose: true
TestExpert: "Stg_MA"
TestExpert: "Stg_MA_Breakout"
TestPeriod: M1
TestReportName: Report-${{ matrix.year }}-${{ matrix.month }}
- name: Upload results
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:
include: .
init-platform: true
mt-version: 5.0.0.2361
path: Stg_MA.mq4
path: Stg_MA_Breakout.mq4
verbose: true
- name: Compile for MQL5
uses: fx31337/mql-compile-action@master
with:
include: .
mt-version: 5.0.0.2515
path: Stg_MA.mq5
path: Stg_MA_Breakout.mq5
verbose: true
- name: List compiled files
run: '(Get-ChildItem -Recurse -Path . -Include *.ex[45]).fullname'
Expand Down
21 changes: 7 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Strategy MA
# Strategy MA Breakout

[![Status][gha-image-check-master]][gha-link-check-master]
[![Status][gha-image-compile-master]][gha-link-compile-master]
Expand All @@ -7,19 +7,12 @@
[![License][license-image]][license-link]
[![Edit][gh-edit-badge]][gh-edit-link]

Strategy based on the moving average price indicators.
Strategy based on the moving average price indicators implementing breakout signal.

## Dependencies

| Tag | Framework |
|:--------:|:---------:|
| v1.000 | v2.000 |
| v1.001 | v2.001 |
| ... | ... |
| v1.010 | v2.010 |
| v1.011 | v2.011.1 |
| v1.012 | v2.012.1 |
| v1.013 | v2.013 |
| v2.000 | v3.000.1 |

<!-- Named links -->
Expand All @@ -28,12 +21,12 @@ Strategy based on the moving average price indicators.
[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-MA
[gh-edit-link]: https://github.dev/EA31337/Strategy-MA_Breakout

[gha-link-check-master]: https://github.com/EA31337/Strategy-MA/actions?query=workflow:Check+branch%3Amaster
[gha-image-check-master]: https://github.com/EA31337/Strategy-MA/workflows/Check/badge.svg?branch=master
[gha-link-compile-master]: https://github.com/EA31337/Strategy-MA/actions?query=workflow:Compile+branch%3Amaster
[gha-image-compile-master]: https://github.com/EA31337/Strategy-MA/workflows/Compile/badge.svg?branch=master
[gha-link-check-master]: https://github.com/EA31337/Strategy-MA_Breakout/actions?query=workflow:Check+branch%3Amaster
[gha-image-check-master]: https://github.com/EA31337/Strategy-MA_Breakout/workflows/Check/badge.svg?branch=master
[gha-link-compile-master]: https://github.com/EA31337/Strategy-MA_Breakout/actions?query=workflow:Compile+branch%3Amaster
[gha-image-compile-master]: https://github.com/EA31337/Strategy-MA_Breakout/workflows/Compile/badge.svg?branch=master

[tg-channel-image]: https://img.shields.io/badge/Telegram-join-0088CC.svg?logo=telegram
[tg-channel-link]: https://t.me/EA31337
Expand Down
264 changes: 0 additions & 264 deletions Stg_MA.mqh

This file was deleted.

4 changes: 2 additions & 2 deletions Stg_MA.mq4 → Stg_MA_Breakout.mq4
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

/**
* @file
* Implements MA strategy.
* Implements MA Breakout strategy.
*/

// Includes the main code.
#include "Stg_MA.mq5"
#include "Stg_MA_Breakout.mq5"
10 changes: 5 additions & 5 deletions Stg_MA.mq5 → Stg_MA_Breakout.mq5
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ input ENUM_LOG_LEVEL Log_Level = V_INFO; // Log level.
input bool Info_On_Chart = true; // Display info on chart.

// Includes strategy.
#include "Stg_MA.mqh"
#include "Stg_MA_Breakout.mqh"

// Defines.
#define ea_name "Strategy MA"
#define ea_name "Strategy MA Breakout"
#define ea_version "2.000"
#define ea_desc "Strategy based on the moving average price indicators."
#define ea_link "https://github.com/EA31337/Strategy-MA"
#define ea_desc "Strategy based on the moving average price indicators implementing breakout signal."
#define ea_link "https://github.com/EA31337/Strategy-MA_Breakout"
#define ea_author "EA31337 Ltd"

// Properties.
Expand All @@ -59,7 +59,7 @@ int OnInit() {
bool _result = true;
EAParams ea_params(__FILE__, Log_Level);
ea = new EA(ea_params);
_result &= ea.StrategyAdd<Stg_MA>(Active_Tfs);
_result &= ea.StrategyAdd<Stg_MA_Breakout>(Active_Tfs);
return (_result ? INIT_SUCCEEDED : INIT_FAILED);
}

Expand Down
Loading

0 comments on commit 2d06e43

Please sign in to comment.