complete XCA Indicator, implements it's Helper and Add all Conditions, and also rename XSTRCCI tProject o XCAEA and only use XCA and XOSC inside it ...
This commit is contained in:
@@ -1049,6 +1049,46 @@ struct XOHCL
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
bool IsBreaked(
|
||||
double price,
|
||||
ENUM_X_DIRECTION forDir //
|
||||
)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
result = IsValid() &&
|
||||
price > 0 &&
|
||||
HasDirection(forDir);
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
bool isBullish =
|
||||
IsBullish() &&
|
||||
IsBullish(forDir) &&
|
||||
close > price &&
|
||||
open < price;
|
||||
|
||||
//
|
||||
bool isBearish =
|
||||
IsBearish() &&
|
||||
IsBearish(forDir) &&
|
||||
close < price &&
|
||||
open > price;
|
||||
|
||||
//
|
||||
result = isBullish ||
|
||||
isBearish;
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
// Find Highest Bar Index ...
|
||||
int FindHighestIndex(
|
||||
|
||||
Reference in New Issue
Block a user