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