This commit is contained in:
2024-11-10 01:42:59 -08:00
parent d96dc2ceb2
commit a6c94f55cc
5 changed files with 2722 additions and 6621 deletions
File diff suppressed because it is too large Load Diff
+35 -2
View File
@@ -33,7 +33,9 @@ enum ENUM_X_PRICE
X_PRICE_HIGH, X_PRICE_HIGH,
X_PRICE_OPEN, X_PRICE_OPEN,
X_PRICE_CLOSE, X_PRICE_CLOSE,
X_PRICE_LOW X_PRICE_LOW,
X_PRICE_UP,
X_PRICE_DOWN
}; };
// //
@@ -788,6 +790,14 @@ struct XOHCL
case X_PRICE_LOW: case X_PRICE_LOW:
result = low; result = low;
break; break;
//
case X_PRICE_UP:
result = GetUp();
break;
//
case X_PRICE_DOWN:
result = GetDown();
break;
} }
// //
@@ -5015,7 +5025,7 @@ struct XOHCL
// //
// Other ... // Other ...
string GetTag(string prefix) string GetTag(string prefix = "")
{ {
// //
string result = NULL; string result = NULL;
@@ -5047,6 +5057,7 @@ struct XOHCL
} }
}; };
//
struct XTrend struct XTrend
{ {
// //
@@ -13234,6 +13245,17 @@ bool IsBullish(ENUM_X_DIRECTION value)
// //
return result; return result;
} }
bool IsSpecifiedBullish(ENUM_X_DIRECTION value)
{
//
bool result = false;
//
result = value == X_DIRECTION_BULLISH;
//
return result;
}
// //
bool IsBearish(ENUM_X_DIRECTION value) bool IsBearish(ENUM_X_DIRECTION value)
@@ -13247,5 +13269,16 @@ bool IsBearish(ENUM_X_DIRECTION value)
// //
return result; return result;
} }
bool IsSpecifiedBearish(ENUM_X_DIRECTION value)
{
//
bool result = false;
//
result = value == X_DIRECTION_BEARISH;
//
return result;
}
// //
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff