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