AFL correction - help needed

Hi All,

Below afl plots a straight line which is not extended to the extreme right of the chart.

Please help me doing corrections so that the marked line is extended to the extreme right and plots only for current day.

I have attached the image.

_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorLime ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );

PO=TimeFrameGetPrice( "O", inDaily, -1 );
PL=TimeFrameGetPrice( "L", inDaily, -1 );
PH=TimeFrameGetPrice( "H", inDaily, -1 );
PC=TimeFrameGetPrice( "C", inDaily, -1 );


"\nO "+O+" H "+H+" L "+L+" C "+C+" "+""+
"\n"+EncodeColor(colorTeal) +""+"\n" +
"\nEOD Pvt "+WriteVal(P,1.2)+

Plot((P), "P", colorTeal, styleLine, styleNoLabel);
Last edited:

Similar threads