last works ...
This commit is contained in:
@@ -506,7 +506,6 @@ int GetCandlestickPatterns(
|
||||
Add(X_BAR_PATTERN_TRUE_GAPED, dest);
|
||||
Add(forDir, dir);
|
||||
|
||||
|
||||
//
|
||||
result = ArraySize(dest);
|
||||
|
||||
@@ -1955,6 +1954,51 @@ struct XDirectionShift
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
bool Init(
|
||||
string _type,
|
||||
datetime _at,
|
||||
double _after,
|
||||
double _before,
|
||||
string _symbol,
|
||||
ENUM_TIMEFRAMES _period,
|
||||
ENUM_X_DIRECTION _shiftTo //
|
||||
)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
// Validate ...
|
||||
result =
|
||||
IsXValid(_at) &&
|
||||
IsXValid(_type) &&
|
||||
IsXValid(_symbol) &&
|
||||
IsXValid(_period) &&
|
||||
NotEmptyZero(_after) &&
|
||||
NotEmptyZero(_before) &&
|
||||
HasDirection(_shiftTo);
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
type = _type;
|
||||
at = _at;
|
||||
after = _after;
|
||||
before = _before;
|
||||
symbol = _symbol;
|
||||
period = _period;
|
||||
shiftTo = _shiftTo;
|
||||
|
||||
//
|
||||
result = IsValid();
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Get Bar Index of Direction Shift ...
|
||||
int Index()
|
||||
|
||||
Reference in New Issue
Block a user