AFL correction - help needed

#1
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.

_SECTION_BEGIN("Price");
_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() );
_SECTION_END();

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

P=((PH+PL+PC)/3);


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

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

Similar threads