last works on XBackTester ...

This commit is contained in:
2025-09-15 02:05:06 +03:30
parent 76030e2cfa
commit 57b6655c98
5 changed files with 387 additions and 17 deletions
@@ -322,6 +322,46 @@ class XCChartHelper : public XCBase
return (ChartGetDouble(mChartID, CHART_PRICE_MAX, subWindow));
}
/**
* Get Chart Width in Pixel ...
*
* @param subWindow: int ...
*
* @return ( int )
*/
int Width(int subWindow = 0)
{
//
// Normalize Subwindow ...
if (subWindow <= 0)
{
subWindow = 0;
}
//
return (int)ChartGetInteger(mChartID, CHART_WIDTH_IN_PIXELS, subWindow);
}
/**
* Get Chart Height in Pixel ...
*
* @param subWindow: int ...
*
* @return ( int )
*/
int Height(int subWindow = 0)
{
//
// Normalize Subwindow ...
if (subWindow <= 0)
{
subWindow = 0;
}
//
return (int)ChartGetInteger(mChartID, CHART_HEIGHT_IN_PIXELS, subWindow);
}
//
// Protected ...
protected:
+1 -1
View File
@@ -1930,7 +1930,7 @@ class XCTrade : public XCBase
// Close a Collection of Positions ...
int Close(
XPosition &positions[], // Collection of Positions
string comment // Close Comment
string comment = NULL // Close Comment
)
{
//