Last ...
This commit is contained in:
@@ -1301,6 +1301,29 @@ class XCSwing : public XCBasePOI
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Time of Swing ...
|
||||
*
|
||||
* @return ( datetime )
|
||||
*/
|
||||
datetime GetTime()
|
||||
{
|
||||
//
|
||||
datetime result = NULL;
|
||||
|
||||
//
|
||||
if (!IsValid() || !mBar.IsValid())
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
result = mBar.time;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
ENUM_TIMEFRAMES GetPeriod()
|
||||
{
|
||||
//
|
||||
@@ -3761,7 +3784,6 @@ struct XPOIState
|
||||
//
|
||||
};
|
||||
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
@@ -4092,6 +4114,78 @@ struct XPVPivot
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check Price in Premium or not ...
|
||||
*
|
||||
* @return ( bool )
|
||||
*/
|
||||
bool IsPriceInPremium()
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
result = IsValid();
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
double ask = GetAsk(symbol);
|
||||
double bid = GetBid(symbol);
|
||||
|
||||
//
|
||||
double mid = CalculateMid();
|
||||
|
||||
//
|
||||
result =
|
||||
//
|
||||
ask > mid &&
|
||||
bid > mid
|
||||
//
|
||||
;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check Price in Discount or not ...
|
||||
*
|
||||
* @return ( bool )
|
||||
*/
|
||||
bool IsPriceInDiscount()
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
result = IsValid();
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
double ask = GetAsk(symbol);
|
||||
double bid = GetBid(symbol);
|
||||
|
||||
//
|
||||
double mid = CalculateMid();
|
||||
|
||||
//
|
||||
result =
|
||||
//
|
||||
ask > mid &&
|
||||
bid > mid
|
||||
//
|
||||
;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
/**
|
||||
@@ -5512,6 +5606,9 @@ void DetectPivotPOIs(
|
||||
bool isInside = iBar.high <= pivot.upper;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
// iSwing.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iSwing,
|
||||
@@ -5548,6 +5645,9 @@ void DetectPivotPOIs(
|
||||
bool isInside = iBar.low >= pivot.lower;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
// iSwing.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iSwing,
|
||||
@@ -5581,6 +5681,9 @@ void DetectPivotPOIs(
|
||||
iZone.Lower() >= pivot.lower;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
iZone.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iZone,
|
||||
@@ -5611,6 +5714,9 @@ void DetectPivotPOIs(
|
||||
iZone.Lower() >= pivot.lower;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
iZone.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iZone,
|
||||
@@ -5644,6 +5750,9 @@ void DetectPivotPOIs(
|
||||
iZone.Lower() >= pivot.lower;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
iZone.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iZone,
|
||||
@@ -5674,6 +5783,9 @@ void DetectPivotPOIs(
|
||||
iZone.Lower() >= pivot.lower;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
iZone.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iZone,
|
||||
@@ -5707,6 +5819,9 @@ void DetectPivotPOIs(
|
||||
iZone.Lower() >= pivot.lower;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
iZone.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iZone,
|
||||
@@ -5737,6 +5852,9 @@ void DetectPivotPOIs(
|
||||
iZone.Lower() >= pivot.lower;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
iZone.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iZone,
|
||||
@@ -5770,6 +5888,9 @@ void DetectPivotPOIs(
|
||||
iZone.Lower() >= pivot.lower;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
iZone.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iZone,
|
||||
@@ -5800,6 +5921,9 @@ void DetectPivotPOIs(
|
||||
iZone.Lower() >= pivot.lower;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
iZone.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iZone,
|
||||
@@ -5840,6 +5964,9 @@ void DetectPivotPOIs(
|
||||
iBar.low >= pivot.lower;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
iRejection.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iRejection,
|
||||
@@ -5877,6 +6004,9 @@ void DetectPivotPOIs(
|
||||
iBar.high >= pivot.lower;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
iRejection.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iRejection,
|
||||
@@ -5917,6 +6047,9 @@ void DetectPivotPOIs(
|
||||
iBar.low >= pivot.lower;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
iMomentum.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iMomentum,
|
||||
@@ -5954,6 +6087,9 @@ void DetectPivotPOIs(
|
||||
iBar.high >= pivot.lower;
|
||||
if (isInside)
|
||||
{
|
||||
//
|
||||
iMomentum.To(pivot.to);
|
||||
|
||||
//
|
||||
Add(
|
||||
iMomentum,
|
||||
|
||||
Reference in New Issue
Block a user