Previous Next


To set the length of the marker lines to the right of the automatically created objects.

void  GSupportAndResistance.SetMarkersLengthRight(
   double  multiplicator = 2  // Multiplier of the base value



[in]  The desired multiplicator to draw a line more or less to the right.


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

//--- Creation of a pointer to an empty class object
GSupportAndResistance *supportAndResistance;

int OnInit ()
   //--- Assign the class to the empty class object
   supportAndResistance = gSupportAndResistance();

   //--- Initialize the class data

   //--- Set the line length


void OnDeinit(const int reason)
   //--- When closing free memory
   delete supportAndResistance;

void OnTick ()
   if ( supportAndResistance.Ready() ) //--- Only runs when all data is ready
      //--- Draw the set data on the chart

See also

GSupportAndResistance.Paint, GSupportAndResistance.SetFontSize