No sé qué ha pasado con mi mensaje anterior (era sobre CChartObject::Fill(const bool new_fill) ...) Pero publica más de tu código donde realmente llamas a esto para crear tu rectángulo.
honest_knave: No sé qué acaba de pasar con mi post anterior (era sobre CChartObject::Fill(const bool new_fill) ...) Pero publica más de tu código donde realmente llamas a esto para crear tu rectángulo.
Claro, aquí está:
//+------------------------------------------------------------------+//| ChartObjectsShapes.mqh |//| Copyright 2009-2013, MetaQuotes Software Corp. |//| https://www.mql5.com |//+------------------------------------------------------------------+//| All shapes. |//+------------------------------------------------------------------+#include "ChartObject.mqh"//+------------------------------------------------------------------+//| Class CChartObjectRectangle. |//| Purpose: Class of the "Rectangle" object of chart. |//| Derives from class CChartObject. |//+------------------------------------------------------------------+class CChartObjectRectangle : public CChartObject
{
public:
CChartObjectRectangle(void);
~CChartObjectRectangle(void);
//--- method of creating the objectbool Create(long chart_id,conststring name,constint window,
constdatetime time1,constdouble price1,
constdatetime time2,constdouble price2);
//--- method of identifying the objectvirtualint Type(void) const { return(OBJ_RECTANGLE); }
};
//+------------------------------------------------------------------+//| Constructor |//+------------------------------------------------------------------+
CChartObjectRectangle::CChartObjectRectangle(void)
{
}
//+------------------------------------------------------------------+//| Destructor |//+------------------------------------------------------------------+
CChartObjectRectangle::~CChartObjectRectangle(void)
{
}
+------------------------------------------------------------------+
//| Create object "Rectangle" |//+------------------------------------------------------------------+bool CChartObjectRectangle::Create(long chart_id,conststring name,constint window,
constdatetime time1,constdouble price1,
constdatetime time2,constdouble price2)
{
if(!ObjectCreate(chart_id,name,OBJ_RECTANGLE,window,time1,price1,time2,price2))
return(false);
ObjectSetInteger(chart_id,name,OBJPROP_FILL,true);
if(!Attach(chart_id,name,window,2))
return(false);
//--- successfulreturn(true);
}
//+------------------------------------------------------------------+//| Class CChartObjectTriangle. |//| Purpose: Class of the "Triangle" object of chart. |//| Derives from class CChartObject. |//+------------------------------------------------------------------+class CChartObjectTriangle : public CChartObject
{
public:
CChartObjectTriangle(void);
~CChartObjectTriangle(void);
//--- method of creating the objectbool Create(long chart_id,conststring name,constint window,
constdatetime time1,constdouble price1,
constdatetime time2,constdouble price2,
constdatetime time3,constdouble price3);
//--- method of identifying the objectvirtualint Type(void) const { return(OBJ_TRIANGLE); }
};
//+------------------------------------------------------------------+//| Constructor |//+------------------------------------------------------------------+
CChartObjectTriangle::CChartObjectTriangle(void)
{
}
//+------------------------------------------------------------------+//| Destructor |//+------------------------------------------------------------------+
CChartObjectTriangle::~CChartObjectTriangle(void)
{
}
//+------------------------------------------------------------------+//| Create object "Triangle" |//+------------------------------------------------------------------+bool CChartObjectTriangle::Create(long chart_id,conststring name,constint window,
constdatetime time1,constdouble price1,
constdatetime time2,constdouble price2,
constdatetime time3,constdouble price3)
{
if(!ObjectCreate(chart_id,name,OBJ_TRIANGLE,window,time1,price1,time2,price2,time3,price3))
return(false);
if(!Attach(chart_id,name,window,3))
return(false);
//--- successfulreturn(true);
}
//+------------------------------------------------------------------+//| Class CChartObjectEllipse. |//| Purpose: Class of the "Ellipse" object of chart. |//| Derives from class CChartObject. |//+------------------------------------------------------------------+class CChartObjectEllipse : public CChartObject
{
public:
CChartObjectEllipse(void);
~CChartObjectEllipse(void);
//--- method of creating the objectbool Create(long chart_id,conststring name,constint window,
constdatetime time1,constdouble price1,
constdatetime time2,constdouble price2,
constdatetime time3,constdouble price3);
//--- method of identifying the objectvirtualint Type(void) const { return(OBJ_ELLIPSE); }
};
//+------------------------------------------------------------------+//| Constructor |//+------------------------------------------------------------------+
CChartObjectEllipse::CChartObjectEllipse(void)
{
}
//+------------------------------------------------------------------+//| Destructor |//+------------------------------------------------------------------+
CChartObjectEllipse::~CChartObjectEllipse(void)
{
}
//+------------------------------------------------------------------+//| Create object "Ellipse" |//+------------------------------------------------------------------+bool CChartObjectEllipse::Create(long chart_id,conststring name,constint window,
constdatetime time1,constdouble price1,
constdatetime time2,constdouble price2,
constdatetime time3,constdouble price3)
{
if(!ObjectCreate(chart_id,name,OBJ_ELLIPSE,window,time1,price1,time2,price2,time3,price3))
return(false);
if(!Attach(chart_id,name,window,3))
return(false);
//--- successfulreturn(true);
}
//+------------------------------------------------------------------+
Debes estar añadiendo un indicador/EA/script a tu gráfico para dibujar estos rectángulos con los que estás teniendo problemas... necesitamos ver el contenido de eso.
Me temo que no tenemos ni idea de cómo se llama eso. También sospecho que el archivo no utilizará ese archivo de inclusión... ¡pero ya veremos!
Pero publica más de tu código donde realmente llamas a esto para crear tu rectángulo.
No sé qué acaba de pasar con mi post anterior (era sobre CChartObject::Fill(const bool new_fill) ...)
Pero publica más de tu código donde realmente llamas a esto para crear tu rectángulo.
Claro, aquí está:
Creo que me has entendido mal... esto es un archivo de inclusión.
En algún otro lugar estarás llamando a estas cosas para crear cosas... por ejemplo, rect
Querrás usar algo como rect.Fill(true)
Creo que me has entendido mal... esto es un archivo de inclusión.
En algún otro lugar estarás llamando a estas cosas para crear cosas... por ejemplo, rect
Querrás usar algo como rect.Fill(true)
Por favor, edita tu post y utiliza el botón SRC para tu código.
Tienes que ayudarnos a ayudarte. Este es un archivo de inclusión estándar.
Necesitamos ver su indicador/EA donde se utiliza realmente este material.
Sólo vemos una parte de la imagen... ¡y no la correcta!
Tienes que ayudarnos a ayudarte. Este es un archivo de inclusión estándar.
Necesitamos ver su indicador/EA donde se utiliza realmente este material.
Sólo vemos una parte de la imagen... ¡y no la correcta!
Debes estar añadiendo un indicador/EA/script a tu gráfico para dibujar estos rectángulos con los que estás teniendo problemas... necesitamos ver el contenido de eso.
Me temo que no tenemos ni idea de cómo se llama eso. También sospecho que el archivo no utilizará ese archivo de inclusión... ¡pero ya veremos!
Esto es todo lo que veo...