[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Volume Weighted Bars



PureBytes Links

Trading Reference Links

I simply threw together the code below. By adjusting the volume size
below, most of the volume range can be covered. But each chart will have
its own volume range so you can not move from chart to chart without
changing the settings. A normalized value of the volume, such as
volume/(ave volume) might work to enable moving from chart to chart
without resetting the volume values. (Set the scaling to "Same as
Symbol").


TL=TL_New(Date, Time, L, Date, Time,H );
TL_SetColor(TL, 6);
TL_SetStyle(TL,1);

if v>100 and v<500 then TL_SetSize(TL, 0);
if v>500 then TL_SetSize(TL, 1);
if v>1000 then TL_SetSize(TL, 2);
if v>2000 then TL_SetSize(TL, 3);
if v>5000 then TL_SetSize(TL, 4);
if v>10000 then TL_SetSize(TL, 5);
if v>20000then TL_SetSize(TL, 6);