This commit is contained in:
2025-04-20 05:58:24 +03:30
parent cdaefcf4a4
commit 98713a8b78
4 changed files with 754 additions and 286 deletions
+75 -1
View File
@@ -159,4 +159,78 @@
//
;
///////////////////////////////////////////////////////////////////////////////
//
iBox.to = TimeCurrent();
XCBoxObject *iObj;
has = helper.poiDrawer.DrawBox(
iBox,
iObj //
);
if (has)
{
//
iObj.BoxWidth(2);
//
color iCLR =
iBox.IsBullish()
? clrAqua
: clrMagenta;
iObj.BoxColor(iCLR);
iObj.BoxStyle(STYLE_SOLID);
}
//////////////////////////////////////////////////////////////////////////////////////
//
// COMPLEX ...
//
double iKTIRNDs[] = {
cKI,
cTKI,
cTrend //
};
//
double iKTIRNDMax = GetMax(iKTIRNDs);
double iKTIRNDMin = GetMin(iKTIRNDs);
//
// Conditions Preparing ...
//
bool isTKITRNDBullish =
cKIState > 0 &&
cTKIState > 0 &&
ctrendState > 0;
//
bool isTKITRNDBullishPrev =
pKIState > 0 &&
pTKIState > 0 &&
ptrendState > 0;
//
bool isTKITRNDBearish =
cKIState < 0 &&
cTKIState < 0 &&
ctrendState < 0;
//
bool isTKITRNDBearishPrev =
pKIState < 0 &&
pTKIState < 0 &&
ptrendState < 0;
//
bool isTKITRNDSwitchedToBullish =
isTKITRNDBullish &&
!isTKITRNDBullishPrev;
//
bool isTKITRNDSwitchedToBearish =
isTKITRNDBearish &&
!isTKITRNDBearishPrev;