| 
 PureBytes Links 
Trading Reference Links 
 | 
Adrian, this issue was addressed two weeks ago in equismetastock 
message 20785.
http://finance.groups.yahoo.com/group/equismetastock/message/20785
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, "tan ming" 
<reminiscenostalgia@xxx> wrote:
>
> Hi Jose,
> 
> I had been figuring how to adapt your Upswing /Downswing volume code
> to display average volume for up and down swing but no consistent
> results. I thought you must have miss the part in my email where I
> mentioned about average volume. Basically the indicator should
> calculate the average volume in a upswing and vice versus for
> downswing. For instance, in a 10 bars upswing defined by 5% zigzag,
> the sum volume of 10 days is 100,000. Thus the average volume will
> be 100,000 / divided by 10 bars = 10,000. The indicator should
> display 10,000 for the entire period of upswing bars. Consequently 
> the indicator should look like steps.
> 
> I had tried adapting part of your code into the following but not
> successful and errors like division by zero occurs:
> 
> {Up/Down swing volume }
> UpSwingVol:=If(UpSwing,Sum(V),0)/Barsince(UpSwing);
> DwSwingVol:=If(DwSwing,Sum(V),0)/Barsince(DwSwing);
> 
> Regards.
> Adrian
------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/BefplB/TM
--------------------------------------------------------------------~-> 
 
Yahoo! Groups Links
<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
    equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 
 |