This commit is contained in:
2024-05-25 04:25:11 +03:30
parent 7a50508816
commit da63c4cb71
9 changed files with 3522 additions and 165 deletions
+6 -5
View File
@@ -3630,8 +3630,9 @@ MqlDateTime GetBarTimeStruct(
//
template <typename T>
bool IsSame(
T &buffer[], // Search Buffer
int count = 5 // Number of Searchs
T &buffer[], // Search Buffer
int count = 5, // Number of Searchs
int start = 0 // Start ...
)
{
//
@@ -3647,15 +3648,15 @@ bool IsSame(
//
// Validate Count ...
result = count < bufferSize;
result = start + count < bufferSize;
if (!result)
{
return result;
}
//
T iTem = buffer[0];
for (int i = 0; i < count; i++)
T iTem = buffer[start];
for (int i = start; i < start + count; i++)
{
//
if (iTem != buffer[i])