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 ) );
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 ) );