add XCHSwings Indicator and it's Helper class ...

separate Symbols Based Long/Short Signal Filterings ...
This commit is contained in:
2024-08-03 18:06:14 +03:30
parent f5c6fe907e
commit 0d951775cd
8 changed files with 95275 additions and 92635 deletions
+55
View File
@@ -1163,6 +1163,61 @@ struct XOHCL
return result;
}
//
bool IsStrong(
double percent = 50 // Percent of Body
)
{
//
bool result = false;
//
result = IsValid() && Index() > 0;
if (!result)
{
return result;
}
//
result =
(GetRange() * percent) / 100 <= GetBody();
//
return result;
}
//
bool IsStrongBullish(
double percent = 50 // Percent of Body
)
{
//
bool result = false;
//
result =
IsStrong() && IsBullish();
//
return result;
}
//
bool IsStrongBearish(
double percent = 50 // Percent of Body
)
{
//
bool result = false;
//
result =
IsStrong() && IsBearish();
//
return result;
}
//
bool IsSharpBullish(
int __loopback = 2,