last ...
This commit is contained in:
@@ -391,10 +391,15 @@ class XCXOM1SignallerBase
|
||||
double iZoneLower = MathMin(iFibUpper, iFibLower);
|
||||
|
||||
//
|
||||
// Validate MA Place ...
|
||||
has = iFast >= iZoneLower &&
|
||||
iFast <= iZoneUpper &&
|
||||
iSlow >= iZoneLower &&
|
||||
iSlow <= iZoneUpper;
|
||||
|
||||
//
|
||||
// Validate Fibo Values ...
|
||||
// TODO: ...
|
||||
}
|
||||
|
||||
//
|
||||
@@ -515,7 +520,12 @@ class XCXOM1SignallerBase
|
||||
// zones[i].UpdateByBarIndex(barIndex);
|
||||
|
||||
//
|
||||
drawer.DrawZone(zones[i], true, true);
|
||||
drawer.DrawZone(
|
||||
zones[i],
|
||||
true, // Draw Price ...
|
||||
true, // Draw Middle ...
|
||||
true // Draw From ...
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -64,7 +64,8 @@ class XCXOM1POIDrawer : public XCBase
|
||||
void DrawZone(
|
||||
XOM1Zone &zone,
|
||||
bool drawPrice = false,
|
||||
bool drawMiddle = false //
|
||||
bool drawMiddle = false,
|
||||
bool drawFrom = false //
|
||||
)
|
||||
{
|
||||
//
|
||||
@@ -163,6 +164,33 @@ class XCXOM1POIDrawer : public XCBase
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Draw From ...
|
||||
if (drawFrom)
|
||||
{
|
||||
//
|
||||
CChartObjectVLine *mLineObj;
|
||||
string mLineName = "mfl_" + ToMD5(zone.GetTag());
|
||||
mLineObj = new CChartObjectVLine();
|
||||
has = mLineObj.Create(
|
||||
mDrawer.ChartIdentification(),
|
||||
mLineName,
|
||||
mDrawer.SubWindowIdentification(),
|
||||
zone.from //
|
||||
);
|
||||
if (has)
|
||||
{
|
||||
//
|
||||
mDrawer.ApplyStyle(
|
||||
mLineObj,
|
||||
zone.dir //
|
||||
);
|
||||
|
||||
//
|
||||
mObjects.Add(mLineObj);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Clean Resources ...
|
||||
box.Clean();
|
||||
|
||||
Reference in New Issue
Block a user