From eaf04cd81cee93638e99f9fee58359277b1d3c22 Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Sun, 7 Sep 2025 21:16:39 +0330 Subject: [PATCH] last ... --- XOM1EA/Classes/xom1ea.signaller.class.mq5 | 12 +++++++- XOM1EA/Classes/xom1ea.x-poi.drawer.class.mq5 | 30 +++++++++++++++++++- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/XOM1EA/Classes/xom1ea.signaller.class.mq5 b/XOM1EA/Classes/xom1ea.signaller.class.mq5 index 62ab63ce..78839718 100644 --- a/XOM1EA/Classes/xom1ea.signaller.class.mq5 +++ b/XOM1EA/Classes/xom1ea.signaller.class.mq5 @@ -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 ... + ); } } diff --git a/XOM1EA/Classes/xom1ea.x-poi.drawer.class.mq5 b/XOM1EA/Classes/xom1ea.x-poi.drawer.class.mq5 index a2d16537..9f378416 100644 --- a/XOM1EA/Classes/xom1ea.x-poi.drawer.class.mq5 +++ b/XOM1EA/Classes/xom1ea.x-poi.drawer.class.mq5 @@ -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();