last ...
This commit is contained in:
@@ -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 ...
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user