Chart is not shown as well as buy sell arrow

#1
Can anyone make the afl workable with chart and buy sell arrow signal.





range = Param("ADX Periods", 14, 2, 200, 1 );

Cond_EMA = Cross(EMA(Close,3), EMA(Close,10));
Cond_ADX = ADX(range) > 14 AND PDI(range) > MDI(range);

Sell=False;
Buy= Cond_Ema AND Cond_Adx;
Filter = (Buy OR Sell) AND Volume >0;


SetOption("NoDefaultColumns", True );
AddTextColumn( Name(), "Symbol");
AddTextColumn( FullName(), "Symbol Name",1.2, colorDefault,colorDefault,200);
AddTextColumn( WriteIf( Buy, "Buy", WriteIf( Sell, "Sell", "")), "Trade");

AddColumn( DateTime(), "Date", formatDateTime, colorDefault,colorDefault, 70 );
AddColumn(Close, "Close", 1.3, colorDefault, colorDefault, 60);
AddColumn(Volume, "Volume", 1.0, colorDefault,colorDefault, 70);



shape = Buy * shapeUpArrow ;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low, High ) );
 

johnnypareek

Well-Known Member
#2
here

HTML:
_SECTION_BEGIN("Price");

GraphXSpace=5;
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();


range = Param("ADX Periods", 14, 2, 200, 1 );

Cond_EMA = Cross(EMA(Close,3), EMA(Close,10));
Cond_ADX = ADX(range) > 14 AND PDI(range) > MDI(range);

Sell=False;
Buy= Cond_Ema AND Cond_Adx;
Filter = (Buy OR Sell) AND Volume >0;

PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorGreen, 0,Low,-10); 

SetOption("NoDefaultColumns", True );
AddTextColumn( Name(), "Symbol");
AddTextColumn( FullName(), "Symbol Name",1.2, colorDefault,colorDefault,200);
AddTextColumn( WriteIf( Buy, "Buy", WriteIf( Sell, "Sell", "")), "Trade");

AddColumn( DateTime(), "Date", formatDateTime, colorDefault,colorDefault, 70 );
AddColumn(Close, "Close", 1.3, colorDefault, colorDefault, 60);
AddColumn(Volume, "Volume", 1.0, colorDefault,colorDefault, 70);



shape = Buy * shapeUpArrow ;
PlotShapes( shape, IIf( Buy, colorGreen, colorRed ), 0, IIf( Buy, Low, High ) );