cleanup x121 helper, apply all cleanup and buffers and conditions on helpers and try to complete x121 new helper ...
This commit is contained in:
@@ -303,7 +303,97 @@ struct X121XVOLUMEConditions
|
||||
bearishScore = 0;
|
||||
|
||||
//
|
||||
// TODO: Implement if Required ...
|
||||
double score = 1;
|
||||
double minScore = 0.5;
|
||||
double highScore = 1.5;
|
||||
|
||||
//
|
||||
if (isBullishVolumeOverMa)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
if (isBearishVolumeUnderMa)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
if (isBullishVolumeIncreased)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
if (isBearishVolumeDecreased)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
if (isBullishVolumeMaOverBearishVolumeMa)
|
||||
{
|
||||
bullishScore += minScore;
|
||||
}
|
||||
|
||||
//
|
||||
if (isVolumeSwitchedToBullish)
|
||||
{
|
||||
bullishScore += score;
|
||||
}
|
||||
if (isBullishVolumeCrossedOverMa)
|
||||
{
|
||||
bullishScore += score;
|
||||
}
|
||||
if (isBearishVolumeCrossedUnderMa)
|
||||
{
|
||||
bullishScore += score;
|
||||
}
|
||||
if (isBullishVolumeSwitchedToIncreased)
|
||||
{
|
||||
bullishScore += score;
|
||||
}
|
||||
if (isBearishVolumeSwitchedToDecreased)
|
||||
{
|
||||
bullishScore += score;
|
||||
}
|
||||
|
||||
//
|
||||
if (isBearishVolumeOverMa)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
if (isBullishVolumeUnderMa)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
if (isBullishVolumeDecreased)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
if (isBearishVolumeIncreased)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
if (isBullishVolumeMaUnderBearishVolumeMa)
|
||||
{
|
||||
bearishScore += minScore;
|
||||
}
|
||||
|
||||
//
|
||||
if (isVolumeSwitchedToBearish)
|
||||
{
|
||||
bearishScore += score;
|
||||
}
|
||||
if (isBearishVolumeCrossedOverMa)
|
||||
{
|
||||
bearishScore += score;
|
||||
}
|
||||
if (isBullishVolumeCrossedUnderMa)
|
||||
{
|
||||
bearishScore += score;
|
||||
}
|
||||
if (isBullishVolumeSwitchedToDecreased)
|
||||
{
|
||||
bearishScore += score;
|
||||
}
|
||||
if (isBearishVolumeSwitchedToIncreased)
|
||||
{
|
||||
bearishScore += score;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -357,6 +447,29 @@ struct X121XVOLUMEConditions
|
||||
//
|
||||
string conditionsStr =
|
||||
//
|
||||
"-----------------------" + separator +
|
||||
"XVOLUME: " + separator +
|
||||
"-----------------------" + separator +
|
||||
ToString("isBullishVolumeOverMa", isBullishVolumeOverMa, ignoreFalseConditions, separator) +
|
||||
ToString("isBullishVolumeCrossedOverMa", isBullishVolumeCrossedOverMa, ignoreFalseConditions, separator) +
|
||||
ToString("isBullishVolumeUnderMa", isBullishVolumeUnderMa, ignoreFalseConditions, separator) +
|
||||
ToString("isBullishVolumeCrossedUnderMa", isBullishVolumeCrossedUnderMa, ignoreFalseConditions, separator) +
|
||||
ToString("isBullishVolumeIncreased", isBullishVolumeIncreased, ignoreFalseConditions, separator) +
|
||||
ToString("isBullishVolumeSwitchedToIncreased", isBullishVolumeSwitchedToIncreased, ignoreFalseConditions, separator) +
|
||||
ToString("isBullishVolumeDecreased", isBullishVolumeDecreased, ignoreFalseConditions, separator) +
|
||||
ToString("isBullishVolumeSwitchedToDecreased", isBullishVolumeSwitchedToDecreased, ignoreFalseConditions, separator) +
|
||||
ToString("isBearishVolumeOverMa", isBearishVolumeOverMa, ignoreFalseConditions, separator) +
|
||||
ToString("isBearishVolumeCrossedOverMa", isBearishVolumeCrossedOverMa, ignoreFalseConditions, separator) +
|
||||
ToString("isBearishVolumeUnderMa", isBearishVolumeUnderMa, ignoreFalseConditions, separator) +
|
||||
ToString("isBearishVolumeCrossedUnderMa", isBearishVolumeCrossedUnderMa, ignoreFalseConditions, separator) +
|
||||
ToString("isBearishVolumeIncreased", isBearishVolumeIncreased, ignoreFalseConditions, separator) +
|
||||
ToString("isBearishVolumeSwitchedToIncreased", isBearishVolumeSwitchedToIncreased, ignoreFalseConditions, separator) +
|
||||
ToString("isBearishVolumeDecreased", isBearishVolumeDecreased, ignoreFalseConditions, separator) +
|
||||
ToString("isBearishVolumeSwitchedToDecreased", isBearishVolumeSwitchedToDecreased, ignoreFalseConditions, separator) +
|
||||
ToString("isVolumeSwitchedToBullish", isVolumeSwitchedToBullish, ignoreFalseConditions, separator) +
|
||||
ToString("isVolumeSwitchedToBearish", isVolumeSwitchedToBearish, ignoreFalseConditions, separator) +
|
||||
ToString("isBullishVolumeMaOverBearishVolumeMa", isBullishVolumeMaOverBearishVolumeMa, ignoreFalseConditions, separator) +
|
||||
ToString("isBullishVolumeMaUnderBearishVolumeMa", isBullishVolumeMaUnderBearishVolumeMa, ignoreFalseConditions, separator) +
|
||||
//
|
||||
""
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user