Bug report: mql5 class method CChartObjectCycles::Type() returns incorrect value

 

All I can find in the forum is that no technical support is provided by MetaTrader, so I'm hoping they will pick up on this bug message.


The include class CChartObjectCycles has a method Type() which now returns the value OBJ_TREND. It should, however, return the value OBJ_CYCLES.

This class is defined in the include file <ChartObjects\ChartObjectsLines.mqh>

 

Try posting here https://www.mql5.com/ru/forum/1111

On the English part the porch light is on, but there is nobody home.

 
Onno Rijkers :

All I can find in the forum is that no technical support is provided by MetaTrader, so I'm hoping they will pick up on this bug message.


The include class CChartObjectCycles has a method Type() which now returns the value OBJ_TREND. It should, however, return the value OBJ_CYCLES.

This class is defined in the include file <ChartObjects\ChartObjectsLines.mqh>

The problem was indicated by

Новая версия платформы MetaTrader 5 build 2690: Улучшения в MetaEditor
Новая версия платформы MetaTrader 5 build 2690: Улучшения в MetaEditor
  • 2020.11.23
  • www.mql5.com
В четверг 12 ноября 2020 года будет выпущена обновленная версия платформы MetaTrader 5...
 

Build 2700 - Fixed!

[data folder]\MQL5\Include\ChartObjects\ChartObjectsLines.mqh

//+------------------------------------------------------------------+
//| Class CChartObjectCycles.                                        |
//| Purpose: Class of the "Cycle lines" object of chart.             |
//|          Derives from class CChartObject.                        |
//+------------------------------------------------------------------+
class CChartObjectCycles : public CChartObject
  {
public:
                     CChartObjectCycles(void);
                    ~CChartObjectCycles(void);
   //--- method of creating the object
   bool              Create(long chart_id,const string name,const int window,
                            const datetime time1,const double price1,
                            const datetime time2,const double price2);
   //--- method of identifying the object
   virtual int       Type(void) const { return(OBJ_CYCLES); }
  };
 
Thanks guys!
Reason: