This commit is contained in:
2024-12-30 03:08:21 +03:30
parent b5003968bc
commit 4094a92949
9 changed files with 833 additions and 267 deletions
+48 -2
View File
@@ -2466,7 +2466,7 @@ struct XOHCL
}
//
// Find Lowest Bar Index ...
// Find Highest Bar Index ...
int FindHighestIndex(
int mLength, // Loopback ...
ENUM_SERIESMODE mMode // Calculation mode
@@ -2500,7 +2500,7 @@ struct XOHCL
}
//
// Find Lowest ...
// Find Highest ...
double FindHighest(
int mLength, // Loopback ...
ENUM_SERIESMODE mMode // Calculation mode
@@ -2544,6 +2544,29 @@ struct XOHCL
return result;
}
//
// Find Highest ...
double FindHighestUp(
int mLength // Loopback ...
)
{
//
double result = 0;
//
if (!IsValid())
{
return result;
}
//
result = FindHighest(mLength, MODE_OPEN);
result = MathMax(mLength, FindHighest(mLength, MODE_CLOSE));
//
return result;
}
//
// Find Lowest Bar Index ...
int FindLowestIndex(
@@ -2623,6 +2646,29 @@ struct XOHCL
return result;
}
//
// Find Lowest ...
double FindLowesttDown(
int mLength // Loopback ...
)
{
//
double result = 0;
//
if (!IsValid())
{
return result;
}
//
result = FindLowest(mLength, MODE_OPEN);
result = MathMax(mLength, FindLowest(mLength, MODE_CLOSE));
//
return result;
}
//
// Retrieve Bullish Pressure ...
double GetBullishPressure(
+8
View File
@@ -2544,6 +2544,10 @@ class XCTickZone : public CObject
public:
//
// Props ...
string symbol;
ENUM_TIMEFRAMES period;
//
double high;
double low;
int ticks;
@@ -2780,6 +2784,10 @@ class XCTicksZone : public XCTwoBarZone
// Instance a New Zone ...
XCTickZone *iZone = new XCTickZone();
//
iZone.symbol = symbol;
iZone.period = period;
//
// Calculate Each Zones High / Low based on Range ...
double iH = mRangeHigh - mRangeSize * i / Levels();