cleanup x121 helper, apply all cleanup and buffers and conditions on helpers and try to complete x121 new helper ...
This commit is contained in:
@@ -329,9 +329,98 @@ struct X121XVWAPConditions
|
||||
//
|
||||
bullishScore = 0;
|
||||
bearishScore = 0;
|
||||
//
|
||||
double score = 1;
|
||||
double minScore = 0.5;
|
||||
double highScore = 1.5;
|
||||
|
||||
//
|
||||
// TODO: Implement if Required ...
|
||||
if (isVWapBullishState)
|
||||
{
|
||||
bullishScore += score;
|
||||
}
|
||||
if (isVWapBullishOrdered)
|
||||
{
|
||||
bullishScore += score;
|
||||
}
|
||||
if (isVWapSwitchedToBullishState)
|
||||
{
|
||||
bullishScore += highScore;
|
||||
}
|
||||
if (isVWapSwitchedToBullishOrdered)
|
||||
{
|
||||
bullishScore += highScore;
|
||||
}
|
||||
if (!isVWapBullishState &&
|
||||
!isVWapSwitchedToBullishState)
|
||||
{
|
||||
//
|
||||
if (isVWapFastBullish)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
if (isVWapSlowBullish)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
}
|
||||
if (!isVWapBullishOrdered &&
|
||||
!isVWapSwitchedToBullishOrdered)
|
||||
{
|
||||
//
|
||||
if (isVWapFastOverMid)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
if (isVWapMidOverSlow)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
if (isVWapBearishState)
|
||||
{
|
||||
bearishScore += score;
|
||||
}
|
||||
if (isVWapBearishOrdered)
|
||||
{
|
||||
bearishScore += score;
|
||||
}
|
||||
if (isVWapSwitchedToBearishState)
|
||||
{
|
||||
bearishScore += highScore;
|
||||
}
|
||||
if (isVWapSwitchedToBearishOrdered)
|
||||
{
|
||||
bearishScore += highScore;
|
||||
}
|
||||
if (!isVWapBearishState &&
|
||||
!isVWapSwitchedToBearishState)
|
||||
{
|
||||
//
|
||||
if (isVWapFastBearish)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
if (isVWapSlowBearish)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
}
|
||||
if (!isVWapBearishOrdered &&
|
||||
!isVWapSwitchedToBearishOrdered)
|
||||
{
|
||||
//
|
||||
if (isVWapFastUnderMid)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
if (isVWapMidUnderSlow)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -385,6 +474,9 @@ struct X121XVWAPConditions
|
||||
//
|
||||
string conditionsStr =
|
||||
//
|
||||
"-----------------------" + separator +
|
||||
"XVWAP: " + separator +
|
||||
"-----------------------" + separator +
|
||||
ToString("isVWapFastBullish", isVWapFastBullish, ignoreFalseConditions, separator) +
|
||||
ToString("isVWapFastBearish", isVWapFastBearish, ignoreFalseConditions, separator) +
|
||||
ToString("isVWapFastNeutural", isVWapFastNeutural, ignoreFalseConditions, separator) +
|
||||
|
||||
Reference in New Issue
Block a user