last works ...

This commit is contained in:
2024-07-22 12:06:42 +03:30
parent d1e8daa131
commit 3ef9cfe833
3 changed files with 486 additions and 6 deletions
+22 -3
View File
@@ -3480,13 +3480,15 @@ struct XTradeData
//
// Update Data ...
bool Update(XPosition &_position) {
bool Update(XPosition &_position)
{
//
bool result = false;
//
result = _position.IsValid();
if (!result) {
if (!result)
{
return result;
}
@@ -3654,7 +3656,7 @@ struct XTradeData
//
symbol + "\\" +
ToString(type) + "\\" +
(profit >= 0 ? "Profit" : "Loss") +
(profit >= 0 ? "Profit" : "Loss") + "\\" +
ToString(ticket) + "_" +
ToString(period) + "_" +
ToFormatString(time)
@@ -3731,6 +3733,23 @@ struct XTradeData
return result;
}
//
// There are some Controlling Situations for each Trade
// which implemented here ...
//
// Trailing Stop ....
//
bool canTrail; // Specified Position Can Trail Stop or not
//
// Reset all Trailing Configurations ....
void ResetTrail() {
//
canTrail = false;
}
//
};