last works on new Indicators helpers based on ch ...
This commit is contained in:
@@ -59,7 +59,7 @@ bool eaIgnoreSL = false; // Ignore SL
|
|||||||
double eaR2R = 1.5; // Risk to Reward Ratio
|
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
|
bool eaUseMaxAllowedTradesPerSymbol = true; // Use Max Allowed Trades Per Symbol
|
||||||
string eaSymbols = "EURUSDb,USDJPYb"; // Trading Symbols
|
string eaSymbols = "EURUSDb,USDJPYb"; // Trading Symbols
|
||||||
// string eaSymbols = "EURUSDb,USDJPYb,USDCHFb,GBPUSDb,XAUUSDb,XAGUSDb"; // Trading Symbols
|
// string eaSymbols = "EURUSDb,USDJPYb,USDCHFb,GBPUSDb,XAUUSDb,XAGUSDb"; // Trading Symbols
|
||||||
|
|||||||
@@ -80,11 +80,11 @@ input bool showHind = true; // Show Hind Cycle
|
|||||||
// Buffers ...
|
// Buffers ...
|
||||||
|
|
||||||
//
|
//
|
||||||
#property indicator_separate_window
|
#property indicator_chart_window
|
||||||
|
|
||||||
//
|
//
|
||||||
#property indicator_buffers 10
|
#property indicator_buffers 10
|
||||||
#property indicator_plots 10
|
#property indicator_plots 0
|
||||||
|
|
||||||
//
|
//
|
||||||
// Current ...
|
// Current ...
|
||||||
@@ -888,7 +888,9 @@ void CalculateCycle(
|
|||||||
//
|
//
|
||||||
_bull[bar_index] = bullRange;
|
_bull[bar_index] = bullRange;
|
||||||
_bear[bar_index] = bearRange;
|
_bear[bar_index] = bearRange;
|
||||||
} else if (mode == XCHTD_STRONG_MODE) {
|
}
|
||||||
|
else if (mode == XCHTD_STRONG_MODE)
|
||||||
|
{
|
||||||
//
|
//
|
||||||
_bull[bar_index] = bullPower + bullPressure;
|
_bull[bar_index] = bullPower + bullPressure;
|
||||||
_bear[bar_index] = bearPower + bearPressure;
|
_bear[bar_index] = bearPower + bearPressure;
|
||||||
|
|||||||
@@ -76,11 +76,11 @@ input bool showHind = true; // Show Hind Cycle
|
|||||||
#define bearishColorIDX 2
|
#define bearishColorIDX 2
|
||||||
|
|
||||||
//
|
//
|
||||||
#property indicator_separate_window
|
#property indicator_chart_window
|
||||||
|
|
||||||
//
|
//
|
||||||
#property indicator_buffers 10
|
#property indicator_buffers 10
|
||||||
#property indicator_plots 10
|
#property indicator_plots 0
|
||||||
|
|
||||||
//
|
//
|
||||||
// Current ...
|
// Current ...
|
||||||
|
|||||||
@@ -27,8 +27,10 @@
|
|||||||
#include "../Helpers/x-saherelm.xpv.helper.mq5"
|
#include "../Helpers/x-saherelm.xpv.helper.mq5"
|
||||||
#include "../Helpers/x-saherelm.xchm.helper.mq5"
|
#include "../Helpers/x-saherelm.xchm.helper.mq5"
|
||||||
#include "../Helpers/x-saherelm.xchhk.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.xchche.helper.mq5"
|
||||||
#include "../Helpers/x-saherelm.xchstr.helper.mq5"
|
#include "../Helpers/x-saherelm.xchstr.helper.mq5"
|
||||||
|
#include "../Helpers/x-saherelm.xchvlm.helper.mq5"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Base Classes ...
|
// Base Classes ...
|
||||||
@@ -821,14 +823,19 @@ protected:
|
|||||||
XSCXPVHelper *pvHelper;
|
XSCXPVHelper *pvHelper;
|
||||||
|
|
||||||
//
|
//
|
||||||
// XHK ...
|
// XCHMA ...
|
||||||
|
XCHMInputs chmInputs;
|
||||||
|
XSCXCHMHelper *chmHelper;
|
||||||
|
|
||||||
|
//
|
||||||
|
// XCHHK ...
|
||||||
XCHHKInputs chhkInputs;
|
XCHHKInputs chhkInputs;
|
||||||
XSCXCHHKHelper *chhkHelper;
|
XSCXCHHKHelper *chhkHelper;
|
||||||
|
|
||||||
//
|
//
|
||||||
// XCHMA ...
|
// XCHTD ...
|
||||||
XCHMInputs chmInputs;
|
XCHTDInputs chtdInputs;
|
||||||
XSCXCHMHelper *chmHelper;
|
XSCXCHTDHelper *chtdHelper;
|
||||||
|
|
||||||
//
|
//
|
||||||
// XSTR ...
|
// XSTR ...
|
||||||
@@ -840,6 +847,11 @@ protected:
|
|||||||
XCHCHEInputs chcheInputs;
|
XCHCHEInputs chcheInputs;
|
||||||
XSCXCHCHEHelper *chcheHelper;
|
XSCXCHCHEHelper *chcheHelper;
|
||||||
|
|
||||||
|
//
|
||||||
|
// XCHVLM ...
|
||||||
|
XCHVLMInputs chvlmInputs;
|
||||||
|
XSCXCHVLMHelper *chvlmHelper;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Private ...
|
// Private ...
|
||||||
private:
|
private:
|
||||||
@@ -993,6 +1005,37 @@ private:
|
|||||||
chhkInputs //
|
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 ...
|
// XCHSTR ...
|
||||||
|
|
||||||
@@ -1030,6 +1073,16 @@ private:
|
|||||||
//
|
//
|
||||||
chcheInputs.Default();
|
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.showCurrentLE1 = false;
|
||||||
chcheInputs.showCurrentLE2 = false;
|
chcheInputs.showCurrentLE2 = false;
|
||||||
@@ -1059,6 +1112,37 @@ private:
|
|||||||
mPeriod,
|
mPeriod,
|
||||||
chcheInputs //
|
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 //
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user