From fd420ea47ecdb5221cfc0063287fd4feb8c6c1d8 Mon Sep 17 00:00:00 2001
From: kenorb <kenorb@users.noreply.github.com>
Date: Mon, 25 Sep 2023 01:26:54 +0100
Subject: [PATCH] Adds Oscillator Overlay strategy

---
 .github/workflows/compile.yml |  1 +
 Oscillator_Overlay            |  1 +
 README.md                     | 16 ++++++++++++++++
 enum.h                        |  1 +
 includes.h                    |  1 +
 5 files changed, 20 insertions(+)
 create mode 160000 Oscillator_Overlay

diff --git a/.github/workflows/compile.yml b/.github/workflows/compile.yml
index 072dd13..d4abdfd 100644
--- a/.github/workflows/compile.yml
+++ b/.github/workflows/compile.yml
@@ -77,6 +77,7 @@ jobs:
           - Oscillator_Cross
           - Oscillator_Cross_Shift
           - Oscillator_Cross_Zero
+          - Oscillator_Overlay
           - Oscillator_Range
           - Oscillator_Trend
           - Pattern
diff --git a/Oscillator_Overlay b/Oscillator_Overlay
new file mode 160000
index 0000000..7b6835c
--- /dev/null
+++ b/Oscillator_Overlay
@@ -0,0 +1 @@
+Subproject commit 7b6835ca998891f391993ca2be1e3a95b29437ac
diff --git a/README.md b/README.md
index 574a24e..2194896 100644
--- a/README.md
+++ b/README.md
@@ -107,6 +107,7 @@ See: <https://ea31337.github.io/EA31337-strategies>
 | Oscillator Cross Zero | [![check][ghim_s_osc_cross_zero_check]][ghlm_s_osc_cross_zero_check] | [![check][ghim_s_osc_cross_zero_compile]][ghlm_s_osc_cross_zero_compile] | [![check][ghim_s_osc_cross_zero_bt]][ghlm_s_osc_cross_zero_bt] |
 | Oscillator Divergence | [![check][ghim_s_osc_div_check]][ghlm_s_osc_div_check] | [![check][ghim_s_osc_div_compile]][ghlm_s_osc_div_compile] | [![check][ghim_s_osc_div_bt]][ghlm_s_osc_div_bt] |
 | Oscillator Multi | [![check][ghim_s_osc_multi_check]][ghlm_s_osc_multi_check] | [![check][ghim_s_osc_multi_compile]][ghlm_s_osc_multi_compile] | [![check][ghim_s_osc_multi_bt]][ghlm_s_osc_multi_bt] |
+| Oscillator Overlay | [![check][ghim_s_osc_overlay_check]][ghlm_s_osc_overlay_check] | [![check][ghim_s_osc_overlay_compile]][ghlm_s_osc_overlay_compile] | [![check][ghim_s_osc_overlay_bt]][ghlm_s_osc_overlay_bt] |
 | Oscillator Range | [![check][ghim_s_osc_range_check]][ghlm_s_osc_range_check] | [![check][ghim_s_osc_range_compile]][ghlm_s_osc_range_compile] | [![check][ghim_s_osc_range_bt]][ghlm_s_osc_range_bt] |
 | Oscillator Trend | [![check][ghim_s_osc_trend_check]][ghlm_s_osc_trend_check] | [![check][ghim_s_osc_trend_compile]][ghlm_s_osc_trend_compile] | [![check][ghim_s_osc_trend_bt]][ghlm_s_osc_trend_bt] |
 | Pinbar | [![check][ghim_s_pinbar_check]][ghlm_s_pinbar_check] | [![check][ghim_s_pinbar_compile]][ghlm_s_pinbar_compile] | [![check][ghim_s_pinbar_bt]][ghlm_s_pinbar_bt] |
@@ -181,6 +182,7 @@ See: <https://ea31337.github.io/EA31337-strategies>
 | Oscillator Cross Zero | [![check][ghid_s_osc_cross_zero_check]][ghld_s_osc_cross_zero_check] | [![check][ghid_s_osc_cross_zero_compile]][ghld_s_osc_cross_zero_compile] | [![check][ghid_s_osc_cross_zero_bt]][ghld_s_osc_cross_zero_bt] |
 | Oscillator Divergence | [![check][ghid_s_osc_div_check]][ghld_s_osc_div_check] | [![check][ghid_s_osc_div_compile]][ghld_s_osc_div_compile] | [![check][ghid_s_osc_div_bt]][ghld_s_osc_div_bt] |
 | Oscillator Multi | [![check][ghid_s_osc_multi_check]][ghld_s_osc_multi_check] | [![check][ghid_s_osc_multi_compile]][ghld_s_osc_multi_compile] | [![check][ghid_s_osc_multi_bt]][ghld_s_osc_multi_bt] |
+| Oscillator Overlay | [![check][ghid_s_osc_overlay_check]][ghld_s_osc_overlay_check] | [![check][ghid_s_osc_overlay_compile]][ghld_s_osc_overlay_compile] | [![check][ghid_s_osc_overlay_bt]][ghld_s_osc_overlay_bt] |
 | Oscillator Range | [![check][ghid_s_osc_range_check]][ghld_s_osc_range_check] | [![check][ghid_s_osc_range_compile]][ghld_s_osc_range_compile] | [![check][ghid_s_osc_range_bt]][ghld_s_osc_range_bt] |
 | Oscillator Trend | [![check][ghid_s_osc_trend_check]][ghld_s_osc_trend_check] | [![check][ghid_s_osc_trend_compile]][ghld_s_osc_trend_compile] | [![check][ghid_s_osc_trend_bt]][ghld_s_osc_trend_bt] |
 | Pinbar | [![check][ghid_s_pinbar_check]][ghld_s_pinbar_check] | [![check][ghid_s_pinbar_compile]][ghld_s_pinbar_compile] | [![check][ghid_s_pinbar_bt]][ghld_s_pinbar_bt] |
@@ -996,6 +998,20 @@ NO REPRESENTATION IS BEING MADE THAN ANY ACCOUNT WILL OR IS LIKELY TO ACHIEVE PR
 [ghld_s_osc_multi_bt]: https://github.com/EA31337/Strategy-Oscillator_Multi/actions?query=workflow:Backtest+branch:dev
 [ghid_s_osc_multi_bt]: https://github.com/EA31337/Strategy-Oscillator_Multi/workflows/Backtest/badge.svg?branch=dev
 
+[ghlm_s_osc_overlay_check]: https://github.com/EA31337/Strategy-Oscillator_Overlay/actions?query=workflow:Check+branch:master
+[ghim_s_osc_overlay_check]: https://github.com/EA31337/Strategy-Oscillator_Overlay/workflows/Check/badge.svg?branch=master
+[ghlm_s_osc_overlay_compile]: https://github.com/EA31337/Strategy-Oscillator_Overlay/actions?query=workflow:Compile+branch:master
+[ghim_s_osc_overlay_compile]: https://github.com/EA31337/Strategy-Oscillator_Overlay/workflows/Compile/badge.svg?branch=master
+[ghlm_s_osc_overlay_bt]: https://github.com/EA31337/Strategy-Oscillator_Overlay/actions?query=workflow:Backtest+branch:master
+[ghim_s_osc_overlay_bt]: https://github.com/EA31337/Strategy-Oscillator_Overlay/workflows/Backtest/badge.svg?branch=master
+
+[ghld_s_osc_overlay_check]: https://github.com/EA31337/Strategy-Oscillator_Overlay/actions?query=workflow:Check+branch:dev
+[ghid_s_osc_overlay_check]: https://github.com/EA31337/Strategy-Oscillator_Overlay/workflows/Check/badge.svg?branch=dev
+[ghld_s_osc_overlay_compile]: https://github.com/EA31337/Strategy-Oscillator_Overlay/actions?query=workflow:Compile+branch:dev
+[ghid_s_osc_overlay_compile]: https://github.com/EA31337/Strategy-Oscillator_Overlay/workflows/Compile/badge.svg?branch=dev
+[ghld_s_osc_overlay_bt]: https://github.com/EA31337/Strategy-Oscillator_Overlay/actions?query=workflow:Backtest+branch:dev
+[ghid_s_osc_overlay_bt]: https://github.com/EA31337/Strategy-Oscillator_Overlay/workflows/Backtest/badge.svg?branch=dev
+
 [ghlm_s_osc_range_check]: https://github.com/EA31337/Strategy-Oscillator_Range/actions?query=workflow:Check+branch:master
 [ghim_s_osc_range_check]: https://github.com/EA31337/Strategy-Oscillator_Range/workflows/Check/badge.svg?branch=master
 [ghlm_s_osc_range_compile]: https://github.com/EA31337/Strategy-Oscillator_Range/actions?query=workflow:Compile+branch:master
diff --git a/enum.h b/enum.h
index 79110a7..b564f6a 100644
--- a/enum.h
+++ b/enum.h
@@ -73,6 +73,7 @@ enum ENUM_STRATEGY {
   STRAT_OSCILLATOR_CROSS,        // Oscillator Cross
   STRAT_OSCILLATOR_CROSS_SHIFT,  // Oscillator Cross Shift
   STRAT_OSCILLATOR_CROSS_ZERO,   // Oscillator Cross Zero
+  STRAT_OSCILLATOR_OVERLAY,      // Oscillator Overlay
   STRAT_OSCILLATOR_RANGE,        // Oscillator Range
   STRAT_OSCILLATOR_TREND,        // Oscillator Trend
   STRAT_OSMA,                    // OSMA
diff --git a/includes.h b/includes.h
index 933a102..30d11ca 100644
--- a/includes.h
+++ b/includes.h
@@ -68,6 +68,7 @@
 #include "Oscillator_Cross_Shift/Stg_Oscillator_Cross_Shift.mqh"
 #include "Oscillator_Cross_Zero/Stg_Oscillator_Cross_Zero.mqh"
 #include "Oscillator_Divergence/Stg_Oscillator_Divergence.mqh"
+#include "Oscillator_Overlay/Stg_Oscillator_Overlay.mqh"
 #include "Oscillator_Multi/Stg_Oscillator_Multi.mqh"
 #include "Oscillator_Range/Stg_Oscillator_Range.mqh"
 #include "Oscillator_Trend/Stg_Oscillator_Trend.mqh"