I am trying to plot a vertical line on the indicator window with its values. I came across OBJ_VLINE
while reading the documentation. But the example is too hard to understand.
I have plotted the adx on the chart using the following expert:
input int Candles_for_adx = 5;
input color maincolor_adx = Yellow, dpluscolor_adx=Lime,dminuscolor_adx = Red;
void OnInit()
{
ChartIndicatorAdd(0,(int)ChartGetInteger(0,CHART_WINDOWS_TOTAL),
iCustom(_Symbol,PERIOD_M1,"ADX",Candles_for_adx,maincolor_adx,dpluscolor_adx,dminuscolor_adx) );
}
I got the following in my output:
What I am expecting to achieve:
How to write simple statements taking the coordinates and then plot the line?