refactor classes constructor and deconstructors ...

This commit is contained in:
2026-01-06 22:47:58 +03:30
parent e6165f44f2
commit 0788de9660
12 changed files with 181 additions and 55 deletions
+3 -3
View File
@@ -57,7 +57,7 @@ class XCAccount : public XCBase
public:
//
// Constructor ...
void XCAccount()
XCAccount()
{
//
mAccountInfo = new CAccountInfo();
@@ -65,7 +65,7 @@ class XCAccount : public XCBase
//
// Deconstructor ...
void ~XCAccount()
~XCAccount()
{
}
@@ -376,7 +376,7 @@ class XCAccount : public XCBase
/**
* Retrieve Specified Message for Report Balance ...
*
*
* @return ( string )
*/
string GetBalanceReportMessage()
+2 -2
View File
@@ -74,13 +74,13 @@ class XCBarAnalyser : public XCBase
//
// Constructor(s) ...
void XCBarAnalyser()
XCBarAnalyser()
{
}
//
// Deconstructor ...
void ~XCBarAnalyser()
~XCBarAnalyser()
{
}
+4 -3
View File
@@ -761,13 +761,13 @@ class XCSignalObject : public XCBaseObject
//
// Constructor ...
void XCSignalObject()
XCSignalObject()
{
}
//
// Deconstructor ...
void ~XCSignalObject()
~XCSignalObject()
{
}
@@ -2150,7 +2150,8 @@ class XCPositionObject : public XCBaseObject
//
// Change Risk Style if Risk Freed Position ...
if (isRiskFreed) {
if (isRiskFreed)
{
//
riskStyle.fill = true;
riskStyle.clr = rewardStyle.clr;
+2 -2
View File
@@ -38,7 +38,7 @@ class XCBaseHelper : public XCBase
public:
//
// Constructor ...
void XCBaseHelper(
XCBaseHelper(
string symbol, // Trading Symbol
ENUM_TIMEFRAMES period // Trading Time Frame
)
@@ -50,7 +50,7 @@ class XCBaseHelper : public XCBase
//
// Deconstructor ...
void ~XCBaseHelper()
~XCBaseHelper()
{
//
IndicatorRelease(mHandler);
+3 -3
View File
@@ -46,11 +46,11 @@ class XCHttp : public XCBase
public:
//
// Constructor ...
void XCHttp()
XCHttp()
{
XCHttp("", 10000);
}
void XCHttp(
XCHttp(
string path, // Base Folder to Store Data
int timeout // base timeout for Requests
)
@@ -62,7 +62,7 @@ class XCHttp : public XCBase
//
// Deconstructor ...
void ~XCHttp()
~XCHttp()
{
}
+2 -2
View File
@@ -51,7 +51,7 @@ class XCPOIDrawer : public XCBase
//
// Constructor ...
void XCPOIDrawer()
XCPOIDrawer()
{
//
Default();
@@ -59,7 +59,7 @@ class XCPOIDrawer : public XCBase
//
// Deconstructor ...
void ~XCPOIDrawer()
~XCPOIDrawer()
{
//
boxBullishStyle.Clean();
+2 -2
View File
@@ -49,7 +49,7 @@ class XCRMPanel : public XCAppDialog
//
// Constructor(s) ...
void XCRMPanel()
XCRMPanel()
{
//
Default();
@@ -57,7 +57,7 @@ class XCRMPanel : public XCAppDialog
//
// Deconstructor ...
void ~XCRMPanel()
~XCRMPanel()
{
//
HandleRemoveObjects();
+1 -1
View File
@@ -528,7 +528,7 @@ class XCTrade : public XCBase
//
// Constructors ...
void XCTrade(
XCTrade(
int slippage, // Specify Slippage
ulong magicNumber, // Specify Magic Number
double maxAllowedSpread = 0, // Max Allowed Spred for Opening Trades