fix xpv and add support for providing fractals based Supports and Resistances ...
This commit is contained in:
@@ -2041,7 +2041,7 @@ class XCTwoBarZone : public XCZone
|
||||
mType = type;
|
||||
mEndBar = endBar;
|
||||
mStartBar = startBar;
|
||||
|
||||
|
||||
//
|
||||
int startIndex = startBar.Index();
|
||||
int endIndex = endBar.Index();
|
||||
@@ -5338,6 +5338,43 @@ struct XBoxZone
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve Box Age ...
|
||||
*
|
||||
* @param forPeriod: ENUM_TIMEFRAMES member ...
|
||||
*
|
||||
* @return ( int )
|
||||
*/
|
||||
int GetAge(
|
||||
ENUM_TIMEFRAMES forPeriod = NULL //
|
||||
)
|
||||
{
|
||||
//
|
||||
int result = 0;
|
||||
|
||||
//
|
||||
if (!IsValid())
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
if (!IsValid(forPeriod))
|
||||
{
|
||||
forPeriod = period;
|
||||
}
|
||||
|
||||
//
|
||||
result = iBarShift(
|
||||
symbol,
|
||||
forPeriod,
|
||||
from //
|
||||
);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve Unique Identifier ...
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user