This commit is contained in:
2025-05-04 11:29:00 +03:30
parent cf3846bee9
commit 38573265e8
3 changed files with 289 additions and 1 deletions
+73 -1
View File
@@ -5595,7 +5595,7 @@ struct XBoxZone
/**
* Extract Rejection Price based on Box Direction ...
*
*
* @return ( double )
*/
double GetRejection()
@@ -5654,6 +5654,42 @@ struct XBoxZone
return result;
}
/**
* Retrieve To Bar ...
*
* @return ( bool )
*/
bool ToBar(XOHCL &bar)
{
//
bool result = false;
//
bar.Clean();
//
int idx = ToIndex();
//
result =
IsValid() &&
IsValidIndex(idx);
if (!result)
{
return result;
}
//
result = bar.Init(
symbol,
period,
idx //
);
//
return result;
}
/**
* From Bar Index ...
*
@@ -5689,6 +5725,42 @@ struct XBoxZone
return result;
}
/**
* Retrieve From Bar ...
*
* @return ( bool )
*/
bool FromBar(XOHCL &bar)
{
//
bool result = false;
//
bar.Clean();
//
int idx = FromIndex();
//
result =
IsValid() &&
IsValidIndex(idx);
if (!result)
{
return result;
}
//
result = bar.Init(
symbol,
period,
idx //
);
//
return result;
}
/**
* Retrieve Unique Identifier ...
*