last works on XBackTester ...

This commit is contained in:
2025-09-14 19:19:15 +03:30
parent c2dcbf3f32
commit 76030e2cfa
5 changed files with 1738 additions and 22 deletions
@@ -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 ...
//
+2 -2
View File
@@ -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;