last works ...

This commit is contained in:
2025-04-09 04:47:56 +03:30
parent 5eab321741
commit 031c5f3462
13 changed files with 5541 additions and 557 deletions
+87
View File
@@ -5301,18 +5301,35 @@ struct XBoxZone
return result;
}
/**
* Check Box is Bullish or not ...
*
* @return ( bool )
*/
bool IsBullish()
{
return IsValid() &&
IsBullish(dir);
}
/**
* Check Box is Bearish or not ...
*
* @return ( bool )
*/
bool IsBearish()
{
return IsValid() &&
IsBearish(dir);
}
/**
* Check Box is Same as Other ...
*
* @param item: XBoxZone instance Resource ...
*
* @return ( bool )
*/
bool IsSameAs(XBoxZone &item)
{
//
@@ -5364,6 +5381,76 @@ struct XBoxZone
return result;
}
/**
* To Bar Index ...
*
* @return ( int )
*/
int ToIndex(
ENUM_TIMEFRAMES forPeriod = NULL //
)
{
//
int result = -1;
//
if (!IsValid())
{
return result;
}
//
if (!IsValid(forPeriod))
{
forPeriod = period;
}
//
result = GetBarIndex(
symbol,
forPeriod,
to //
);
//
return result;
}
/**
* From Bar Index ...
*
* @return ( int )
*/
int FromIndex(
ENUM_TIMEFRAMES forPeriod = NULL //
)
{
//
int result = -1;
//
if (!IsValid())
{
return result;
}
//
if (!IsValid(forPeriod))
{
forPeriod = period;
}
//
result = GetBarIndex(
symbol,
forPeriod,
from //
);
//
return result;
}
/**
* Retrieve Unique Identifier ...
*