complete consolidation Zones ...
This commit is contained in:
@@ -207,30 +207,6 @@ class XCPOIDetector : public XCBaseAlert
|
||||
mMomentumLoopback = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Momentum Detecting Range Extend Multiplier ...
|
||||
*
|
||||
* @return ( double )
|
||||
*/
|
||||
double MomentumRangeExtendMultiplier()
|
||||
{
|
||||
return mMomentumRangeExtendMultiplier;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Momentum Detecting Range Extend Multiplier ...
|
||||
*
|
||||
* @param value: double ...
|
||||
*/
|
||||
void MomentumRangeExtendMultiplier(double value)
|
||||
{
|
||||
//
|
||||
value = NormalizeDouble(value, 1.5);
|
||||
|
||||
//
|
||||
mMomentumRangeExtendMultiplier = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Rejection Detecting Force Bar Type State ...
|
||||
*
|
||||
@@ -685,7 +661,6 @@ class XCPOIDetector : public XCBaseAlert
|
||||
|
||||
//
|
||||
MomentumLoopback(2);
|
||||
MomentumRangeExtendMultiplier(1.5);
|
||||
|
||||
//
|
||||
RejectionForceBarType(true);
|
||||
@@ -795,17 +770,17 @@ class XCPOIDetector : public XCBaseAlert
|
||||
|
||||
//
|
||||
// Rejection ...
|
||||
// DetectRejection(
|
||||
// iBar,
|
||||
// iEvent //
|
||||
// );
|
||||
DetectRejection(
|
||||
iBar,
|
||||
iEvent //
|
||||
);
|
||||
|
||||
//
|
||||
// Consolidation Zone ...
|
||||
// DetectConsolidationZone(
|
||||
// iBar,
|
||||
// iEvent //
|
||||
// );
|
||||
DetectConsolidationZone(
|
||||
iBar,
|
||||
iEvent //
|
||||
);
|
||||
|
||||
//
|
||||
// Spike ...
|
||||
@@ -967,10 +942,10 @@ class XCPOIDetector : public XCBaseAlert
|
||||
|
||||
//
|
||||
// Rejection ...
|
||||
// has = DetectRejection(
|
||||
// iBar,
|
||||
// iEvent //
|
||||
// );
|
||||
has = DetectRejection(
|
||||
iBar,
|
||||
iEvent //
|
||||
);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
@@ -982,10 +957,10 @@ class XCPOIDetector : public XCBaseAlert
|
||||
|
||||
//
|
||||
// Consolidation Zone ...
|
||||
// has = DetectConsolidationZone(
|
||||
// iBar,
|
||||
// iEvent //
|
||||
// );
|
||||
has = DetectConsolidationZone(
|
||||
iBar,
|
||||
iEvent //
|
||||
);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
@@ -1202,7 +1177,7 @@ class XCPOIDetector : public XCBaseAlert
|
||||
|
||||
//
|
||||
Copy(
|
||||
mBullishRejections,
|
||||
mBearishRejections,
|
||||
state.bearishRejections //
|
||||
);
|
||||
|
||||
@@ -1597,8 +1572,7 @@ class XCPOIDetector : public XCBaseAlert
|
||||
result = mBarAnalyser.IsMomentum(
|
||||
sBar,
|
||||
iDir,
|
||||
mMomentumLoopback,
|
||||
mMomentumRangeExtendMultiplier //
|
||||
mMomentumLoopback //
|
||||
);
|
||||
|
||||
//
|
||||
@@ -1714,10 +1688,32 @@ class XCPOIDetector : public XCBaseAlert
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
XOHCL sBar;
|
||||
if (bar.Index() == 0)
|
||||
{
|
||||
//
|
||||
result = sBar.Init(
|
||||
bar.symbol,
|
||||
bar.period,
|
||||
bar.Index() + 1 //
|
||||
);
|
||||
if (!result)
|
||||
{
|
||||
//
|
||||
sBar.Clean();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sBar = bar;
|
||||
}
|
||||
|
||||
//
|
||||
ENUM_X_DIRECTION iDir;
|
||||
result = mBarAnalyser.IsRejected(
|
||||
bar,
|
||||
sBar,
|
||||
iDir,
|
||||
mRejectionForceBarType,
|
||||
mRejectionForceFiboPressure //
|
||||
@@ -1728,6 +1724,8 @@ class XCPOIDetector : public XCBaseAlert
|
||||
HasDirection(iDir);
|
||||
if (!result)
|
||||
{
|
||||
//
|
||||
sBar.Clean();
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -1746,10 +1744,12 @@ class XCPOIDetector : public XCBaseAlert
|
||||
XCRejectionBar *rejection;
|
||||
rejection = new XCRejectionBar();
|
||||
result = rejection.Init(
|
||||
bar //
|
||||
sBar //
|
||||
);
|
||||
if (!result)
|
||||
{
|
||||
//
|
||||
sBar.Clean();
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -1761,6 +1761,8 @@ class XCPOIDetector : public XCBaseAlert
|
||||
result = !IsValidIndex(idx);
|
||||
if (!result)
|
||||
{
|
||||
//
|
||||
sBar.Clean();
|
||||
return result;
|
||||
}
|
||||
|
||||
@@ -1819,10 +1821,32 @@ class XCPOIDetector : public XCBaseAlert
|
||||
//
|
||||
state = X_POI_EVENT_NONE;
|
||||
|
||||
//
|
||||
XOHCL sBar;
|
||||
if (bar.Index() == 0)
|
||||
{
|
||||
//
|
||||
result = sBar.Init(
|
||||
bar.symbol,
|
||||
bar.period,
|
||||
bar.Index() + 1 //
|
||||
);
|
||||
if (!result)
|
||||
{
|
||||
//
|
||||
sBar.Clean();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
sBar = bar;
|
||||
}
|
||||
|
||||
//
|
||||
XConsolidationZone cZone;
|
||||
result = mBarAnalyser.HasConsolidationZone(
|
||||
bar,
|
||||
sBar,
|
||||
cZone,
|
||||
mConsolidationZoneMinLoopback,
|
||||
mConsolidationZoneRangeInPoint,
|
||||
@@ -1832,6 +1856,7 @@ class XCPOIDetector : public XCBaseAlert
|
||||
if (!result)
|
||||
{
|
||||
//
|
||||
sBar.Clean();
|
||||
cZone.Clean();
|
||||
|
||||
//
|
||||
@@ -1854,6 +1879,7 @@ class XCPOIDetector : public XCBaseAlert
|
||||
if (!result)
|
||||
{
|
||||
//
|
||||
sBar.Clean();
|
||||
cZone.Clean();
|
||||
|
||||
//
|
||||
@@ -3069,11 +3095,10 @@ class XCPOIDetector : public XCBaseAlert
|
||||
|
||||
//
|
||||
// Momentums ...
|
||||
XCMomentumBar *mMomentums[]; // Holds Founded Momentum Bars ...
|
||||
XCMomentumBar *mBullishMomentums[]; // Holds Founded Bullish Momentum Bars ...
|
||||
XCMomentumBar *mBearishMomentums[]; // Holds Founded Bearish Momentum Bars ...
|
||||
int mMomentumLoopback; // Momentum Detecting Loopback ...
|
||||
double mMomentumRangeExtendMultiplier; // Momentum Detecting Range Extend Multiplier ...
|
||||
XCMomentumBar *mMomentums[]; // Holds Founded Momentum Bars ...
|
||||
XCMomentumBar *mBullishMomentums[]; // Holds Founded Bullish Momentum Bars ...
|
||||
XCMomentumBar *mBearishMomentums[]; // Holds Founded Bearish Momentum Bars ...
|
||||
int mMomentumLoopback; // Momentum Detecting Loopback ...
|
||||
|
||||
//
|
||||
// Rejections ...
|
||||
|
||||
Reference in New Issue
Block a user