apply long and short 1 conditions on xch che strategy ...
This commit is contained in:
@@ -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 ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user