last works ...

This commit is contained in:
2024-05-24 11:46:15 +03:30
parent dc4ee66b83
commit 7a50508816
10 changed files with 1515 additions and 567 deletions
+6 -62
View File
@@ -578,10 +578,6 @@ public:
//
// Init On Trade Context ...
InitOnTradeContext();
//
// Sync Position Infos ...
SyncPositionInfos();
}
//
@@ -1116,6 +1112,11 @@ public:
return result;
}
//
// Prepare Signal Comment ...
string mSComment = mSignal.GenerateComment();
mSignal.comment += mSComment;
//
// Handle Market Execution ...
if (mSignal.mode == X_ORDER_MODE_MARKET)
@@ -1739,7 +1740,7 @@ public:
//
// Check Position Open ...
result = !IsOpen(ticket);
result = IsOpen(ticket);
if (!result)
{
return result;
@@ -3240,63 +3241,6 @@ private:
//
// Position Info Collector ...
//
XSCPositionInfoCollector mPositionInfoCollector; // Position Info Data Collector ...
//
void SyncPositionInfos()
{
//
// TODO: Complete this ...
//
// Read All Stored Positions ...
// XPositionInfo infos[];
// int infosCount = mPositionInfoCollector.Collect(infos);
// //
// // Clear Store ...
// mPositionInfoCollector.Clear();
// //
// XPosition positions[];
// int positionsCount = GetPositions(positions);
// if (positionsCount <= 0)
// {
// Clean(infos);
// }
// //
// // Now we Have to Find each Position Info inside Positions and Update them ...
// XPositionInfo datas[];
// for (int i = 0; i < infosCount; i++)
// {
// //
// XPositionInfo iInfo = infos[i];
// //
// // Check Positions Contains Specific ticket or not ...
// for (int j = 0; j < positionsCount; j++)
// {
// //
// XPosition jPosition = positions[j];
// //
// if (jPosition.ticket != iInfo.ticket)
// {
// //
// // this is a Position which is not listed in Collector ...
// }
// else
// {
// //
// // Now we have a Position which Listed Before in Collector ...
// // we Have to Update it ...
// }
// }
// }
}
//
// Tools ...