anoop
#1
I am using below code for plotting VWAP.
_SECTION_BEGIN("VWAP");
Bars_so_far_today = 1 + BarsSince( Day() != Ref(Day(), -1));
StartBar = ValueWhen(TimeNum() == 093000, BarIndex());
TodayVolume = Sum(V,Bars_so_far_today);
IIf (BarIndex() >= StartBar, VWAP = Sum (C * V, Bars_so_far_today ) / TodayVolume,0);
Plot (VWAP,"VWAP",colorOrange, styleThick);
_SECTION_END();
I am getting below warning while checking for errors.
warning 505:Division by zero.Divisor array [0] is equal zero
How can I remove this warning.
beppe
#2
@anoop see this thread:
Before posting a question, a search in the forum is always a good thing to do as recommended here.