Try using either Peak Value [Peak(Nth,Data Array,% Minimum
Change)] or Trough Value [Trough(Nth,Data Array,% Minimum Change)].
From your post you've obviously picked up on the inherent
dangers of using indicators that utilise the ZigZag function.
--- On Thu, 18/6/09, hailasarmale@xxxxxxxxx <hailasarmale@xxxxxxxxx>
wrote:
From: hailasarmale@xxxxxxxxx <hailasarmale@xxxxxxxxx>
Subject: [EquisMetaStock Group] zigzag help
To: equismetastock@xxxxxxxxxxxxxxx
Received: Thursday, 18 June, 2009, 6:22 PM
I'm new to this forum and to metastock programming .I
need a little help please .
This is what i'm trying to do :
- read values of the last 3 or 4 tops of a zigzag
indicator and average them .
- read values of the last 3 or 4 bottoms of the same indicator
and average them
( find an average magnitude )
- find distances between the last consecutive 8 tops and
bottoms and find an average wavelength
- generate a sinusoid using the average
magnitude/wavelengt h that I can extrapolate a little in the future .
BUT I want to ignore the last top/bottom that is
not yet confirmed .
Could someone help me please ?
|
|
Access Yahoo!7 Mail on your mobile. Anytime. Anywhere. Show me how.