Previous Next


Enable or disable drawing of completed patterns.

This function does not need to be called on every tick.

void  GChartPatterns.SetPaintFinish(
   bool  paint = true  // If true, formations are drawn



[in]  If true, then finished formations are drawn.


//--- Include the Glib classes
#include <Glib.mqh>

//--- Create a pointer to an empty class object
GChartPatterns *chartPatterns;

int OnInit ()
   //--- Assign the class to the empty class object
   chartPatterns = gChartPatterns();

   //--- Initialize the data of the class

   //--- Suppress drawing of formations in build

   //--- Do not draw finished patterns


void OnDeinit (const int reason)
   //--- Free memory when closing
   delete chartPatterns;

void OnTick ()
   if ( chartPatterns.Ready() ) //--- Only executed when all data is ready
      //--- Does not draw on the chart because SetPaintBuild and SetPaintFinish are false

See also

GChartPatterns.SetPaintBuild, GChartPatterns.JustPaint, GChartPatterns.ClearPaint