last works on XBackTester ...
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
)
|
||||
{
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user