PureBytes Links
Trading Reference Links
|
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 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/
|