last ...
This commit is contained in:
@@ -374,7 +374,9 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
//
|
||||
bool hasStartZone = mConditions.DetectStartZones(
|
||||
trend,
|
||||
consolidationState,
|
||||
analyseState,
|
||||
decisionState,
|
||||
decisionCycleHelper //
|
||||
);
|
||||
|
||||
@@ -639,8 +641,8 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
result = hasConditions &&
|
||||
hasRewardAmount &&
|
||||
isPriorityPassed &&
|
||||
trend == conditionsDir &&
|
||||
isConsolidationZonePassed;
|
||||
trend == conditionsDir; // &&
|
||||
// isConsolidationZonePassed;
|
||||
if (!result)
|
||||
{
|
||||
//
|
||||
@@ -741,7 +743,7 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
XC121SMCCycleHelper *consolidationCycleHelper,
|
||||
XC121SMCCycleHelper *visionCycleHelper,
|
||||
//
|
||||
int maxAllowedSetupAge = 60
|
||||
int maxAllowedSetupAge = 30
|
||||
//
|
||||
)
|
||||
{
|
||||
@@ -896,7 +898,8 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
isBullish =
|
||||
//
|
||||
isBullish &&
|
||||
isPointBreaked
|
||||
isPointBreaked &&
|
||||
cBar.IsBullish()
|
||||
//
|
||||
;
|
||||
|
||||
@@ -904,7 +907,8 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
isBearish =
|
||||
//
|
||||
isBearish &&
|
||||
isPointBreaked
|
||||
isPointBreaked &&
|
||||
cBar.IsBearish()
|
||||
//
|
||||
;
|
||||
|
||||
@@ -961,6 +965,9 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
sls //
|
||||
);
|
||||
|
||||
//
|
||||
// TODO: Add Consolidation Zone for SLs ...
|
||||
|
||||
//
|
||||
double iAtr = decisionXConditions.atrBuffer[1];
|
||||
iAtr *= 2;
|
||||
@@ -2315,77 +2322,77 @@ class XCX121SMCXWZSignalDetector : public XCBase
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
bool hasSupply = conditions.startZones[i].HasSupply();
|
||||
if (hasSupply)
|
||||
{
|
||||
//
|
||||
XCSupplyZoneObject *iObj;
|
||||
isCreated = drawer.CreateSupplyZone(
|
||||
conditions.startZones[i].supply,
|
||||
iObj //
|
||||
);
|
||||
// //
|
||||
// bool hasSupply = conditions.startZones[i].HasSupply();
|
||||
// if (hasSupply)
|
||||
// {
|
||||
// //
|
||||
// XCSupplyZoneObject *iObj;
|
||||
// isCreated = drawer.CreateSupplyZone(
|
||||
// conditions.startZones[i].supply,
|
||||
// iObj //
|
||||
// );
|
||||
|
||||
//
|
||||
if (isCreated)
|
||||
{
|
||||
mObjects.Add(iObj);
|
||||
}
|
||||
}
|
||||
// //
|
||||
// if (isCreated)
|
||||
// {
|
||||
// mObjects.Add(iObj);
|
||||
// }
|
||||
// }
|
||||
|
||||
//
|
||||
bool hasDemand = conditions.startZones[i].HasDemand();
|
||||
if (hasDemand)
|
||||
{
|
||||
//
|
||||
XCDemandZoneObject *iObj;
|
||||
isCreated = drawer.CreateDemandZone(
|
||||
conditions.startZones[i].demand,
|
||||
iObj //
|
||||
);
|
||||
// //
|
||||
// bool hasDemand = conditions.startZones[i].HasDemand();
|
||||
// if (hasDemand)
|
||||
// {
|
||||
// //
|
||||
// XCDemandZoneObject *iObj;
|
||||
// isCreated = drawer.CreateDemandZone(
|
||||
// conditions.startZones[i].demand,
|
||||
// iObj //
|
||||
// );
|
||||
|
||||
//
|
||||
if (isCreated)
|
||||
{
|
||||
mObjects.Add(iObj);
|
||||
}
|
||||
}
|
||||
// //
|
||||
// if (isCreated)
|
||||
// {
|
||||
// mObjects.Add(iObj);
|
||||
// }
|
||||
// }
|
||||
|
||||
//
|
||||
bool hasSupport = conditions.startZones[i].HasSupport();
|
||||
if (hasSupport)
|
||||
{
|
||||
//
|
||||
XCSupportZoneObject *iObj;
|
||||
isCreated = drawer.CreateSupportZone(
|
||||
conditions.startZones[i].support,
|
||||
iObj //
|
||||
);
|
||||
// //
|
||||
// bool hasSupport = conditions.startZones[i].HasSupport();
|
||||
// if (hasSupport)
|
||||
// {
|
||||
// //
|
||||
// XCSupportZoneObject *iObj;
|
||||
// isCreated = drawer.CreateSupportZone(
|
||||
// conditions.startZones[i].support,
|
||||
// iObj //
|
||||
// );
|
||||
|
||||
//
|
||||
if (isCreated)
|
||||
{
|
||||
mObjects.Add(iObj);
|
||||
}
|
||||
}
|
||||
// //
|
||||
// if (isCreated)
|
||||
// {
|
||||
// mObjects.Add(iObj);
|
||||
// }
|
||||
// }
|
||||
|
||||
//
|
||||
bool hasResistance = conditions.startZones[i].HasResistance();
|
||||
if (hasResistance)
|
||||
{
|
||||
//
|
||||
XCResistanceZoneObject *iObj;
|
||||
isCreated = drawer.CreateResistanceZone(
|
||||
conditions.startZones[i].resistance,
|
||||
iObj //
|
||||
);
|
||||
// //
|
||||
// bool hasResistance = conditions.startZones[i].HasResistance();
|
||||
// if (hasResistance)
|
||||
// {
|
||||
// //
|
||||
// XCResistanceZoneObject *iObj;
|
||||
// isCreated = drawer.CreateResistanceZone(
|
||||
// conditions.startZones[i].resistance,
|
||||
// iObj //
|
||||
// );
|
||||
|
||||
//
|
||||
if (isCreated)
|
||||
{
|
||||
mObjects.Add(iObj);
|
||||
}
|
||||
}
|
||||
// //
|
||||
// if (isCreated)
|
||||
// {
|
||||
// mObjects.Add(iObj);
|
||||
// }
|
||||
// }
|
||||
|
||||
//
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user