MT4'te Dolgulu Dikdörtgenler - sayfa 2

 
Önceki gönderime ne olduğunu bilmiyorum ( CChartObject::Fill (const bool new_fill) ile ilgiliydi ...)
Ancak, dikdörtgeninizi oluşturmak için bunu gerçekten aradığınız yere kodunuzun daha fazlasını gönderin.
 
honest_knave :
Önceki gönderime ne olduğunu bilmiyorum (CChartObject::Fill(const bool new_fill) ile ilgiliydi ...)
Ancak, dikdörtgeninizi oluşturmak için bunu gerçekten aradığınız yere kodunuzun daha fazlasını gönderin.

Kesin burada:


   //+------------------------------------------------------------------+

//|                                           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 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_RECTANGLE ); }

  };

//+------------------------------------------------------------------+

//| Constructor                                                      |

//+------------------------------------------------------------------+

CChartObjectRectangle::CChartObjectRectangle( void )

  {

  }

//+------------------------------------------------------------------+

//| Destructor                                                       |

//+------------------------------------------------------------------+

CChartObjectRectangle::~CChartObjectRectangle( void )

  {

  }

  +------------------------------------------------------------------+

//| Create object "Rectangle"                                        |

//+------------------------------------------------------------------+

bool CChartObjectRectangle::Create( long chart_id, const string name, const int window,

                                   const datetime time1, const double price1,

                                   const datetime time2, const double 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 );

//--- successful

   return ( 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 object

   bool               Create( long chart_id, const string name, const int window,

                             const datetime time1, const double price1,

                             const datetime time2, const double price2,

                             const datetime time3, const double price3);

   //--- method of identifying the object

   virtual int        Type( void ) const { return ( OBJ_TRIANGLE ); }

  };

//+------------------------------------------------------------------+

//| Constructor                                                      |

//+------------------------------------------------------------------+

CChartObjectTriangle::CChartObjectTriangle( void )

  {

  }

//+------------------------------------------------------------------+

//| Destructor                                                       |

//+------------------------------------------------------------------+

CChartObjectTriangle::~CChartObjectTriangle( void )

  {

  }

//+------------------------------------------------------------------+

//| Create object "Triangle"                                         |

//+------------------------------------------------------------------+

bool CChartObjectTriangle::Create( long chart_id, const string name, const int window,

                                   const datetime time1, const double price1,

                                   const datetime time2, const double price2,

                                   const datetime time3, const double 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 );

//--- successful

   return ( 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 object

   bool               Create( long chart_id, const string name, const int window,

                             const datetime time1, const double price1,

                             const datetime time2, const double price2,

                             const datetime time3, const double price3);

   //--- method of identifying the object

   virtual int        Type( void ) const { return ( OBJ_ELLIPSE ); }

  };

//+------------------------------------------------------------------+

//| Constructor                                                      |

//+------------------------------------------------------------------+

CChartObjectEllipse::CChartObjectEllipse( void )

  {

  }

//+------------------------------------------------------------------+

//| Destructor                                                       |

//+------------------------------------------------------------------+

CChartObjectEllipse::~CChartObjectEllipse( void )

  {

  }

//+------------------------------------------------------------------+

//| Create object "Ellipse"                                          |

//+------------------------------------------------------------------+

bool CChartObjectEllipse::Create( long chart_id, const string name, const int window,

                                 const datetime time1, const double price1,

                                 const datetime time2, const double price2,

                                 const datetime time3, const double 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 );

//--- successful

   return ( true );

  }

//+------------------------------------------------------------------+
 
Lütfen gönderinizi düzenleyin ve kodunuz için SRC düğmesini kullanın!
 

Sanırım beni yanlış anladın... bu bir içerme dosyası.

Başka bir yerde, aslında bu şeyleri bir şeyler yaratmak için çağıracaksınız... örneğin rect

rect.Fill(true) gibi bir şey kullanmak isteyeceksiniz

 
honest_knave :

Sanırım beni yanlış anladın... bu bir içerme dosyası.

Başka bir yerde, aslında bu şeyleri bir şeyler yaratmak için çağıracaksınız... örneğin rect

rect.Fill(true) gibi bir şey kullanmak isteyeceksiniz

I don't know a thing about this stuff, brother. Please do guide me through this, for goodness sake :)
 
gooly :
Lütfen gönderinizi düzenleyin ve kodunuz için SRC düğmesini kullanın!
Bitti ve sorunuma gelince... herhangi bir öneriniz var mı?
 

Size yardım etmemiz için bize yardım etmelisiniz. Bu standart bir içerme dosyasıdır.

Göstergenizi/EA'nızı bu şeyin gerçekte nerede kullanıldığını görmemiz gerekiyor.

Resmin sadece bir kısmını görüyoruz... doğru kısmı görmüyoruz!

 
honest_knave :

Size yardım etmemiz için bize yardım etmelisiniz. Bu standart bir içerme dosyasıdır.

Göstergenizi/EA'nızı bu şeyin gerçekte nerede kullanıldığını görmemiz gerekiyor.

Resmin sadece bir kısmını görüyoruz... doğru kısmı görmüyoruz!

Tamam, anladım :D doğru dosyayı nerede arayacağım ve adı ne?
 

Sorun yaşadığınız bu dikdörtgenleri çizebilmek için grafiğinize bir gösterge/EA/script eklemelisiniz... bunun içeriğini görmemiz gerekiyor.

Korkarım buna ne denir hiçbir fikrimiz yok. Ayrıca dosyanın bu içerme dosyasını kullanmayacağından şüpheleniyorum ... ama göreceğiz!

 

Tüm gördüğüm bu...