last works on XFima Strategy 2 Signalling ...
This commit is contained in:
@@ -2685,40 +2685,47 @@ class XCMarketPatternDetector : public XCBase
|
||||
if (result)
|
||||
{
|
||||
//
|
||||
// Update Quarter ...
|
||||
UpdateZones(
|
||||
bar,
|
||||
analysis.quarterActions,
|
||||
config.quarterZonesValidationLength, // Zones Validation Length ...
|
||||
config.quarterZonesRequiredToStart, // Zones Count to Start Processing ...
|
||||
config.quarterZoneDetectionLoopback // Zones Detection Loopback ...
|
||||
);
|
||||
// Retrieve Previous Bar ...
|
||||
XOHCL pBar;
|
||||
has = bar.GetPreviousBar(pBar);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
// Update Quarter ...
|
||||
UpdateZones(
|
||||
bar,
|
||||
analysis.quarterActions,
|
||||
config.quarterZonesValidationLength, // Zones Validation Length ...
|
||||
config.quarterZonesRequiredToStart, // Zones Count to Start Processing ...
|
||||
config.quarterZoneDetectionLoopback // Zones Detection Loopback ...
|
||||
);
|
||||
|
||||
//
|
||||
// Fill Quarter Props ...
|
||||
analysis.majorSupport = majorSupport;
|
||||
analysis.minorSupport = minorSupport;
|
||||
analysis.quarter = CalculateQuarter();
|
||||
analysis.majorResistance = majorResistance;
|
||||
analysis.minorResistance = minorResistance;
|
||||
//
|
||||
// Fill Quarter Props ...
|
||||
analysis.majorSupport = majorSupport;
|
||||
analysis.minorSupport = minorSupport;
|
||||
analysis.quarter = CalculateQuarter();
|
||||
analysis.majorResistance = majorResistance;
|
||||
analysis.minorResistance = minorResistance;
|
||||
|
||||
//
|
||||
// Update To Times ...
|
||||
if (analysis.majorSupport.IsValid())
|
||||
{
|
||||
analysis.majorSupport.to = bar.time;
|
||||
}
|
||||
if (analysis.minorSupport.IsValid())
|
||||
{
|
||||
analysis.minorSupport.to = bar.time;
|
||||
}
|
||||
if (analysis.majorResistance.IsValid())
|
||||
{
|
||||
analysis.majorResistance.to = bar.time;
|
||||
}
|
||||
if (analysis.minorResistance.IsValid())
|
||||
{
|
||||
analysis.minorResistance.to = bar.time;
|
||||
//
|
||||
// Update To Times ...
|
||||
if (analysis.majorSupport.IsValid())
|
||||
{
|
||||
analysis.majorSupport.to = bar.time;
|
||||
}
|
||||
if (analysis.minorSupport.IsValid())
|
||||
{
|
||||
analysis.minorSupport.to = bar.time;
|
||||
}
|
||||
if (analysis.majorResistance.IsValid())
|
||||
{
|
||||
analysis.majorResistance.to = bar.time;
|
||||
}
|
||||
if (analysis.minorResistance.IsValid())
|
||||
{
|
||||
analysis.minorResistance.to = bar.time;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3160,7 +3167,6 @@ class XCMarketPatternDetector : public XCBase
|
||||
X_DETECTOR_ZONE_ACTION_MINOR_SUPPORT_RETESTED,
|
||||
actions //
|
||||
);
|
||||
Print("Quarter: ", quarter);
|
||||
}
|
||||
|
||||
//
|
||||
@@ -3352,7 +3358,6 @@ class XCMarketPatternDetector : public XCBase
|
||||
X_DETECTOR_ZONE_ACTION_MINOR_RESISTANCE_RETESTED,
|
||||
actions //
|
||||
);
|
||||
Print("Quarter: ", quarter);
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user