CC
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 -----
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
|