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