complete x5 all providers base conditions ...
This commit is contained in:
@@ -4173,6 +4173,54 @@ private:
|
|||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
double nonSC2[] = {
|
||||||
|
mConditions.chmaMcFasts[2],
|
||||||
|
mConditions.chmaMcSlows[2],
|
||||||
|
mConditions.chmaLcFasts[2],
|
||||||
|
mConditions.chmaLcSlows[2],
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
|
double nonSCMax2 = GetMax(nonSC2);
|
||||||
|
double nonSCMin2 = GetMax(nonSC2);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Start Analysing Market based On Conditions ...
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
// Base Condition:
|
||||||
|
// each Strategy must has a Base Conditions, which they are usually common combinations
|
||||||
|
// of Market Properties that must be happens to lookup for signals ...
|
||||||
|
(
|
||||||
|
//
|
||||||
|
mConditions.isXCHMASCCrossedOverMin &&
|
||||||
|
mConditions.chmaScFasts[2] < nonSCMin2 &&
|
||||||
|
mConditions.chmaScSlows[2] < nonSCMin2
|
||||||
|
//
|
||||||
|
)
|
||||||
|
//
|
||||||
|
&&
|
||||||
|
//
|
||||||
|
// Next Step is combine sorts of Conditions which make our choice
|
||||||
|
// so Exact in Market ...
|
||||||
|
(
|
||||||
|
//
|
||||||
|
IsReadyForLong(
|
||||||
|
mConditions,
|
||||||
|
true, // XCHMA Min
|
||||||
|
true, // XCHMA Max
|
||||||
|
false, // XCHMA Cycles
|
||||||
|
false, // XCHMA Peaks
|
||||||
|
false, // XCHMA Trend Powers
|
||||||
|
true, // XOBD
|
||||||
|
true // XTS
|
||||||
|
)
|
||||||
|
//
|
||||||
|
)
|
||||||
|
//
|
||||||
|
;
|
||||||
|
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -4186,6 +4234,53 @@ private:
|
|||||||
//
|
//
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
|
//
|
||||||
|
double nonSC2[] = {
|
||||||
|
mConditions.chmaMcFasts[2],
|
||||||
|
mConditions.chmaMcSlows[2],
|
||||||
|
mConditions.chmaLcFasts[2],
|
||||||
|
mConditions.chmaLcSlows[2],
|
||||||
|
};
|
||||||
|
|
||||||
|
//
|
||||||
|
double nonSCMax2 = GetMax(nonSC2);
|
||||||
|
double nonSCMin2 = GetMax(nonSC2);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Start Analysing Market based On Conditions ...
|
||||||
|
result =
|
||||||
|
//
|
||||||
|
// Base Condition:
|
||||||
|
// each Strategy must has a Base Conditions, which they are usually common combinations
|
||||||
|
// of Market Properties that must be happens to lookup for signals ...
|
||||||
|
(
|
||||||
|
//
|
||||||
|
mConditions.isXCHMASCCrossedUnderMin &&
|
||||||
|
mConditions.chmaScFasts[2] > nonSCMin2 &&
|
||||||
|
mConditions.chmaScSlows[2] > nonSCMin2
|
||||||
|
//
|
||||||
|
)
|
||||||
|
//
|
||||||
|
&&
|
||||||
|
//
|
||||||
|
// Next Step is combine sorts of Conditions which make our choice
|
||||||
|
// so Exact in Market ...
|
||||||
|
(
|
||||||
|
//
|
||||||
|
IsReadyForLong(
|
||||||
|
mConditions,
|
||||||
|
true, // XCHMA Min
|
||||||
|
true, // XCHMA Max
|
||||||
|
false, // XCHMA Cycles
|
||||||
|
false, // XCHMA Peaks
|
||||||
|
false, // XCHMA Trend Powers
|
||||||
|
true, // XOBD
|
||||||
|
true // XTS
|
||||||
|
)
|
||||||
|
//
|
||||||
|
)
|
||||||
|
//
|
||||||
|
;
|
||||||
//
|
//
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user