apply ich signals filtering ...
This commit is contained in:
@@ -980,7 +980,8 @@ struct X121SetupConditions
|
|||||||
struct X121SignalGenerator
|
struct X121SignalGenerator
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
string version;
|
// Symbol Parser Instance ...
|
||||||
|
XSymbolParser symbolParser;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Constructor ...
|
// Constructor ...
|
||||||
@@ -2027,8 +2028,50 @@ struct X121SignalGenerator
|
|||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
// TODO Filter ...
|
bool isGBPUSD = symbolParser.IsGBPUSD(conditions.symbol);
|
||||||
result = true; // provider == ToString(PROVIDER_XHTSRD);
|
|
||||||
|
//
|
||||||
|
bool isM5Period = conditions.period == PERIOD_M5;
|
||||||
|
bool isM15Period = conditions.period == PERIOD_M15;
|
||||||
|
bool isH1Period = conditions.period == PERIOD_H1;
|
||||||
|
bool isH4Period = conditions.period == PERIOD_H4;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set Default Result to True ...
|
||||||
|
result = true;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Global Conditions ...
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
result &&
|
||||||
|
//
|
||||||
|
!(
|
||||||
|
//
|
||||||
|
(
|
||||||
|
//
|
||||||
|
// XICH ...
|
||||||
|
conditions.ichConditions.isClosedUnderKijunSen &&
|
||||||
|
conditions.ichConditions.isTenkanSenOverKijunSen
|
||||||
|
//
|
||||||
|
)
|
||||||
|
//
|
||||||
|
)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Apply Filter ...
|
||||||
|
// Based On Symbol and Period ...
|
||||||
|
// if necessary ...
|
||||||
|
if (isGBPUSD)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// MEDIUM ...
|
||||||
|
if (isH1Period)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
@@ -3265,8 +3308,50 @@ struct X121SignalGenerator
|
|||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
// TODO Filter ...
|
bool isGBPUSD = symbolParser.IsGBPUSD(conditions.symbol);
|
||||||
result = true; // provider == ToString(PROVIDER_XHTSRD);
|
|
||||||
|
//
|
||||||
|
bool isM5Period = conditions.period == PERIOD_M5;
|
||||||
|
bool isM15Period = conditions.period == PERIOD_M15;
|
||||||
|
bool isH1Period = conditions.period == PERIOD_H1;
|
||||||
|
bool isH4Period = conditions.period == PERIOD_H4;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Set Default Result to True ...
|
||||||
|
result = true;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Global Conditions ...
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
result &&
|
||||||
|
//
|
||||||
|
!(
|
||||||
|
//
|
||||||
|
(
|
||||||
|
//
|
||||||
|
// XICH ...
|
||||||
|
conditions.ichConditions.isClosedOverKijunSen &&
|
||||||
|
conditions.ichConditions.isTenkanSenUnderKijunSen
|
||||||
|
//
|
||||||
|
)
|
||||||
|
//
|
||||||
|
)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Apply Filter ...
|
||||||
|
// Based On Symbol and Period ...
|
||||||
|
// if necessary ...
|
||||||
|
if (isGBPUSD)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// MEDIUM ...
|
||||||
|
if (isH1Period)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user