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

Re: [EquisMetaStock Group] volume measure peak to trough



PureBytes Links

Trading Reference Links

CC
 
 
Try using the ForumDll Sum function, available at http://forum.equis.com/drm_main.php
 
If(P1 OR T1, ExtFml("ForumDll.VarSUM",Volume,Abs(pbars-tbars))/ Abs(pbars-tbars)),0);
 
The ASI dll should do the same job too.
 
 
Roy
 

 
----- Original Message -----
From: cc48820
Sent: Saturday, November 12, 2005 4:37 AM
Subject: [EquisMetaStock Group] volume measure peak to trough

I'm trying to calculate the average volume from peak to trough. The
code below produces the error:  This variable or expression must
contain only constant data.  Any ideas?

Thanks, cc

P1    :=  Peak(1, CLOSE, 5); {current peak}
Pbars :=  PeakBars(1, C, 5);
T1    :=  Trough(1, CLOSE, 5); {current trough}
Tbars :=  TroughBars(1, C, 5);

If(P1 OR T1, Sum(Volume, Abs(pbars-tbars)) / Abs(pbars-tbars)),0)








YAHOO! GROUPS LINKS