GSupportAndResistance.SetMarkersLengthRight()
To set the length of the marker lines to the right of the automatically created objects.
void GSupportAndResistance.SetMarkersLengthRight(
double multiplicator = 2
);
|
Parameter
multiplicator
[in] The desired multiplicator to draw a line more or less to the right.
Example:
//--- 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
supportAndResistance.Init();
//--- Set the line length
supportAndResistance.SetMarkersLengthRight(3.5);
return(INIT_SUCCEEDED);
}
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
supportAndResistance.Paint();
}
}
|
See also
GSupportAndResistance.Paint, GSupportAndResistance.SetFontSize