prepare x5121 ...

This commit is contained in:
2024-05-23 08:37:53 +03:30
parent 25b027d2aa
commit a34e2351da
6 changed files with 658 additions and 186 deletions
@@ -284,3 +284,97 @@
// isPVMCSwitchedToBullish
// isPVLCSwitchedToBullish
// isPVHCSwitchedToBullish
// //
// double bullishScore = 0;
// double bearishScore = 0;
// //
// mConditions.GenerateScore(
// bullishScore,
// bearishScore //
// );
//
// result =
// //
// bullishScore < bearishScore &&
// mConditions.zigzags[prev] == mConditions.pvPeaks[prev]
// //
// ;
// //
// for (int i = 1; i < 6; i++)
// {
// //
// X121MarketConditions iConditions;
// GetMarketConditions(iConditions, i);
// //
// double iBullishScore = 0;
// double iBearishScore = 0;
// //
// iConditions.GenerateScore(
// iBullishScore,
// iBearishScore,
// 1);
// //
// bullishScore += iBullishScore;
// bearishScore += iBearishScore;
// }
// //
// result =
// //
// bearishScore > bullishScore &&
// (bullishScore < 0
// ? bearishScore > MathAbs(bullishScore)
// : bearishScore > bullishScore * 2)
// //
// ;
//
double bullishScore = 0;
double bearishScore = 0;
//
mConditions.GenerateScore(
bullishScore,
bearishScore //
);
//
result =
//
mConditions.bars[1].low == mConditions.bars[2].low &&
mConditions.bars[1].low == mConditions.pvVales[1] &&
mConditions.bars[2].low == mConditions.pvVales[2]
//
;
if (result)
{
//
Print("bullishScore: " + ToString(bullishScore));
Print("bearishScore: " + ToString(bearishScore));
//
Print(mConditions.GenerateSummary());
//
Print(mConditions.pvVales[0]);
ArrayPrint(mConditions.pvVales);
}