remove xobpv signal drawing codes ...
This commit is contained in:
@@ -944,220 +944,6 @@ bool DetectX121SMCXOBPVSignalSetup(
|
|||||||
(isSameCyclesPeak ||
|
(isSameCyclesPeak ||
|
||||||
isSameCyclesVale);
|
isSameCyclesVale);
|
||||||
|
|
||||||
//
|
|
||||||
// DRAW ...
|
|
||||||
//
|
|
||||||
|
|
||||||
//
|
|
||||||
XCBaseObject *drawnObjects[];
|
|
||||||
|
|
||||||
//
|
|
||||||
if (hasBullishOrderBlocks)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
for (int i = 0; i < bullishOrderBlocksCount; i++)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
XCOrderBlock *iOb = conditions.bullishOBs[i];
|
|
||||||
|
|
||||||
//
|
|
||||||
XCBullishOrderBlockObject *iObObj;
|
|
||||||
bool isCreated = visionCycleHelper
|
|
||||||
.mPOIDrawer
|
|
||||||
.CreateBullishOrderBlock(
|
|
||||||
iOb,
|
|
||||||
iObObj //
|
|
||||||
);
|
|
||||||
if (isCreated)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
Add(
|
|
||||||
(XCBaseObject *)iObObj,
|
|
||||||
drawnObjects //
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
if (hasBearishOrderBlocks)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
for (int i = 0; i < bearishOrderBlocksCount; i++)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
XCOrderBlock *iOb = conditions.bearishOBs[i];
|
|
||||||
|
|
||||||
//
|
|
||||||
XCBearishOrderBlockObject *iObObj;
|
|
||||||
bool isCreated = visionCycleHelper
|
|
||||||
.mPOIDrawer
|
|
||||||
.CreateBearishOrderBlock(
|
|
||||||
iOb,
|
|
||||||
iObObj //
|
|
||||||
);
|
|
||||||
if (isCreated)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
Add(
|
|
||||||
(XCBaseObject *)iObObj,
|
|
||||||
drawnObjects //
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
// if (hasOldestBullishOB)
|
|
||||||
// {
|
|
||||||
// //
|
|
||||||
// XCBullishOrderBlockObject *iObj;
|
|
||||||
// bool isCreated = visionCycleHelper
|
|
||||||
// .mPOIDrawer
|
|
||||||
// .CreateBullishOrderBlock(
|
|
||||||
// oldestBullishOB,
|
|
||||||
// iObj //
|
|
||||||
// );
|
|
||||||
// if (isCreated)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// //
|
|
||||||
// if (hasYoungestBullishOB)
|
|
||||||
// {
|
|
||||||
// //
|
|
||||||
// XCBullishOrderBlockObject *iObj;
|
|
||||||
// bool isCreated = visionCycleHelper
|
|
||||||
// .mPOIDrawer
|
|
||||||
// .CreateBullishOrderBlock(
|
|
||||||
// youngestBullishOB,
|
|
||||||
// iObj //
|
|
||||||
// );
|
|
||||||
// if (isCreated)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// //
|
|
||||||
// if (hasOldestBearishOB)
|
|
||||||
// {
|
|
||||||
// //
|
|
||||||
// XCBearishOrderBlockObject *iObj;
|
|
||||||
// bool isCreated = visionCycleHelper
|
|
||||||
// .mPOIDrawer
|
|
||||||
// .CreateBearishOrderBlock(
|
|
||||||
// oldestBearishOB,
|
|
||||||
// iObj //
|
|
||||||
// );
|
|
||||||
// if (isCreated)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
// //
|
|
||||||
// if (hasYoungestBearishOB)
|
|
||||||
// {
|
|
||||||
// //
|
|
||||||
// XCBearishOrderBlockObject *iObj;
|
|
||||||
// bool isCreated = visionCycleHelper
|
|
||||||
// .mPOIDrawer
|
|
||||||
// .CreateBearishOrderBlock(
|
|
||||||
// youngestBearishOB,
|
|
||||||
// iObj //
|
|
||||||
// );
|
|
||||||
// if (isCreated)
|
|
||||||
// {
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
//
|
|
||||||
if (hasPriceInsideOB)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
bool isBullish = priceInsideOB.IsBullish();
|
|
||||||
|
|
||||||
//
|
|
||||||
bool isCreated = false;
|
|
||||||
XCBaseObject *iObObj = NULL;
|
|
||||||
if (isBullish)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
XCBullishOrderBlockObject *iObj;
|
|
||||||
isCreated = visionCycleHelper
|
|
||||||
.mPOIDrawer
|
|
||||||
.CreateBullishOrderBlock(
|
|
||||||
priceInsideOB,
|
|
||||||
iObj //
|
|
||||||
);
|
|
||||||
|
|
||||||
//
|
|
||||||
if (isCreated)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
iObj.ZoneColor(clrYellow);
|
|
||||||
iObObj = (XCBaseObject *)iObj;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
//
|
|
||||||
XCBearishOrderBlockObject *iObj;
|
|
||||||
isCreated = visionCycleHelper
|
|
||||||
.mPOIDrawer
|
|
||||||
.CreateBearishOrderBlock(
|
|
||||||
priceInsideOB,
|
|
||||||
iObj //
|
|
||||||
);
|
|
||||||
|
|
||||||
//
|
|
||||||
if (isCreated)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
iObj.ZoneColor(clrOrangeRed);
|
|
||||||
iObObj = (XCBaseObject *)iObj;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
if (isCreated)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
Add(
|
|
||||||
iObObj,
|
|
||||||
drawnObjects //
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
if (hasOBState)
|
|
||||||
{
|
|
||||||
//
|
|
||||||
XCBaseObject *stateObjects[];
|
|
||||||
int stateObjectsCount = consolidationCycleHelper
|
|
||||||
.mPOIDrawer
|
|
||||||
.DrawStateZones(
|
|
||||||
obState,
|
|
||||||
stateObjects //
|
|
||||||
);
|
|
||||||
if (IsValidSize(stateObjectsCount))
|
|
||||||
{
|
|
||||||
//
|
|
||||||
Copy(
|
|
||||||
stateObjects,
|
|
||||||
drawnObjects,
|
|
||||||
false //
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
|
||||||
int drawnCount = ArraySize(drawnObjects);
|
|
||||||
if (IsValidSize(drawnCount))
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user