last works on strategies ...

This commit is contained in:
2024-07-12 23:58:17 +03:30
parent 721c3ec5fc
commit f3118b226e
4 changed files with 260 additions and 24 deletions
+35 -1
View File
@@ -2075,7 +2075,7 @@ struct XBarTracker
int CountBars()
{
//
return Bars(
return iBars(
symbol,
period
//
@@ -2958,6 +2958,9 @@ struct XSymbolParser
//
// Forext ...
//
// Symbol Parsing ...
//
bool IsEURUSD(string symbol)
{
@@ -3245,6 +3248,37 @@ struct XSymbolParser
//
return result;
}
//
// Symbol Finder ...
string GetEURUSDSymbol() {
//
string result = NULL;
//
string symbols[];
int symbolsCount = GetAllSymbols(
symbols //
);
if (!IsValidSize(symbolsCount)) {
return result;
}
//
for (int i = 0; i < symbolsCount; i++) {
//
string iSymbol = symbols[i];
if (IsEURUSD(iSymbol)) {
//
result = iSymbol;
break;
}
}
//
return result;
}
};
//