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;
}
};
//
+8 -2
View File
@@ -503,10 +503,12 @@ struct XPivot
//
bool isSupport;
int supportLength;
datetime supportTime;
//
bool isResistance;
int resistanceLength;
datetime resistanceTime;
//
@@ -598,7 +600,7 @@ struct XPivot
_symbol,
_period //
);
int maxAllowedBars = bars - 500;
int maxAllowedBars = bars / 10;
int currentLength = _supResVerificationsStep;
//
@@ -659,6 +661,7 @@ struct XPivot
{
//
supportTime = llBar.time;
supportLength = currentLength;
break;
}
}
@@ -751,7 +754,7 @@ struct XPivot
_symbol,
_period //
);
int maxAllowedBars = bars - 500;
int maxAllowedBars = bars / 10;
int currentLength = _supResVerificationsStep;
//
@@ -812,6 +815,7 @@ struct XPivot
{
//
resistanceTime = hhBar.time;
resistanceLength = currentLength;
break;
}
}
@@ -1294,6 +1298,8 @@ struct XPivot
price = 0;
//
supportLength = 0;
resistanceLength = 0;
breakedAsSupport = 0;
rejectedAsSupport = 0;
breakedAsResistance = 0;