add XCHSwings Indicator and it's Helper class ...
separate Symbols Based Long/Short Signal Filterings ...
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user