last works on new Indicators helpers based on ch ...

This commit is contained in:
2024-07-31 19:53:25 +03:30
parent 5d7c2c3388
commit 5403a46aa5
4 changed files with 96 additions and 10 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ bool eaIgnoreSL = false; // Ignore SL
double eaR2R = 1.5; // Risk to Reward Ratio
//
bool eaMultiSymbol = true; // Use Multi Symbol
bool eaMultiSymbol = false; // Use Multi Symbol
bool eaUseMaxAllowedTradesPerSymbol = true; // Use Max Allowed Trades Per Symbol
string eaSymbols = "EURUSDb,USDJPYb"; // Trading Symbols
// string eaSymbols = "EURUSDb,USDJPYb,USDCHFb,GBPUSDb,XAUUSDb,XAGUSDb"; // Trading Symbols
+5 -3
View File
@@ -80,11 +80,11 @@ input bool showHind = true; // Show Hind Cycle
// Buffers ...
//
#property indicator_separate_window
#property indicator_chart_window
//
#property indicator_buffers 10
#property indicator_plots 10
#property indicator_plots 0
//
// Current ...
@@ -888,7 +888,9 @@ void CalculateCycle(
//
_bull[bar_index] = bullRange;
_bear[bar_index] = bearRange;
} else if (mode == XCHTD_STRONG_MODE) {
}
else if (mode == XCHTD_STRONG_MODE)
{
//
_bull[bar_index] = bullPower + bullPressure;
_bear[bar_index] = bearPower + bearPressure;
+2 -2
View File
@@ -76,11 +76,11 @@ input bool showHind = true; // Show Hind Cycle
#define bearishColorIDX 2
//
#property indicator_separate_window
#property indicator_chart_window
//
#property indicator_buffers 10
#property indicator_plots 10
#property indicator_plots 0
//
// Current ...
+88 -4
View File
@@ -27,8 +27,10 @@
#include "../Helpers/x-saherelm.xpv.helper.mq5"
#include "../Helpers/x-saherelm.xchm.helper.mq5"
#include "../Helpers/x-saherelm.xchhk.helper.mq5"
#include "../Helpers/x-saherelm.xchtd.helper.mq5"
#include "../Helpers/x-saherelm.xchche.helper.mq5"
#include "../Helpers/x-saherelm.xchstr.helper.mq5"
#include "../Helpers/x-saherelm.xchvlm.helper.mq5"
//
// Base Classes ...
@@ -821,14 +823,19 @@ protected:
XSCXPVHelper *pvHelper;
//
// XHK ...
// XCHMA ...
XCHMInputs chmInputs;
XSCXCHMHelper *chmHelper;
//
// XCHHK ...
XCHHKInputs chhkInputs;
XSCXCHHKHelper *chhkHelper;
//
// XCHMA ...
XCHMInputs chmInputs;
XSCXCHMHelper *chmHelper;
// XCHTD ...
XCHTDInputs chtdInputs;
XSCXCHTDHelper *chtdHelper;
//
// XSTR ...
@@ -840,6 +847,11 @@ protected:
XCHCHEInputs chcheInputs;
XSCXCHCHEHelper *chcheHelper;
//
// XCHVLM ...
XCHVLMInputs chvlmInputs;
XSCXCHVLMHelper *chvlmHelper;
//
// Private ...
private:
@@ -993,6 +1005,37 @@ private:
chhkInputs //
);
//
// XCHTD ...
//
chtdInputs.Default();
//
chtdInputs.scMethod = scMethod;
chtdInputs.scPeriod = scPeriod;
chtdInputs.mcMethod = mcMethod;
chtdInputs.mcPeriod = mcPeriod;
chtdInputs.lcMethod = lcMethod;
chtdInputs.lcPeriod = lcPeriod;
chtdInputs.hcMethod = hcMethod;
chtdInputs.hcPeriod = hcPeriod;
//
chtdInputs.showCurrent = false;
chtdInputs.showShort = false;
chtdInputs.showMedium = false;
chtdInputs.showLong = false;
chtdInputs.showHind = false;
//
chtdHelper = new XSCXCHTDHelper();
chtdHelper.Init(
mSymbol,
mPeriod,
chtdInputs //
);
//
// XCHSTR ...
@@ -1030,6 +1073,16 @@ private:
//
chcheInputs.Default();
//
chcheInputs.scMethod = scMethod;
chcheInputs.scPeriod = scPeriod;
chcheInputs.mcMethod = mcMethod;
chcheInputs.mcPeriod = mcPeriod;
chcheInputs.lcMethod = lcMethod;
chcheInputs.lcPeriod = lcPeriod;
chcheInputs.hcMethod = hcMethod;
chcheInputs.hcPeriod = hcPeriod;
//
chcheInputs.showCurrentLE1 = false;
chcheInputs.showCurrentLE2 = false;
@@ -1059,6 +1112,37 @@ private:
mPeriod,
chcheInputs //
);
//
// XCHVLM ...
//
chvlmInputs.Default();
//
chvlmInputs.scMethod = scMethod;
chvlmInputs.scPeriod = scPeriod;
chvlmInputs.mcMethod = mcMethod;
chvlmInputs.mcPeriod = mcPeriod;
chvlmInputs.lcMethod = lcMethod;
chvlmInputs.lcPeriod = lcPeriod;
chvlmInputs.hcMethod = hcMethod;
chvlmInputs.hcPeriod = hcPeriod;
//
chvlmInputs.showCurrent = false;
chvlmInputs.showShort = false;
chvlmInputs.showMedium = false;
chvlmInputs.showLong = false;
chvlmInputs.showHind = false;
//
chvlmHelper = new XSCXCHVLMHelper();
chvlmHelper.Init(
mSymbol,
mPeriod,
chvlmInputs //
);
}
//