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
+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;