last works ...

This commit is contained in:
2026-01-07 19:53:22 +03:30
parent 31232dffef
commit 2fe1037ea5
10 changed files with 4945 additions and 2371 deletions
+45 -1
View File
@@ -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()