Respected Seniors,
Anybody can help me
This AFL is buy/sell signal giving at actual bar but I want to put signal at next bar when cross prev. bar High then buy signal come; and when price bar cross down ATP then next bar if cross low of prev. bar then sell signal come.
_SECTION_BEGIN("ATP");
B=Volume;
A=Avg;
Value=B*A;
Barsfromtodaybegin = 1 + BarsSince( Day() != Ref(Day(), -1));
Totalvalue=Sum(Value,Barsfromtodaybegin);
Totalvolume=Sum(V,Barsfromtodaybegin);
ATP=(Totalvalue/Totalvolume);
ColorATP=IIf(ATP>Ref(ATP,-1),colorBrightGreen,colorRed);
Plot(ATP,"ATP",colorATP,styleThick);
_SECTION_END();
plot(c,"",3,64);
Buy =Cross(C,atp);
Sell=Cross(atp,C);
PlotShapes(shapeUpArrow*Buy,5,0,L,-10);
PlotShapes(shapeDownArrow*Sell,4,0,H,-10);