Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To initialized Strategy we now call Init() instead of OnInit() #3

Merged
merged 4 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: v3.000.1
ref: v3.000.2
repository: EA31337/EA31337-classes
- name: Uploads source code
uses: actions/upload-artifact@v4
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
[![Status][gha-image-compile-master]][gha-link-compile-master]
[![Channel][tg-channel-image]][tg-channel-link]
[![Discuss][gh-discuss-badge]][gh-discuss-link]
[![X][x-pimage]][x-plink]
[![X][x-cimage]][x-clink]
[![License][license-image]][license-link]
[![Edit][gh-edit-badge]][gh-edit-link]

Expand All @@ -14,7 +16,7 @@ based on the current daily RSI value.

| Tag | Framework | Strategies |
|:--------:|:---------:|:----------:|
| v2.000 | v3.000.1 | v2.000 |
| v2.000 | v3.000.2 | v2.000 |

<!-- Named links -->

Expand All @@ -32,5 +34,10 @@ based on the current daily RSI value.
[tg-channel-image]: https://img.shields.io/badge/Telegram-join-0088CC.svg?logo=telegram
[tg-channel-link]: https://t.me/EA31337

[x-cimage]: https://img.shields.io/badge/EA31337-Join-1DA1F2.svg?logo=X
[x-clink]: https://twitter.com/i/communities/1700228512274174098
[x-pimage]: https://img.shields.io/badge/EA31337-Follow-1DA1F2.svg?logo=X
[x-plink]: https://x.com/EA31337

[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)
2 changes: 1 addition & 1 deletion Stg_Meta_RSI.mq4
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//+------------------------------------------------------------------+
//| EA31337 - multi-strategy advanced trading robot |
//| Copyright 2016-2023, EA31337 Ltd |
//| Copyright 2016-2024, EA31337 Ltd |
//| https://github.com/EA31337 |
//+------------------------------------------------------------------+

Expand Down
2 changes: 1 addition & 1 deletion Stg_Meta_RSI.mq5
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ input bool Info_On_Chart = true; // Display info on chart.
#property description ea_desc
#endif
#property link ea_link
#property copyright "Copyright 2016-2023, EA31337 Ltd"
#property copyright "Copyright 2016-2024, EA31337 Ltd"

// Class variables.
EA *ea;
Expand Down
2 changes: 1 addition & 1 deletion Stg_Meta_RSI.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Stg_Meta_RSI : public Strategy {
_strat.Ptr().Set<long>(STRAT_PARAM_ID, Get<long>(STRAT_PARAM_ID));
_strat.Ptr().Set<ENUM_TIMEFRAMES>(STRAT_PARAM_TF, _tf);
_strat.Ptr().Set<int>(STRAT_PARAM_TYPE, _sid);
_strat.Ptr().OnInit();
_strat.Ptr().Init();
if (_index >= 0) {
strats.Set(_index, _strat);
} else {
Expand Down
Loading