Refactor all new MQL5 Version Compiling Issues ...

This commit is contained in:
2025-08-05 17:32:55 +03:30
parent f260ccc8de
commit 8f76391671
15 changed files with 419 additions and 376 deletions
+33 -29
View File
@@ -139,11 +139,11 @@ struct XGuard
//
result =
//
IsValid(time) &&
IsValid(symbol) &&
IsValid(period) &&
IsValid(action) &&
IsValid(provider)
IsSpecifiedValid(time) &&
IsSpecifiedValid(symbol) &&
IsSpecifiedValid(period) &&
IsSpecifiedValid(action) &&
IsSpecifiedValid(provider)
//
;
@@ -175,6 +175,10 @@ bool IsValid(ENUM_X_GUARD_ACTIONS item)
//
return result;
}
bool IsSpecifiedValid(ENUM_X_GUARD_ACTIONS item)
{
return IsValid(item);
}
/**
* Add Guard to Collection ...
@@ -1004,8 +1008,8 @@ class XCGuard : public XCBase
//
string message =
"Guard Closed " +
ToString(position.type) +
" Position (" + ToString(position.ticket) + ") Successfully ...";
ToXString(position.type) +
" Position (" + ToXString(position.ticket) + ") Successfully ...";
//
alert.SendAlert(message);
@@ -1069,7 +1073,7 @@ class XCGuard : public XCBase
//
string message =
"Guard Closed " +
ToString(count) +
ToXString(count) +
" Positions Successfully ...";
//
@@ -1134,7 +1138,7 @@ class XCGuard : public XCBase
//
string message =
"Guard Closed " +
ToString(count) +
ToXString(count) +
" In Lost Positions Successfully ...";
//
@@ -1199,7 +1203,7 @@ class XCGuard : public XCBase
//
string message =
"Guard Closed " +
ToString(count) +
ToXString(count) +
" In Profit Positions Successfully ...";
//
@@ -1264,7 +1268,7 @@ class XCGuard : public XCBase
//
string message =
"Guard Closed " +
ToString(count) +
ToXString(count) +
" Long Positions Successfully ...";
//
@@ -1329,7 +1333,7 @@ class XCGuard : public XCBase
//
string message =
"Guard Closed " +
ToString(count) +
ToXString(count) +
" In Lost Longs Positions Successfully ...";
//
@@ -1394,7 +1398,7 @@ class XCGuard : public XCBase
//
string message =
"Guard Closed " +
ToString(count) +
ToXString(count) +
" In Profit Longs Positions Successfully ...";
//
@@ -1476,7 +1480,7 @@ class XCGuard : public XCBase
//
string message =
"Guard Closed " +
ToString(count) +
ToXString(count) +
" In Lost Shorts Positions Successfully ...";
//
@@ -1541,7 +1545,7 @@ class XCGuard : public XCBase
//
string message =
"Guard Closed " +
ToString(count) +
ToXString(count) +
" In Profit Shorts Positions Successfully ...";
//
@@ -1619,7 +1623,7 @@ class XCGuard : public XCBase
);
//
string comment = "Guard Partially Closed: " + ToString(volume) + " ...";
string comment = "Guard Partially Closed: " + ToXString(volume) + " ...";
//
has = trader.ClosePartial(
@@ -1632,9 +1636,9 @@ class XCGuard : public XCBase
//
string message =
"Guard Closed Partially " +
ToString(volume) + " of " +
ToString(position.type) +
" Position (" + ToString(position.ticket) + ") Successfully ...";
ToXString(volume) + " of " +
ToXString(position.type) +
" Position (" + ToXString(position.ticket) + ") Successfully ...";
//
alert.SendAlert(message);
@@ -1739,10 +1743,10 @@ class XCGuard : public XCBase
//
string message =
"Guard Trail Stop " +
ToString(position.type) +
" Position (" + ToString(position.ticket) + ")" +
" From: " + ToString(before) +
"To: " + ToString(after) +
ToXString(position.type) +
" Position (" + ToXString(position.ticket) + ")" +
" From: " + ToXString(before) +
"To: " + ToXString(after) +
" Successfully ...";
//
@@ -1844,10 +1848,10 @@ class XCGuard : public XCBase
//
string message =
"Guard Trail Target " +
ToString(position.type) +
" Position (" + ToString(position.ticket) + ")" +
" From: " + ToString(before) +
"To: " + ToString(after) +
ToXString(position.type) +
" Position (" + ToXString(position.ticket) + ")" +
" From: " + ToXString(before) +
"To: " + ToXString(after) +
" Successfully ...";
//
@@ -1980,9 +1984,9 @@ class XCGuard : public XCBase
//
string message =
"Guard Hedge " +
ToString(closedCount) +
ToXString(closedCount) +
" Positions by: " +
ToString(hedgeValue) +
ToXString(hedgeValue) +
" Successfully ...";
//