cleanup x121 helper, apply all cleanup and buffers and conditions on helpers and try to complete x121 new helper ...
This commit is contained in:
@@ -106,7 +106,7 @@ struct X121XHKInputs
|
||||
//
|
||||
result =
|
||||
//
|
||||
true
|
||||
xhkSmoothingLength > 0
|
||||
//
|
||||
;
|
||||
|
||||
@@ -268,7 +268,69 @@ struct X121XHKConditions
|
||||
bearishScore = 0;
|
||||
|
||||
//
|
||||
// TODO: Implement if Required ...
|
||||
double score = 1;
|
||||
double minScore = 0.5;
|
||||
double highScore = 1.5;
|
||||
|
||||
//
|
||||
if (isSMHKBullish)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
if (isRawHKBullish)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
if (isClosedOverSMHK)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
if (isClosedOverRawHK)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
if (isRawHKClosedOverSMHK)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
if (isSMHKSwitchedToBullish)
|
||||
{
|
||||
bullishScore += highScore;
|
||||
}
|
||||
if (isRawHKSwitchedToBullish)
|
||||
{
|
||||
bullishScore += highScore;
|
||||
}
|
||||
|
||||
//
|
||||
if (isSMHKBearish)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
if (isRawHKBearish)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
if (isClosedUnderSMHK)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
if (isClosedUnderRawHK)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
if (isRawHKClosedUnderSMHK)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
if (isSMHKSwitchedToBearish)
|
||||
{
|
||||
bearishScore += highScore;
|
||||
}
|
||||
if (isRawHKSwitchedToBullish)
|
||||
{
|
||||
bearishScore += highScore;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -322,6 +384,9 @@ struct X121XHKConditions
|
||||
//
|
||||
string conditionsStr =
|
||||
//
|
||||
"-----------------------" + separator +
|
||||
"XHK: " + separator +
|
||||
"-----------------------" + separator +
|
||||
ToString("isSMHKBullish", isSMHKBullish, ignoreFalseConditions, separator) +
|
||||
ToString("isRawHKBullish", isRawHKBullish, ignoreFalseConditions, separator) +
|
||||
ToString("isSMHKSwitchedToBullish", isSMHKSwitchedToBullish, ignoreFalseConditions, separator) +
|
||||
|
||||
Reference in New Issue
Block a user