This commit is contained in:
2024-07-28 02:07:07 +03:30
parent 2a85f97ad3
commit 0e3df1a494
5 changed files with 958 additions and 161 deletions
+122
View File
@@ -627,6 +627,128 @@ public:
);
}
//
// Tools ...
//
double GetMaxLongExit(
int barIndex // Bar Index
)
{
//
double result = 0;
//
double le1 = GetLongExit1(barIndex);
double le2 = GetLongExit2(barIndex);
//
if (
le1 == 0 ||
le2 == 0 ||
le1 == EMPTY_VALUE ||
le2 == EMPTY_VALUE)
{
return result;
}
//
result = MathMax(le1, le1);
//
return result;
}
//
double GetMinLongExit(
int barIndex // Bar Index
)
{
//
double result = 0;
//
double le1 = GetLongExit1(barIndex);
double le2 = GetLongExit2(barIndex);
//
if (
le1 == 0 ||
le2 == 0 ||
le1 == EMPTY_VALUE ||
le2 == EMPTY_VALUE)
{
return result;
}
//
result = MathMin(le1, le1);
//
return result;
}
//
double GetMaxShortExit(
int barIndex // Bar Index
)
{
//
double result = 0;
//
double le1 = GetShortExit1(barIndex);
double le2 = GetShortExit2(barIndex);
//
if (
le1 == 0 ||
le2 == 0 ||
le1 == EMPTY_VALUE ||
le2 == EMPTY_VALUE)
{
return result;
}
//
result = MathMax(le1, le1);
//
return result;
}
//
double GetMinShortExit(
int barIndex // Bar Index
)
{
//
double result = 0;
//
double le1 = GetShortExit1(barIndex);
double le2 = GetShortExit2(barIndex);
//
if (
le1 == 0 ||
le2 == 0 ||
le1 == EMPTY_VALUE ||
le2 == EMPTY_VALUE)
{
return result;
}
//
result = MathMin(le1, le1);
//
return result;
}
//
// Conditions ...
//
bool GetConditions(
XCHEConditions &conditions, //