Files
2024-11-15 10:50:11 +03:30

61 lines
1.1 KiB
Plaintext

//
string symbol = GetSymbol();
ENUM_TIMEFRAMES period = GetPeriod();
//
int zIndex = barIndex;
int cIndex = zIndex + 1;
int pIndex = cIndex + 1;
int ppIndex = pIndex + 1;
//
bool isInited = false;
//
XOHCL zBar;
isInited = zBar.Init(
symbol,
period,
zIndex //
);
if (!isInited)
{
return result;
}
//
XOHCL cBar;
isInited = cBar.Init(
symbol,
period,
cIndex //
);
if (!isInited)
{
return result;
}
//
XOHCL pBar;
isInited = pBar.Init(
symbol,
period,
pIndex //
);
if (!isInited)
{
return result;
}
//
XOHCL ppBar;
isInited = ppBar.Init(
symbol,
period,
ppIndex //
);
if (!isInited)
{
return result;
}