apply long and short 1 conditions on xch che strategy ...

This commit is contained in:
2024-08-23 23:40:02 +03:30
parent f52241934e
commit f21e2c13dc
2 changed files with 164 additions and 5 deletions
+47
View File
@@ -1928,6 +1928,53 @@ struct XOHCL
return result;
}
//
// Decisions ...
//
bool IsBullishDecision(
double percent = 70 // Percent of Body
)
{
//
bool result = false;
//
result =
//
IsValid() &&
Index() > 0 &&
IsBullish() &&
(GetRange() * percent) / 100 <= GetBody()
//
;
//
return result;
}
//
bool IsBearishDecision(
double percent = 70 // Percent of Body
)
{
//
bool result = false;
//
result =
//
IsValid() &&
Index() > 0 &&
IsBearish() &&
(GetRange() * percent) / 100 <= GetBody()
//
;
//
return result;
}
//
// Touches ...