last works ... add new Ocillators ...

This commit is contained in:
2025-03-28 07:24:05 +03:30
parent c00704b83b
commit b2c585bc93
11 changed files with 3380 additions and 43 deletions
+12 -36
View File
@@ -34,6 +34,7 @@ struct XOHCL
double open;
double close;
double low;
long volume;
double spread;
//
@@ -112,6 +113,13 @@ struct XOHCL
);
spread = NormalizePrice(spread, mSymbol);
//
volume = iTickVolume(
mSymbol,
mPeriod,
barIndex //
);
//
bool result = IsValid();
@@ -151,40 +159,6 @@ struct XOHCL
return result;
}
//
bool Init(
string mSymbol = NULL, // Trading Symbol
ENUM_TIMEFRAMES mPeriod = NULL, // Trading Period
double mOpen = 0, // Open
double mHigh = 0, // High
double mClose = 0, // Close
double mLow = 0, // Low
datetime mTime = NULL // Bar Time
)
{
//
mSymbol = NormalizeSymbol(mSymbol);
mPeriod = NormalizePeriod(mPeriod);
//
symbol = mSymbol;
period = mPeriod;
//
int barIndex = GetBarIndex(
symbol,
period,
mTime //
);
//
return Init(
mSymbol,
mPeriod,
barIndex //
);
}
//
// Tools ...
@@ -197,6 +171,7 @@ struct XOHCL
open = 0;
close = 0;
spread = 0;
volume = 0;
//
time = NULL;
@@ -221,7 +196,8 @@ struct XOHCL
high > 0 &&
open > 0 &&
close > 0 &&
spread > 0
spread > 0 &&
volume > 0
//
;
@@ -1036,7 +1012,7 @@ struct XOHCL
IsBearish(forDir) &&
high > price &&
GetUp() < price;
//
if (forceType)
{