last works on XBackTester ...
This commit is contained in:
@@ -570,6 +570,25 @@ double NormalizePrice(
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalize Chart Id ...
|
||||
*
|
||||
* @param _chartId: ulong
|
||||
*
|
||||
* @return ( ulong )
|
||||
*/
|
||||
ulong NormalizeChartId(ulong _chartId = 0)
|
||||
{
|
||||
//
|
||||
if (_chartId <= 0)
|
||||
{
|
||||
_chartId = ChartID();
|
||||
}
|
||||
|
||||
//
|
||||
return _chartId;
|
||||
}
|
||||
|
||||
//
|
||||
// END Normalizations ...
|
||||
//
|
||||
|
||||
@@ -4248,7 +4248,7 @@ int GetYoungest(
|
||||
|
||||
//
|
||||
int iAge = GetAge(iItem);
|
||||
if (iAge > 0 &&
|
||||
if (iAge >= 0 &&
|
||||
(tmpAge == 0 || tmpAge > iAge))
|
||||
{
|
||||
//
|
||||
@@ -4258,7 +4258,7 @@ int GetYoungest(
|
||||
}
|
||||
|
||||
//
|
||||
if (tmpAge > 0)
|
||||
if (tmpAge >= 0)
|
||||
{
|
||||
//
|
||||
result = tmpAge;
|
||||
|
||||
Reference in New Issue
Block a user