Previous Next

GChartPatterns.JustPaint()

If no other function call takes place, this function can be used to draw at every tick.

void  GChartPatterns.JustPaint();


Example:

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

//--- Creation of 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
   chartPatterns.Init();


   return(INIT_SUCCEEDED);
}

void OnDeinit (const int reason)
{
   //--- Release memory on exit
   delete chartPatterns;
}


void OnTick ()
{
   if ( chartPatterns.Ready() ) //--- will be executed when all data are ready
   {
      //--- Draws all selected formations on the chart
      chartPatterns.JustPaint();
   }
}


See also

GChartPatterns.Init, GChartPatterns.ClearPaint, GChartPatterns.SetPaintBuild, GChartPatterns.SetPaintFinish