cleanup x121 helper, apply all cleanup and buffers and conditions on helpers and try to complete x121 new helper ...
This commit is contained in:
@@ -204,7 +204,7 @@ struct X121XPVInputs
|
||||
// Boundary Detection ...
|
||||
hhMode = MODE_HIGH;
|
||||
llMode = MODE_LOW;
|
||||
goldenZoneLevel = X_FIBO_LEVEL_382;
|
||||
goldenZoneLevel = X_FIBO_LEVEL_236;
|
||||
|
||||
//
|
||||
sarStep = 0.02;
|
||||
@@ -441,7 +441,29 @@ struct X121XPVConditions
|
||||
bearishScore = 0;
|
||||
|
||||
//
|
||||
// TODO: Implement if Required ...
|
||||
double score = 1;
|
||||
double minScore = 0.5;
|
||||
double highScore = 1.5;
|
||||
|
||||
//
|
||||
if (isSarBullish)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
if (isSarSwitchedToBullish)
|
||||
{
|
||||
bullishScore += score;
|
||||
}
|
||||
|
||||
//
|
||||
if (isSarBearish)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
if (isSarSwitchedToBearish)
|
||||
{
|
||||
bearishScore += score;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -495,6 +517,9 @@ struct X121XPVConditions
|
||||
//
|
||||
string conditionsStr =
|
||||
//
|
||||
"-----------------------" + separator +
|
||||
"XPV: " + separator +
|
||||
"-----------------------" + separator +
|
||||
ToString("isSarBullish", isSarBullish, ignoreFalseConditions, separator) +
|
||||
ToString("isSarBearish", isSarBearish, ignoreFalseConditions, separator) +
|
||||
ToString("isSarSwitchedToBullish", isSarSwitchedToBullish, ignoreFalseConditions, separator) +
|
||||
|
||||
Reference in New Issue
Block a user