diff --git a/Classes/x-saherelm.x-helper.class.mq5 b/Classes/x-saherelm.x-helper.class.mq5 index 8aa63e8c..945ba69d 100644 --- a/Classes/x-saherelm.x-helper.class.mq5 +++ b/Classes/x-saherelm.x-helper.class.mq5 @@ -95,6 +95,9 @@ class XCBaseHelper : public XCBase return BarsCalculated(mHandler); } + // + virtual void Free() {} + // // Generate Tag ... virtual string GetTag() diff --git a/Helpers/x-saherelm.x121.helper.mq5 b/Helpers/x-saherelm.x121.helper.mq5 index 5b04375d..5800ec25 100644 --- a/Helpers/x-saherelm.x121.helper.mq5 +++ b/Helpers/x-saherelm.x121.helper.mq5 @@ -1947,6 +1947,20 @@ class XCX121Helper : public XCBase return result; } + // + void Free() + { + // + xpvHelper.Free(); + xhkHelper.Free(); + xatrHelper.Free(); + xstrHelper.Free(); + xcheHelper.Free(); + xdonHelper.Free(); + xvwapHelper.Free(); + xtrendHelper.Free(); + } + // bool GetConditions( X121Conditions &conditions, // @@ -3328,6 +3342,9 @@ class XCX121Helper : public XCBase xvwapConditions.Clean(); xtrendConditions.Clean(); + // + Free(); + // return result; } diff --git a/Helpers/x-saherelm.x121.xatr.helper.mq5 b/Helpers/x-saherelm.x121.xatr.helper.mq5 index d31f4727..2c7b5c4e 100644 --- a/Helpers/x-saherelm.x121.xatr.helper.mq5 +++ b/Helpers/x-saherelm.x121.xatr.helper.mq5 @@ -890,6 +890,12 @@ class XCX121XATRHelper : public XCBaseHelper ); } + // + void Free() override + { + Cleanup(10); + } + // bool GetConditions( X121XATRConditions &conditions, // diff --git a/Helpers/x-saherelm.x121.xche.helper.mq5 b/Helpers/x-saherelm.x121.xche.helper.mq5 index 4a5a82ca..7f7cecd5 100644 --- a/Helpers/x-saherelm.x121.xche.helper.mq5 +++ b/Helpers/x-saherelm.x121.xche.helper.mq5 @@ -943,6 +943,12 @@ class XCX121XCHEHelper : public XCBaseHelper ); } + // + void Free() override + { + Cleanup(10); + } + // bool GetConditions( X121XCHEConditions &conditions, // diff --git a/Helpers/x-saherelm.x121.xdon.helper.mq5 b/Helpers/x-saherelm.x121.xdon.helper.mq5 index beb5f801..639df23f 100644 --- a/Helpers/x-saherelm.x121.xdon.helper.mq5 +++ b/Helpers/x-saherelm.x121.xdon.helper.mq5 @@ -965,6 +965,12 @@ class XCX121XDONHelper : public XCBaseHelper ); } + // + void Free() override + { + Cleanup(10); + } + // bool GetConditions( X121XDONConditions &conditions, // diff --git a/Helpers/x-saherelm.x121.xhk.helper.mq5 b/Helpers/x-saherelm.x121.xhk.helper.mq5 index a1046ab1..0a4e89a8 100644 --- a/Helpers/x-saherelm.x121.xhk.helper.mq5 +++ b/Helpers/x-saherelm.x121.xhk.helper.mq5 @@ -1011,6 +1011,12 @@ class XCX121XHKHelper : public XCBaseHelper return result; } + // + void Free() override + { + Cleanup(10); + } + // bool GetConditions( X121XHKConditions &conditions, // @@ -1332,7 +1338,7 @@ class XCX121XHKHelper : public XCBaseHelper // rawHKCBar.Clean(); - + // return result; } diff --git a/Helpers/x-saherelm.x121.xpv.helper.mq5 b/Helpers/x-saherelm.x121.xpv.helper.mq5 index ffda6b59..8f5addd0 100644 --- a/Helpers/x-saherelm.x121.xpv.helper.mq5 +++ b/Helpers/x-saherelm.x121.xpv.helper.mq5 @@ -1833,6 +1833,12 @@ class XCX121XPVHelper : public XCBaseHelper return result; } + // + void Free() override + { + Cleanup(10); + } + // bool GetConditions( X121XPVConditions &conditions, // diff --git a/Helpers/x-saherelm.x121.xstr.helper.mq5 b/Helpers/x-saherelm.x121.xstr.helper.mq5 index 1f2a01d1..31bf24f9 100644 --- a/Helpers/x-saherelm.x121.xstr.helper.mq5 +++ b/Helpers/x-saherelm.x121.xstr.helper.mq5 @@ -809,6 +809,12 @@ class XCX121XSTRHelper : public XCBaseHelper return result; } + // + void Free() override + { + Cleanup(10); + } + // bool GetConditions( X121XSTRConditions &conditions, // diff --git a/Helpers/x-saherelm.x121.xtrend.helper.mq5 b/Helpers/x-saherelm.x121.xtrend.helper.mq5 index 01519f7a..1f5a7aa0 100644 --- a/Helpers/x-saherelm.x121.xtrend.helper.mq5 +++ b/Helpers/x-saherelm.x121.xtrend.helper.mq5 @@ -928,6 +928,12 @@ class XCX121XTRENDHelper : public XCBaseHelper ); } + // + void Free() override + { + Cleanup(10); + } + // bool GetConditions( X121XTRENDConditions &conditions, // @@ -1079,15 +1085,15 @@ class XCX121XTRENDHelper : public XCBaseHelper conditions.isTrendBearish = isTrendBearish; conditions.isTrendSwitchedToBullish = isTrendSwitchedToBullish; conditions.isTrendSwitchedToBearish = isTrendSwitchedToBearish; - + // Cleanup(); // zBar.Clean(); cBar.Clean(); - pBar.Clean(); - + pBar.Clean(); + // return result; } diff --git a/Helpers/x-saherelm.x121.xvwap.helper.mq5 b/Helpers/x-saherelm.x121.xvwap.helper.mq5 index 9cfed7ee..769dfa96 100644 --- a/Helpers/x-saherelm.x121.xvwap.helper.mq5 +++ b/Helpers/x-saherelm.x121.xvwap.helper.mq5 @@ -1047,6 +1047,12 @@ class XCX121XVWAPHelper : public XCBaseHelper return result; } + // + void Free() override + { + Cleanup(10); + } + // bool GetConditions( X121XVWAPConditions &conditions, // @@ -1315,7 +1321,7 @@ class XCX121XVWAPHelper : public XCBaseHelper // zBar.Clean(); cBar.Clean(); - pBar.Clean(); + pBar.Clean(); // return result;